Package org.redisson.hibernate.strategy
Class ReadWriteNaturalIdRegionAccessStrategy
java.lang.Object
org.redisson.hibernate.strategy.AbstractReadWriteAccessStrategy
org.redisson.hibernate.strategy.ReadWriteNaturalIdRegionAccessStrategy
- All Implemented Interfaces:
org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy,org.hibernate.cache.spi.access.RegionAccessStrategy
public class ReadWriteNaturalIdRegionAccessStrategy
extends AbstractReadWriteAccessStrategy
implements org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionReadWriteNaturalIdRegionAccessStrategy(org.hibernate.cfg.Settings settings, org.hibernate.cache.spi.GeneralDataRegion region, RMapCache<Object, Object> mapCache) -
Method Summary
Modifier and TypeMethodDescriptionbooleanafterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value) booleanafterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, org.hibernate.cache.spi.access.SoftLock lock) voidvoidevictAll()generateCacheKey(Object[] naturalIdValues, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SharedSessionContractImplementor session) Object[]getNaturalIdValues(Object cacheKey) org.hibernate.cache.spi.NaturalIdRegionbooleanorg.hibernate.cache.spi.access.SoftLockbooleanputFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, long txTimestamp, Object version) voidvoidvoidunlockRegion(org.hibernate.cache.spi.access.SoftLock lock) booleanMethods inherited from class org.redisson.hibernate.strategy.AbstractReadWriteAccessStrategy
get, lockItem, putFromLoad, unlockItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.cache.spi.access.RegionAccessStrategy
evict, evictAll, get, lockItem, lockRegion, putFromLoad, putFromLoad, remove, removeAll, unlockItem, unlockRegion
-
Constructor Details
-
ReadWriteNaturalIdRegionAccessStrategy
-
-
Method Details
-
getRegion
public org.hibernate.cache.spi.NaturalIdRegion getRegion()- Specified by:
getRegionin interfaceorg.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
-
getNaturalIdValues
- Specified by:
getNaturalIdValuesin interfaceorg.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
-
lockRegion
public org.hibernate.cache.spi.access.SoftLock lockRegion() throws org.hibernate.cache.CacheException- Specified by:
lockRegionin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
unlockRegion
public void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException - Specified by:
unlockRegionin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
removeAll
public void removeAll() throws org.hibernate.cache.CacheException- Specified by:
removeAllin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
evict
- Specified by:
evictin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
evictAll
public void evictAll() throws org.hibernate.cache.CacheException- Specified by:
evictAllin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-