public class ReadOnlyJ2CacheEntityRegionAccessStrategy extends Object implements org.hibernate.cache.spi.access.EntityRegionAccessStrategy
| 构造器和说明 |
|---|
ReadOnlyJ2CacheEntityRegionAccessStrategy(J2CacheEntityRegion region,
org.hibernate.cfg.Settings settings) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
public ReadOnlyJ2CacheEntityRegionAccessStrategy(J2CacheEntityRegion region, org.hibernate.cfg.Settings settings)
public org.hibernate.cache.spi.EntityRegion getRegion()
getRegion 在接口中 org.hibernate.cache.spi.access.EntityRegionAccessStrategypublic Object get(Object key, long txTimestamp) throws org.hibernate.cache.CacheException
get 在接口中 org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean putFromLoad(Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException
putFromLoad 在接口中 org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.spi.access.SoftLock lockItem(Object key, Object version) throws UnsupportedOperationException
lockItem 在接口中 org.hibernate.cache.spi.access.RegionAccessStrategyUnsupportedOperationExceptionpublic void unlockItem(Object key, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
unlockItem 在接口中 org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean insert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException
insert 在接口中 org.hibernate.cache.spi.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean afterInsert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException
afterInsert 在接口中 org.hibernate.cache.spi.access.EntityRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws UnsupportedOperationException
update 在接口中 org.hibernate.cache.spi.access.EntityRegionAccessStrategyUnsupportedOperationExceptionpublic boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, org.hibernate.cache.spi.access.SoftLock lock) throws UnsupportedOperationException
afterUpdate 在接口中 org.hibernate.cache.spi.access.EntityRegionAccessStrategyUnsupportedOperationExceptionprotected 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.CacheExceptionpublic 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.CacheExceptionpublic void remove(Object key) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic final void removeAll()
throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic final void evict(Object key) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionpublic final void evictAll()
throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheExceptionCopyright © 2018. All rights reserved.