Package org.redisson.hibernate.strategy
Class NonStrictReadWriteEntityRegionAccessStrategy
java.lang.Object
org.redisson.hibernate.strategy.NonStrictReadWriteEntityRegionAccessStrategy
- All Implemented Interfaces:
org.hibernate.cache.spi.access.EntityRegionAccessStrategy,org.hibernate.cache.spi.access.RegionAccessStrategy
public class NonStrictReadWriteEntityRegionAccessStrategy
extends Object
implements org.hibernate.cache.spi.access.EntityRegionAccessStrategy
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionNonStrictReadWriteEntityRegionAccessStrategy(org.hibernate.cfg.Settings settings, org.hibernate.cache.spi.GeneralDataRegion region) -
Method Summary
Modifier and TypeMethodDescriptionbooleanafterInsert(Object key, Object value, Object version) booleanafterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, org.hibernate.cache.spi.access.SoftLock lock) voidvoidevictAll()org.hibernate.cache.spi.EntityRegionbooleanorg.hibernate.cache.spi.access.SoftLockorg.hibernate.cache.spi.access.SoftLockbooleanputFromLoad(Object key, Object value, long txTimestamp, Object version) booleanputFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) voidvoidvoidunlockItem(Object key, org.hibernate.cache.spi.access.SoftLock lock) voidunlockRegion(org.hibernate.cache.spi.access.SoftLock lock) booleanMethods 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, lockRegion, putFromLoad, removeAll, unlockRegion
-
Constructor Details
-
NonStrictReadWriteEntityRegionAccessStrategy
public NonStrictReadWriteEntityRegionAccessStrategy(org.hibernate.cfg.Settings settings, org.hibernate.cache.spi.GeneralDataRegion region)
-
-
Method Details
-
get
- Specified by:
getin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
putFromLoad
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException - Specified by:
putFromLoadin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
lockItem
public org.hibernate.cache.spi.access.SoftLock lockItem(Object key, Object version) throws org.hibernate.cache.CacheException - Specified by:
lockItemin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
unlockItem
public void unlockItem(Object key, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException - Specified by:
unlockItemin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
getRegion
public org.hibernate.cache.spi.EntityRegion getRegion()- Specified by:
getRegionin interfaceorg.hibernate.cache.spi.access.EntityRegionAccessStrategy
-
insert
public boolean insert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException - Specified by:
insertin interfaceorg.hibernate.cache.spi.access.EntityRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
afterInsert
public boolean afterInsert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException - Specified by:
afterInsertin interfaceorg.hibernate.cache.spi.access.EntityRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
update
public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws org.hibernate.cache.CacheException - Specified by:
updatein interfaceorg.hibernate.cache.spi.access.EntityRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
afterUpdate
public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException - Specified by:
afterUpdatein interfaceorg.hibernate.cache.spi.access.EntityRegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
remove
- Specified by:
removein interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
putFromLoad
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws org.hibernate.cache.CacheException - Specified by:
putFromLoadin interfaceorg.hibernate.cache.spi.access.RegionAccessStrategy- Throws:
org.hibernate.cache.CacheException
-
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
-