public class HibernateSimpleCacheAdapter
extends java.lang.Object
implements org.hibernate.cache.Cache
SimpleCache instance for use as a Hibernate Cache.| Constructor and Description |
|---|
HibernateSimpleCacheAdapter(org.alfresco.repo.cache.SimpleCache cache,
java.lang.String regionName)
Adapt a
|
| Modifier and Type | Method and 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() |
void |
unlock(java.lang.Object key) |
void |
update(java.lang.Object key,
java.lang.Object value) |
public HibernateSimpleCacheAdapter(org.alfresco.repo.cache.SimpleCache cache,
java.lang.String regionName)
cache - regionName - public java.lang.Object read(java.lang.Object key)
throws org.hibernate.cache.CacheException
read in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic java.lang.Object get(java.lang.Object key)
throws org.hibernate.cache.CacheException
get in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void put(java.lang.Object key,
java.lang.Object value)
throws org.hibernate.cache.CacheException
put in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void update(java.lang.Object key,
java.lang.Object value)
throws org.hibernate.cache.CacheException
update in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void remove(java.lang.Object key)
throws org.hibernate.cache.CacheException
remove in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void clear()
throws org.hibernate.cache.CacheException
clear in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void destroy()
throws org.hibernate.cache.CacheException
destroy in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void lock(java.lang.Object key)
throws org.hibernate.cache.CacheException
lock in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void unlock(java.lang.Object key)
throws org.hibernate.cache.CacheException
unlock in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic long nextTimestamp()
nextTimestamp in interface org.hibernate.cache.Cachepublic int getTimeout()
getTimeout in interface org.hibernate.cache.Cachepublic java.lang.String getRegionName()
getRegionName in interface org.hibernate.cache.Cachepublic long getSizeInMemory()
getSizeInMemory in interface org.hibernate.cache.Cachepublic long getElementCountInMemory()
getElementCountInMemory in interface org.hibernate.cache.Cachepublic long getElementCountOnDisk()
getElementCountOnDisk in interface org.hibernate.cache.Cachepublic java.util.Map toMap()
toMap in interface org.hibernate.cache.CacheCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.