public class ReadOnlyMemcachedNaturalIdRegionAccessStrategy extends AbstractMemcachedAccessStrategy<MemcachedNaturalIdRegion> implements org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
region| Constructor and Description |
|---|
ReadOnlyMemcachedNaturalIdRegionAccessStrategy(MemcachedNaturalIdRegion 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) |
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) |
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) |
boolean |
putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride)
This method is a placeholder for method signatures supplied by interfaces pulled in further down the class
hierarchy.
|
void |
unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
org.hibernate.cache.spi.access.SoftLock lock) |
boolean |
update(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value) |
evict, evictAll, getRegion, lockRegion, putFromLoad, region, remove, removeAll, settings, unlockRegionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ReadOnlyMemcachedNaturalIdRegionAccessStrategy(MemcachedNaturalIdRegion region, org.hibernate.boot.spi.SessionFactoryOptions settings)
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.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean putFromLoad(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
long txTimestamp,
Object version,
boolean minimalPutOverride)
throws org.hibernate.cache.CacheException
AbstractMemcachedAccessStrategyputFromLoad in interface org.hibernate.cache.spi.access.RegionAccessStrategyputFromLoad in class AbstractMemcachedAccessStrategy<MemcachedNaturalIdRegion>org.hibernate.cache.CacheExceptionpublic 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.RegionAccessStrategyUnsupportedOperationExceptionpublic void unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
org.hibernate.cache.spi.access.SoftLock lock)
throws org.hibernate.cache.CacheException
A no-op since this cache is read-only
unlockItem in interface org.hibernate.cache.spi.access.RegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean insert(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value)
throws org.hibernate.cache.CacheException
This cache is asynchronous hence a no-op
insert in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic 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.NaturalIdRegionAccessStrategyorg.hibernate.cache.CacheExceptionpublic boolean update(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value)
throws UnsupportedOperationException
Throws UnsupportedOperationException since this cache is read-only
update in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategyUnsupportedOperationException - alwayspublic boolean afterUpdate(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value,
org.hibernate.cache.spi.access.SoftLock lock)
throws UnsupportedOperationException
Throws UnsupportedOperationException since this cache is read-only
afterUpdate in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategyUnsupportedOperationException - alwayspublic Object generateCacheKey(Object[] naturalIdValues, org.hibernate.persister.entity.EntityPersister persister, org.hibernate.engine.spi.SharedSessionContractImplementor session)
generateCacheKey in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategyCopyright © 2017. All rights reserved.