T
- type of the enclosed regionabstract class AbstractEhcacheAccessStrategy<T extends EhcacheTransactionalDataRegion>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected T |
region
The wrapped Hibernate cache region.
|
protected org.hibernate.cfg.Settings |
settings
The settings for this persistence unit.
|
Constructor and Description |
---|
AbstractEhcacheAccessStrategy(T region,
org.hibernate.cfg.Settings settings)
Create an access strategy wrapping the given region.
|
Modifier and Type | Method and Description |
---|---|
void |
evict(java.lang.Object key)
Remove the given mapping without regard to transactional safety
|
void |
evictAll()
Remove all mappings without regard to transactional safety
|
org.hibernate.cache.access.SoftLock |
lockRegion()
Region locks are not supported.
|
boolean |
putFromLoad(java.lang.Object key,
java.lang.Object value,
long txTimestamp,
java.lang.Object version)
This method is a placeholder for method signatures supplied by interfaces pulled in further down the class
hierarchy.
|
abstract boolean |
putFromLoad(java.lang.Object key,
java.lang.Object value,
long txTimestamp,
java.lang.Object version,
boolean minimalPutOverride)
This method is a placeholder for method signatures supplied by interfaces pulled in further down the class
hierarchy.
|
void |
remove(java.lang.Object key)
A no-op since this is an asynchronous cache access strategy.
|
void |
removeAll()
Called to evict data from the entire region
|
void |
unlockRegion(org.hibernate.cache.access.SoftLock lock)
Region locks are not supported - perform a cache clear as a precaution.
|
protected final T extends EhcacheTransactionalDataRegion region
protected final org.hibernate.cfg.Settings settings
AbstractEhcacheAccessStrategy(T region, org.hibernate.cfg.Settings settings)
public final boolean putFromLoad(java.lang.Object key, java.lang.Object value, long txTimestamp, java.lang.Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.putFromLoad(java.lang.Object, java.lang.Object, long, java.lang.Object)
,
CollectionRegionAccessStrategy.putFromLoad(java.lang.Object, java.lang.Object, long, java.lang.Object)
public abstract boolean putFromLoad(java.lang.Object key, java.lang.Object value, long txTimestamp, java.lang.Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.putFromLoad(java.lang.Object, java.lang.Object, long, java.lang.Object, boolean)
,
CollectionRegionAccessStrategy.putFromLoad(java.lang.Object, java.lang.Object, long, java.lang.Object, boolean)
public final org.hibernate.cache.access.SoftLock lockRegion()
null
EntityRegionAccessStrategy.lockRegion()
,
CollectionRegionAccessStrategy.lockRegion()
public final void unlockRegion(org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.unlockRegion(org.hibernate.cache.access.SoftLock)
,
CollectionRegionAccessStrategy.unlockRegion(org.hibernate.cache.access.SoftLock)
public void remove(java.lang.Object key) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.remove(java.lang.Object)
,
CollectionRegionAccessStrategy.remove(java.lang.Object)
public final void removeAll() throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
- Propogated from underlying Region
EntityRegionAccessStrategy.removeAll()
,
CollectionRegionAccessStrategy.removeAll()
public final void evict(java.lang.Object key) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.evict(java.lang.Object)
,
CollectionRegionAccessStrategy.evict(java.lang.Object)
public final void evictAll() throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
EntityRegionAccessStrategy.evictAll()
,
CollectionRegionAccessStrategy.evictAll()