Package lumis.portal.cache
Class HibernatePortalCache
- java.lang.Object
-
- lumis.portal.cache.HibernatePortalCache
-
- All Implemented Interfaces:
org.hibernate.cache.Cache
public class HibernatePortalCache extends java.lang.Object implements org.hibernate.cache.Cache
Wraps thePortalCache
for hibernate use.- Since:
- 4.0.11
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description HibernatePortalCache(java.lang.String cacheName, java.lang.String regionName, java.lang.String databaseId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
destroy()
java.lang.Object
get(java.lang.Object key)
long
getElementCountInMemory()
long
getElementCountOnDisk()
java.lang.String
getRegionName()
long
getSizeInMemory()
int
getTimeout()
void
lock(java.lang.Object key)
long
nextTimestamp()
void
put(java.lang.Object key, java.lang.Object value)
java.lang.Object
read(java.lang.Object key)
void
remove(java.lang.Object key)
java.util.Map<?,?>
toMap()
java.lang.String
toString()
void
unlock(java.lang.Object key)
void
update(java.lang.Object key, java.lang.Object value)
-
-
-
Method Detail
-
read
public java.lang.Object read(java.lang.Object key) throws org.hibernate.cache.CacheException
- Specified by:
read
in interfaceorg.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
-
get
public java.lang.Object get(java.lang.Object key) throws org.hibernate.cache.CacheException
- Specified by:
get
in interfaceorg.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
-
put
public void put(java.lang.Object key, java.lang.Object value) throws org.hibernate.cache.CacheException
- Specified by:
put
in interfaceorg.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
-
update
public void update(java.lang.Object key, java.lang.Object value) throws org.hibernate.cache.CacheException
- Specified by:
update
in interfaceorg.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
-
remove
public void remove(java.lang.Object key) throws org.hibernate.cache.CacheException
- Specified by:
remove
in interfaceorg.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
-
clear
public void clear() throws org.hibernate.cache.CacheException
- Specified by:
clear
in interfaceorg.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
-
destroy
public void destroy() throws org.hibernate.cache.CacheException
- Specified by:
destroy
in interfaceorg.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
-
lock
public void lock(java.lang.Object key) throws org.hibernate.cache.CacheException
- Specified by:
lock
in interfaceorg.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
-
unlock
public void unlock(java.lang.Object key) throws org.hibernate.cache.CacheException
- Specified by:
unlock
in interfaceorg.hibernate.cache.Cache
- Throws:
org.hibernate.cache.CacheException
-
nextTimestamp
public long nextTimestamp()
- Specified by:
nextTimestamp
in interfaceorg.hibernate.cache.Cache
-
getTimeout
public int getTimeout()
- Specified by:
getTimeout
in interfaceorg.hibernate.cache.Cache
-
getRegionName
public java.lang.String getRegionName()
- Specified by:
getRegionName
in interfaceorg.hibernate.cache.Cache
-
getSizeInMemory
public long getSizeInMemory()
- Specified by:
getSizeInMemory
in interfaceorg.hibernate.cache.Cache
-
getElementCountInMemory
public long getElementCountInMemory()
- Specified by:
getElementCountInMemory
in interfaceorg.hibernate.cache.Cache
-
getElementCountOnDisk
public long getElementCountOnDisk()
- Specified by:
getElementCountOnDisk
in interfaceorg.hibernate.cache.Cache
-
toMap
public java.util.Map<?,?> toMap()
- Specified by:
toMap
in interfaceorg.hibernate.cache.Cache
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-