public final class EntityRegionAccessStrategyAdapter extends Object implements org.hibernate.cache.access.EntityRegionAccessStrategy
| Constructor and Description |
|---|
EntityRegionAccessStrategyAdapter(AccessDelegate<? extends HazelcastEntityRegion> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
afterInsert(Object key,
Object value,
Object version) |
boolean |
afterUpdate(Object key,
Object value,
Object currentVersion,
Object previousVersion,
org.hibernate.cache.access.SoftLock lock) |
void |
evict(Object key) |
void |
evictAll() |
Object |
get(Object key,
long txTimestamp) |
org.hibernate.cache.EntityRegion |
getRegion() |
boolean |
insert(Object key,
Object value,
Object version) |
org.hibernate.cache.access.SoftLock |
lockItem(Object key,
Object version) |
org.hibernate.cache.access.SoftLock |
lockRegion() |
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version) |
boolean |
putFromLoad(Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride) |
void |
remove(Object key) |
void |
removeAll() |
void |
unlockItem(Object key,
org.hibernate.cache.access.SoftLock lock) |
void |
unlockRegion(org.hibernate.cache.access.SoftLock lock) |
boolean |
update(Object key,
Object value,
Object currentVersion,
Object previousVersion) |
public EntityRegionAccessStrategyAdapter(AccessDelegate<? extends HazelcastEntityRegion> delegate)
public boolean afterInsert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException
afterInsert in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException
afterUpdate in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void evict(Object key) throws org.hibernate.cache.CacheException
evict in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void evictAll()
throws org.hibernate.cache.CacheException
evictAll in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic Object get(Object key, long txTimestamp) throws org.hibernate.cache.CacheException
get in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.EntityRegion getRegion()
getRegion in interface org.hibernate.cache.access.EntityRegionAccessStrategypublic boolean insert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException
insert in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.access.SoftLock lockItem(Object key, Object version) throws org.hibernate.cache.CacheException
lockItem in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.access.SoftLock lockRegion()
throws org.hibernate.cache.CacheException
lockRegion in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws org.hibernate.cache.CacheException
putFromLoad in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException
putFromLoad in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void remove(Object key) throws org.hibernate.cache.CacheException
remove in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void removeAll()
throws org.hibernate.cache.CacheException
removeAll in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void unlockItem(Object key, org.hibernate.cache.access.SoftLock lock) throws org.hibernate.cache.CacheException
unlockItem in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void unlockRegion(org.hibernate.cache.access.SoftLock lock)
throws org.hibernate.cache.CacheException
unlockRegion in interface org.hibernate.cache.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionCopyright © 2014 Hazelcast, Inc.. All Rights Reserved.