public class ReadWriteEntityRegionAccessStrategy extends AbstractReadWriteAccessStrategy implements org.hibernate.cache.spi.access.EntityRegionAccessStrategy
AbstractReadWriteAccessStrategy.Item, AbstractReadWriteAccessStrategy.Lock, AbstractReadWriteAccessStrategy.LockablereadLock, writeLock| Modifier and Type | Method and Description |
|---|---|
boolean |
afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object version) |
boolean |
afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion,
org.hibernate.cache.spi.access.SoftLock lock) |
Object |
generateCacheKey(Object id,
org.hibernate.persister.entity.EntityPersister persister,
org.hibernate.engine.spi.SessionFactoryImplementor factory,
String tenantIdentifier) |
Object |
getCacheKeyId(Object cacheKey) |
protected org.hibernate.testing.cache.BaseGeneralDataRegion |
getInternalRegion() |
org.hibernate.cache.spi.EntityRegion |
getRegion() |
boolean |
insert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object version) |
protected boolean |
isDefaultMinimalPutOverride() |
boolean |
update(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion) |
decrementLock, get, handleLockExpiry, lockItem, putFromLoad, unlockItemevict, evictAll, lockRegion, putFromLoad, remove, removeAll, unlockRegionpublic boolean insert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object version)
throws org.hibernate.cache.CacheException
insert in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean update(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion)
throws org.hibernate.cache.CacheException
update in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object version)
throws org.hibernate.cache.CacheException
afterInsert in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
Object currentVersion,
Object previousVersion,
org.hibernate.cache.spi.access.SoftLock lock)
throws org.hibernate.cache.CacheException
afterUpdate in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionprotected org.hibernate.testing.cache.BaseGeneralDataRegion getInternalRegion()
getInternalRegion in class BaseRegionAccessStrategyprotected boolean isDefaultMinimalPutOverride()
isDefaultMinimalPutOverride in class BaseRegionAccessStrategypublic org.hibernate.cache.spi.EntityRegion getRegion()
getRegion in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategypublic Object generateCacheKey(Object id, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor factory, String tenantIdentifier)
generateCacheKey in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategyCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.