public class CollectionAccess
extends java.lang.Object
implements org.hibernate.cache.access.CollectionRegionAccessStrategy
| Constructor and Description |
|---|
CollectionAccess(GemFireCollectionRegion region) |
| Modifier and Type | Method and Description |
|---|---|
void |
evict(java.lang.Object key) |
void |
evictAll() |
java.lang.Object |
get(java.lang.Object key,
long txTimestamp) |
org.hibernate.cache.CollectionRegion |
getRegion() |
org.hibernate.cache.access.SoftLock |
lockItem(java.lang.Object key,
java.lang.Object version) |
org.hibernate.cache.access.SoftLock |
lockRegion() |
boolean |
putFromLoad(java.lang.Object key,
java.lang.Object value,
long txTimestamp,
java.lang.Object version) |
boolean |
putFromLoad(java.lang.Object key,
java.lang.Object value,
long txTimestamp,
java.lang.Object version,
boolean minimalPutOverride) |
void |
remove(java.lang.Object key) |
void |
removeAll() |
void |
unlockItem(java.lang.Object key,
org.hibernate.cache.access.SoftLock lock) |
void |
unlockRegion(org.hibernate.cache.access.SoftLock lock) |
public CollectionAccess(GemFireCollectionRegion region)
public org.hibernate.cache.CollectionRegion getRegion()
getRegion in interface org.hibernate.cache.access.CollectionRegionAccessStrategypublic java.lang.Object get(java.lang.Object key,
long txTimestamp)
throws org.hibernate.cache.CacheException
get in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean putFromLoad(java.lang.Object key,
java.lang.Object value,
long txTimestamp,
java.lang.Object version)
throws org.hibernate.cache.CacheException
putFromLoad in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean putFromLoad(java.lang.Object key,
java.lang.Object value,
long txTimestamp,
java.lang.Object version,
boolean minimalPutOverride)
throws org.hibernate.cache.CacheException
putFromLoad in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.access.SoftLock lockItem(java.lang.Object key,
java.lang.Object version)
throws org.hibernate.cache.CacheException
lockItem in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.access.SoftLock lockRegion()
throws org.hibernate.cache.CacheException
lockRegion in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void unlockItem(java.lang.Object key,
org.hibernate.cache.access.SoftLock lock)
throws org.hibernate.cache.CacheException
unlockItem in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void unlockRegion(org.hibernate.cache.access.SoftLock lock)
throws org.hibernate.cache.CacheException
unlockRegion in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void remove(java.lang.Object key)
throws org.hibernate.cache.CacheException
remove in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void removeAll()
throws org.hibernate.cache.CacheException
removeAll in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void evict(java.lang.Object key)
throws org.hibernate.cache.CacheException
evict in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic void evictAll()
throws org.hibernate.cache.CacheException
evictAll in interface org.hibernate.cache.access.CollectionRegionAccessStrategyorg.hibernate.cache.CacheException