org.shiftone.cache.adaptor
Class HibernateCache
java.lang.Object
org.shiftone.cache.adaptor.HibernateCache
- All Implemented Interfaces:
- net.sf.hibernate.cache.Cache
- public class HibernateCache
- extends java.lang.Object
- implements net.sf.hibernate.cache.Cache
Makes a shiftone cache look like a hibernate cache.
- Version:
- $Revision: 1.5 $
- Author:
- Jeff Drost
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HibernateCache
public HibernateCache(Cache cache)
get
public final java.lang.Object get(java.lang.Object key)
throws net.sf.hibernate.cache.CacheException
- Specified by:
get
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
put
public final void put(java.lang.Object key,
java.lang.Object value)
throws net.sf.hibernate.cache.CacheException
- Specified by:
put
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
remove
public final void remove(java.lang.Object key)
throws net.sf.hibernate.cache.CacheException
- Specified by:
remove
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
clear
public final void clear()
throws net.sf.hibernate.cache.CacheException
- Specified by:
clear
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
destroy
public final void destroy()
throws net.sf.hibernate.cache.CacheException
- Specified by:
destroy
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
lock
public final void lock(java.lang.Object o)
throws net.sf.hibernate.cache.CacheException
- NOOP
- Specified by:
lock
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
unlock
public final void unlock(java.lang.Object o)
throws net.sf.hibernate.cache.CacheException
- NOOP
- Specified by:
unlock
in interface net.sf.hibernate.cache.Cache
- Throws:
net.sf.hibernate.cache.CacheException
nextTimestamp
public final long nextTimestamp()
- Specified by:
nextTimestamp
in interface net.sf.hibernate.cache.Cache
getTimeout
public final int getTimeout()
- Specified by:
getTimeout
in interface net.sf.hibernate.cache.Cache