net.sf.ehcache.hibernate.regions
Class EhcacheQueryResultsRegion
java.lang.Object
net.sf.ehcache.hibernate.regions.EhcacheDataRegion
net.sf.ehcache.hibernate.regions.EhcacheQueryResultsRegion
- All Implemented Interfaces:
- org.hibernate.cache.GeneralDataRegion, org.hibernate.cache.QueryResultsRegion, org.hibernate.cache.Region
public class EhcacheQueryResultsRegion
- extends EhcacheDataRegion
- implements org.hibernate.cache.QueryResultsRegion
A query results region specific wrapper around an Ehcache instance.
- Author:
- Chris Dennis
|
Method Summary |
void |
evict(java.lang.Object key)
|
void |
evictAll()
|
java.lang.Object |
get(java.lang.Object key)
|
void |
put(java.lang.Object key,
java.lang.Object value)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.hibernate.cache.GeneralDataRegion |
evict, evictAll, get, put |
| Methods inherited from interface org.hibernate.cache.Region |
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap |
EhcacheQueryResultsRegion
public EhcacheQueryResultsRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
Ehcache underlyingCache,
java.util.Properties properties)
- Constructs an EhcacheQueryResultsRegion around the given underlying cache.
- Parameters:
accessStrategyFactory -
get
public java.lang.Object get(java.lang.Object key)
throws org.hibernate.cache.CacheException
-
- Specified by:
get in interface org.hibernate.cache.GeneralDataRegion
- 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 interface org.hibernate.cache.GeneralDataRegion
- Throws:
org.hibernate.cache.CacheException
evict
public void evict(java.lang.Object key)
throws org.hibernate.cache.CacheException
-
- Specified by:
evict in interface org.hibernate.cache.GeneralDataRegion
- Throws:
org.hibernate.cache.CacheException
evictAll
public void evictAll()
throws org.hibernate.cache.CacheException
-
- Specified by:
evictAll in interface org.hibernate.cache.GeneralDataRegion
- Throws:
org.hibernate.cache.CacheException
true