Package net.sf.ehcache.hibernate.regions
Class EhcacheCollectionRegion
- java.lang.Object
-
- net.sf.ehcache.hibernate.regions.EhcacheDataRegion
-
- net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion
-
- net.sf.ehcache.hibernate.regions.EhcacheCollectionRegion
-
- All Implemented Interfaces:
org.hibernate.cache.CollectionRegion,org.hibernate.cache.Region,org.hibernate.cache.TransactionalDataRegion
public class EhcacheCollectionRegion extends EhcacheTransactionalDataRegion implements org.hibernate.cache.CollectionRegion
A collection region specific wrapper around an Ehcache instance.This implementation returns Ehcache specific access strategy instances for all the non-transactional access types. Transactional access is not supported.
- Author:
- Chris Dennis, Abhishek Sanoujam
-
-
Field Summary
-
Fields inherited from class net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion
metadata, settings
-
Fields inherited from class net.sf.ehcache.hibernate.regions.EhcacheDataRegion
accessStrategyFactory, cache
-
-
Constructor Summary
Constructors Constructor Description EhcacheCollectionRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache underlyingCache, org.hibernate.cfg.Settings settings, org.hibernate.cache.CacheDataDescription metadata, java.util.Properties properties)Constructs an EhcacheCollectionRegion around the given underlying cache.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.cache.access.CollectionRegionAccessStrategybuildAccessStrategy(org.hibernate.cache.access.AccessType accessType)-
Methods inherited from class net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion
clear, get, getCacheDataDescription, getSettings, isTransactionAware, locksAreIndependentOfCache, put, putEternal, readLock, readUnlock, remove, writeLock, writeUnlock
-
Methods inherited from class net.sf.ehcache.hibernate.regions.EhcacheDataRegion
contains, destroy, getEhcache, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
EhcacheCollectionRegion
public EhcacheCollectionRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache underlyingCache, org.hibernate.cfg.Settings settings, org.hibernate.cache.CacheDataDescription metadata, java.util.Properties properties)
Constructs an EhcacheCollectionRegion around the given underlying cache.- Parameters:
accessStrategyFactory-
-
-
Method Detail
-
buildAccessStrategy
public org.hibernate.cache.access.CollectionRegionAccessStrategy buildAccessStrategy(org.hibernate.cache.access.AccessType accessType) throws org.hibernate.cache.CacheException- Specified by:
buildAccessStrategyin interfaceorg.hibernate.cache.CollectionRegion- Throws:
org.hibernate.cache.CacheException
-
-