public class NonstopAwareCollectionRegionAccessStrategy extends Object implements org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
Constructor and Description |
---|
NonstopAwareCollectionRegionAccessStrategy(org.hibernate.cache.spi.access.CollectionRegionAccessStrategy actualStrategy,
HibernateNonstopCacheExceptionHandler hibernateNonstopExceptionHandler) |
Modifier and Type | Method and Description |
---|---|
void |
evict(Object key) |
void |
evictAll() |
Object |
generateCacheKey(Object id,
org.hibernate.persister.collection.CollectionPersister persister,
org.hibernate.engine.spi.SessionFactoryImplementor factory,
String tenantIdentifier) |
Object |
get(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
long txTimestamp) |
Object |
getCacheKeyId(Object cacheKey) |
org.hibernate.cache.spi.CollectionRegion |
getRegion() |
org.hibernate.cache.spi.access.SoftLock |
lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object version) |
org.hibernate.cache.spi.access.SoftLock |
lockRegion() |
boolean |
putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version) |
boolean |
putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride) |
void |
remove(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key) |
void |
removeAll() |
void |
unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
org.hibernate.cache.spi.access.SoftLock lock) |
void |
unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) |
public NonstopAwareCollectionRegionAccessStrategy(org.hibernate.cache.spi.access.CollectionRegionAccessStrategy actualStrategy, HibernateNonstopCacheExceptionHandler hibernateNonstopExceptionHandler)
public org.hibernate.cache.spi.CollectionRegion getRegion()
getRegion
in interface org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
public void evict(Object key) throws org.hibernate.cache.CacheException
evict
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public void evictAll() throws org.hibernate.cache.CacheException
evictAll
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public Object get(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, long txTimestamp) throws org.hibernate.cache.CacheException
get
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public org.hibernate.cache.spi.access.SoftLock lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object version) throws org.hibernate.cache.CacheException
lockItem
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public org.hibernate.cache.spi.access.SoftLock lockRegion() throws org.hibernate.cache.CacheException
lockRegion
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException
putFromLoad
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, long txTimestamp, Object version) throws org.hibernate.cache.CacheException
putFromLoad
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public void remove(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key) throws org.hibernate.cache.CacheException
remove
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public void removeAll() throws org.hibernate.cache.CacheException
removeAll
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public void unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
unlockItem
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
unlockRegion
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public Object generateCacheKey(Object id, org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor factory, String tenantIdentifier)
generateCacheKey
in interface org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
Copyright © 2018. All rights reserved.