org.hibernate.cache.ehcache.internal.regions
Class EhcacheEntityRegion
java.lang.Object
   org.hibernate.cache.ehcache.internal.regions.EhcacheDataRegion
org.hibernate.cache.ehcache.internal.regions.EhcacheDataRegion
       org.hibernate.cache.ehcache.internal.regions.EhcacheTransactionalDataRegion
org.hibernate.cache.ehcache.internal.regions.EhcacheTransactionalDataRegion
           org.hibernate.cache.ehcache.internal.regions.EhcacheEntityRegion
org.hibernate.cache.ehcache.internal.regions.EhcacheEntityRegion
- All Implemented Interfaces: 
- EntityRegion, Region, TransactionalDataRegion
- public class EhcacheEntityRegion 
- extends EhcacheTransactionalDataRegion- implements EntityRegion
An entity 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.
 
 
 
 
 
| Methods inherited from class org.hibernate.cache.ehcache.internal.regions.EhcacheTransactionalDataRegion | 
| clear, get, getCacheDataDescription, getSettings, isTransactionAware, locksAreIndependentOfCache, put, readLock, readUnlock, remove, writeLock, writeUnlock | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
 
EhcacheEntityRegion
public EhcacheEntityRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
                           net.sf.ehcache.Ehcache underlyingCache,
                           Settings settings,
                           CacheDataDescription metadata,
                           Properties properties)
- Constructs an EhcacheEntityRegion around the given underlying cache.
 
- Parameters:
- accessStrategyFactory-
 
buildAccessStrategy
public EntityRegionAccessStrategy buildAccessStrategy(AccessType accessType)
                                               throws CacheException
- Build an access strategy for the requested access type.
 
- 
- Specified by:
- buildAccessStrategyin interface- EntityRegion
 
- 
- Parameters:
- accessType- The type of access strategy to build; never null.
- Returns:
- The appropriate strategy contract for accessing this region
 for the requested type of access.
- Throws:
- CacheException- Usually indicates mis-configuration.
 
Copyright © 2001-2012 Red Hat, Inc.  All Rights Reserved.