public class EhcacheNaturalIdRegion extends EhcacheTransactionalDataRegion implements NaturalIdRegion
metadata| Constructor and Description | 
|---|
EhcacheNaturalIdRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
                      net.sf.ehcache.Ehcache underlyingCache,
                      Settings settings,
                      CacheDataDescription metadata,
                      Properties properties)
Constructs an EhcacheNaturalIdRegion around the given underlying cache. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
NaturalIdRegionAccessStrategy | 
buildAccessStrategy(AccessType accessType)
Build an access strategy for the requested access type. 
 | 
clear, get, getCacheDataDescription, getSettings, isTransactionAware, locksAreIndependentOfCache, put, readLock, readUnlock, remove, writeLock, writeUnlockcontains, destroy, getAccessStrategyFactory, getCache, getEhcache, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCacheDataDescription, isTransactionAwarecontains, destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMappublic EhcacheNaturalIdRegion(EhcacheAccessStrategyFactory accessStrategyFactory, net.sf.ehcache.Ehcache underlyingCache, Settings settings, CacheDataDescription metadata, Properties properties)
accessStrategyFactory - The factory for building needed NaturalIdRegionAccessStrategy instanceunderlyingCache - The ehcache cache instancesettings - The Hibernate settingsmetadata - Metadata about the data to be cached in this regionproperties - Any additional[ propertiespublic NaturalIdRegionAccessStrategy buildAccessStrategy(AccessType accessType) throws CacheException
NaturalIdRegionbuildAccessStrategy in interface NaturalIdRegionaccessType - The type of access strategy to build; never null.CacheException - Usually indicates mis-configuration.Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.