net.sf.ehcache.hibernate.regions
Class EhcacheEntityRegion
java.lang.Object
  
net.sf.ehcache.hibernate.regions.EhcacheDataRegion
      
net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion
          
net.sf.ehcache.hibernate.regions.EhcacheEntityRegion
- All Implemented Interfaces: 
 - org.hibernate.cache.EntityRegion, org.hibernate.cache.Region, org.hibernate.cache.TransactionalDataRegion
 
public class EhcacheEntityRegion
- extends EhcacheTransactionalDataRegion
- implements org.hibernate.cache.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.
- Author:
 
  - Chris Dennis, Abhishek Sanoujam
 
 
 
 
 
| 
Method Summary | 
 org.hibernate.cache.access.EntityRegionAccessStrategy | 
buildAccessStrategy(org.hibernate.cache.access.AccessType accessType)
 
           | 
 
| Methods inherited from class net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion | 
clear, get, getCacheDataDescription, getSettings, isTransactionAware, locksAreIndependentOfCache, put, putPinned, readLock, readUnlock, remove, writeLock, writeUnlock | 
 
 
| 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.TransactionalDataRegion | 
getCacheDataDescription, isTransactionAware | 
 
| Methods inherited from interface org.hibernate.cache.Region | 
contains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap | 
 
EhcacheEntityRegion
public EhcacheEntityRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
                           Ehcache underlyingCache,
                           org.hibernate.cfg.Settings settings,
                           org.hibernate.cache.CacheDataDescription metadata,
                           Properties properties)
- Constructs an EhcacheEntityRegion around the given underlying cache.
- Parameters:
 accessStrategyFactory - 
 
buildAccessStrategy
public org.hibernate.cache.access.EntityRegionAccessStrategy buildAccessStrategy(org.hibernate.cache.access.AccessType accessType)
                                                                          throws org.hibernate.cache.CacheException
- 
- Specified by:
 buildAccessStrategy in interface org.hibernate.cache.EntityRegion
 
- Throws:
 org.hibernate.cache.CacheException
 
 
Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.