ehcache

net.sf.ehcache.hibernate.regions
Class EhcacheEntityRegion

java.lang.Object
  extended by net.sf.ehcache.hibernate.regions.EhcacheDataRegion
      extended by net.sf.ehcache.hibernate.regions.EhcacheTransactionalDataRegion
          extended by net.sf.ehcache.hibernate.regions.EhcacheEntityRegion

public class EhcacheEntityRegion
extends EhcacheTransactionalDataRegion

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

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
EhcacheEntityRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache underlyingCache, Settings settings, CacheDataDescription metadata, Properties properties)
          Constructs an EhcacheEntityRegion around the given underlying cache.
 
Method Summary
 EntityRegionAccessStrategy buildAccessStrategy(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

EhcacheEntityRegion

public EhcacheEntityRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
                           Ehcache underlyingCache,
                           Settings settings,
                           CacheDataDescription metadata,
                           Properties properties)
Constructs an EhcacheEntityRegion around the given underlying cache.

Parameters:
accessStrategyFactory -
Method Detail

buildAccessStrategy

public EntityRegionAccessStrategy buildAccessStrategy(AccessType accessType)
                                               throws CacheException

Throws:
CacheException

ehcache

Copyright 2001-2015, Terracotta, Inc.