public class NonStrictReadWriteNaturalIdRegionAccessStrategy extends Object implements org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
| Constructor and Description |
|---|
NonStrictReadWriteNaturalIdRegionAccessStrategy(org.hibernate.cfg.Settings settings,
org.hibernate.cache.spi.GeneralDataRegion region) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value) |
boolean |
afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
org.hibernate.cache.spi.access.SoftLock lock) |
void |
evict(Object key) |
void |
evictAll() |
Object |
generateCacheKey(Object[] naturalIdValues,
org.hibernate.persister.entity.EntityPersister persister,
org.hibernate.engine.spi.SharedSessionContractImplementor session) |
Object |
get(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
long txTimestamp) |
Object[] |
getNaturalIdValues(Object cacheKey) |
org.hibernate.cache.spi.NaturalIdRegion |
getRegion() |
boolean |
insert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value) |
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) |
boolean |
update(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value) |
public NonStrictReadWriteNaturalIdRegionAccessStrategy(org.hibernate.cfg.Settings settings,
org.hibernate.cache.spi.GeneralDataRegion region)
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.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic 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.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic 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.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic 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.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.spi.NaturalIdRegion getRegion()
getRegion in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategypublic boolean insert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value)
throws org.hibernate.cache.CacheException
insert in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value)
throws org.hibernate.cache.CacheException
afterInsert in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean update(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value)
throws org.hibernate.cache.CacheException
update in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
org.hibernate.cache.spi.access.SoftLock lock)
throws org.hibernate.cache.CacheException
afterUpdate in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void remove(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key)
throws org.hibernate.cache.CacheException
remove in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic Object generateCacheKey(Object[] naturalIdValues, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SharedSessionContractImplementor session)
generateCacheKey in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategypublic Object[] getNaturalIdValues(Object cacheKey)
getNaturalIdValues in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategypublic 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.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.spi.access.SoftLock lockRegion()
throws org.hibernate.cache.CacheException
lockRegion in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock)
throws org.hibernate.cache.CacheException
unlockRegion in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void removeAll()
throws org.hibernate.cache.CacheException
removeAll in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void evict(Object key) throws org.hibernate.cache.CacheException
evict in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void evictAll()
throws org.hibernate.cache.CacheException
evictAll in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionCopyright © 2014–2019 The Redisson Project. All rights reserved.