public class ReadOnlyJ2CacheNaturalIdRegionAccessStrategy extends Object implements org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
Constructor and Description |
---|
ReadOnlyJ2CacheNaturalIdRegionAccessStrategy(J2CacheNaturalIdRegion region,
org.hibernate.boot.spi.SessionFactoryOptions settings) |
Modifier and Type | Method and Description |
---|---|
boolean |
afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value) |
boolean |
afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
org.hibernate.cache.spi.access.SoftLock lock) |
void |
evict(Object key) |
void |
evictAll() |
Object |
generateCacheKey(Object[] naturalIdValues,
org.hibernate.persister.entity.EntityPersister persister,
org.hibernate.engine.spi.SharedSessionContractImplementor session) |
Object |
get(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
long txTimestamp) |
Object[] |
getNaturalIdValues(Object cacheKey) |
org.hibernate.cache.spi.NaturalIdRegion |
getRegion() |
boolean |
insert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value) |
org.hibernate.cache.spi.access.SoftLock |
lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object version) |
org.hibernate.cache.spi.access.SoftLock |
lockRegion() |
boolean |
putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version) |
boolean |
putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride) |
protected T |
region() |
void |
remove(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key) |
void |
removeAll() |
protected org.hibernate.boot.spi.SessionFactoryOptions |
settings() |
void |
unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
org.hibernate.cache.spi.access.SoftLock lock) |
void |
unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) |
boolean |
update(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value) |
public ReadOnlyJ2CacheNaturalIdRegionAccessStrategy(J2CacheNaturalIdRegion region, org.hibernate.boot.spi.SessionFactoryOptions settings)
public org.hibernate.cache.spi.NaturalIdRegion getRegion()
getRegion
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
public Object get(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, long txTimestamp) throws org.hibernate.cache.CacheException
get
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, long txTimestamp, Object version, boolean minimalPutOverride) throws org.hibernate.cache.CacheException
putFromLoad
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public org.hibernate.cache.spi.access.SoftLock lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object version) throws UnsupportedOperationException
lockItem
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
UnsupportedOperationException
public void unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
unlockItem
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public boolean insert(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value) throws org.hibernate.cache.CacheException
insert
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
org.hibernate.cache.CacheException
public boolean afterInsert(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value) throws org.hibernate.cache.CacheException
afterInsert
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
org.hibernate.cache.CacheException
public boolean update(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value) throws UnsupportedOperationException
update
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
UnsupportedOperationException
public boolean afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key, Object value, org.hibernate.cache.spi.access.SoftLock lock) throws UnsupportedOperationException
afterUpdate
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
UnsupportedOperationException
public Object generateCacheKey(Object[] naturalIdValues, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SharedSessionContractImplementor session)
generateCacheKey
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
public Object[] getNaturalIdValues(Object cacheKey)
getNaturalIdValues
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
protected T region()
protected org.hibernate.boot.spi.SessionFactoryOptions settings()
public final boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session, 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 void remove(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key) 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.