Package org.redisson.hibernate.strategy
Class ReadOnlyCollectionRegionAccessStrategy
java.lang.Object
org.redisson.hibernate.strategy.ReadOnlyCollectionRegionAccessStrategy
- All Implemented Interfaces:
org.hibernate.cache.spi.access.CollectionRegionAccessStrategy,org.hibernate.cache.spi.access.RegionAccessStrategy
public class ReadOnlyCollectionRegionAccessStrategy
extends Object
implements org.hibernate.cache.spi.access.CollectionRegionAccessStrategy
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionReadOnlyCollectionRegionAccessStrategy(org.hibernate.cfg.Settings settings, org.hibernate.cache.spi.GeneralDataRegion region) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidevictAll()generateCacheKey(Object id, org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor factory, String tenantIdentifier) get(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, long txTimestamp) getCacheKeyId(Object cacheKey) org.hibernate.cache.spi.CollectionRegionorg.hibernate.cache.spi.access.SoftLocklockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object version) org.hibernate.cache.spi.access.SoftLockbooleanputFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, long txTimestamp, Object version) booleanputFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) voidvoidvoidunlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, org.hibernate.cache.spi.access.SoftLock lock) voidunlockRegion(org.hibernate.cache.spi.access.SoftLock lock) Methods 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, remove, removeAll, unlockRegion
-
Constructor Details
-
ReadOnlyCollectionRegionAccessStrategy
public ReadOnlyCollectionRegionAccessStrategy(org.hibernate.cfg.Settings settings, org.hibernate.cache.spi.GeneralDataRegion region)
-
-
Method Details
-
getRegion
public org.hibernate.cache.spi.CollectionRegion getRegion()- Specified by:
getRegionin interfaceorg.hibernate.cache.spi.access.CollectionRegionAccessStrategy
-
generateCacheKey
public Object generateCacheKey(Object id, org.hibernate.persister.collection.CollectionPersister persister, org.hibernate.engine.spi.SessionFactoryImplementor factory, String tenantIdentifier) - Specified by:
generateCacheKeyin interfaceorg.hibernate.cache.spi.access.CollectionRegionAccessStrategy
-
getCacheKeyId
- Specified by:
getCacheKeyIdin interfaceorg.hibernate.cache.spi.access.CollectionRegionAccessStrategy
-
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
-