站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 2.1.8 正式版 API 英文文档

JCSCache (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.cache
Class JCSCache

java.lang.Object
  extended bynet.sf.hibernate.cache.JCSCache
All Implemented Interfaces:
Cache

Deprecated. JCS support will be removed in version 2.1.1

public class JCSCache
extends Object
implements Cache

Support for Apache Turbine's JCS

Author:
Gavin King

Constructor Summary
JCSCache(String regionName, Properties properties)
          Deprecated.  
 
Method Summary
 void clear()
          Deprecated. Clear the cache
 void destroy()
          Deprecated. Clean up
 Object get(Object key)
          Deprecated. Get an item from the cache
 int getTimeout()
          Deprecated. Get a reasonable "lock timeout"
 void lock(Object key)
          Deprecated. If this is a clustered cache, lock the item
 long nextTimestamp()
          Deprecated. Generate a timestamp
 void put(Object key, Object value)
          Deprecated. Add an item to the cache
 void remove(Object key)
          Deprecated. Remove an item from the cache
 void unlock(Object key)
          Deprecated. If this is a clustered cache, unlock the item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCSCache

public JCSCache(String regionName,
                Properties properties)
         throws CacheException
Deprecated. 
Method Detail

get

public Object get(Object key)
Deprecated. 
Description copied from interface: Cache
Get an item from the cache

Specified by:
get in interface Cache
Parameters:
key -
Returns:
the cached object or null

put

public void put(Object key,
                Object value)
         throws CacheException
Deprecated. 
Description copied from interface: Cache
Add an item to the cache

Specified by:
put in interface Cache
Parameters:
key -
value -
Throws:
CacheException

remove

public void remove(Object key)
            throws CacheException
Deprecated. 
Description copied from interface: Cache
Remove an item from the cache

Specified by:
remove in interface Cache
Throws:
CacheException

clear

public void clear()
           throws CacheException
Deprecated. 
Description copied from interface: Cache
Clear the cache

Specified by:
clear in interface Cache
Throws:
CacheException

destroy

public void destroy()
             throws CacheException
Deprecated. 
Description copied from interface: Cache
Clean up

Specified by:
destroy in interface Cache
Throws:
CacheException

nextTimestamp

public long nextTimestamp()
Deprecated. 
Description copied from interface: Cache
Generate a timestamp

Specified by:
nextTimestamp in interface Cache

lock

public void lock(Object key)
          throws CacheException
Deprecated. 
Description copied from interface: Cache
If this is a clustered cache, lock the item

Specified by:
lock in interface Cache
Throws:
CacheException

unlock

public void unlock(Object key)
            throws CacheException
Deprecated. 
Description copied from interface: Cache
If this is a clustered cache, unlock the item

Specified by:
unlock in interface Cache
Throws:
CacheException

getTimeout

public int getTimeout()
Deprecated. 
Description copied from interface: Cache
Get a reasonable "lock timeout"

Specified by:
getTimeout in interface Cache