public class TransactionalJ2CacheEntityRegionAccessStrategy extends Object implements org.hibernate.cache.spi.access.EntityRegionAccessStrategy
Constructor and Description |
---|
TransactionalJ2CacheEntityRegionAccessStrategy(J2CacheEntityRegion region,
CacheRegion cache,
org.hibernate.cfg.Settings settings) |
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.spi.access.SoftLock lock) |
void |
evict(Object key) |
void |
evictAll() |
Object |
get(Object key,
long txTimestamp) |
org.hibernate.cache.spi.EntityRegion |
getRegion() |
boolean |
insert(Object key,
Object value,
Object version) |
org.hibernate.cache.spi.access.SoftLock |
lockItem(Object key,
Object version) |
org.hibernate.cache.spi.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) |
protected T |
region() |
void |
remove(Object key) |
void |
removeAll() |
protected org.hibernate.cfg.Settings |
settings() |
void |
unlockItem(Object key,
org.hibernate.cache.spi.access.SoftLock lock) |
void |
unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) |
boolean |
update(Object key,
Object value,
Object currentVersion,
Object previousVersion) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public TransactionalJ2CacheEntityRegionAccessStrategy(J2CacheEntityRegion region, CacheRegion cache, org.hibernate.cfg.Settings settings)
public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, org.hibernate.cache.spi.access.SoftLock lock)
public Object get(Object key, long txTimestamp) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public org.hibernate.cache.spi.EntityRegion getRegion()
getRegion
in interface org.hibernate.cache.spi.access.EntityRegionAccessStrategy
public boolean insert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public org.hibernate.cache.spi.access.SoftLock lockItem(Object key, Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public void remove(Object key) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public void unlockItem(Object key, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
protected T region()
protected org.hibernate.cfg.Settings settings()
public final boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public final org.hibernate.cache.spi.access.SoftLock lockRegion()
public final void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public final void removeAll() throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public final void evict(Object key) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public final void evictAll() throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
Copyright © 2018. All rights reserved.