public final class NaturalIdRegionAccessStrategyAdapter extends Object implements org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
Constructor and Description |
---|
NaturalIdRegionAccessStrategyAdapter(AccessDelegate<? extends HazelcastNaturalIdRegion> delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
afterInsert(Object key,
Object value) |
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) |
boolean |
afterUpdate(Object key,
Object value,
org.hibernate.cache.spi.access.SoftLock lock) |
void |
evict(Object key) |
void |
evictAll() |
Object |
get(Object key,
long txTimestamp) |
org.hibernate.cache.spi.NaturalIdRegion |
getRegion() |
boolean |
insert(Object key,
Object value) |
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) |
void |
remove(Object key) |
void |
removeAll() |
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) |
boolean |
update(Object key,
Object value,
Object currentVersion,
Object previousVersion) |
public NaturalIdRegionAccessStrategyAdapter(AccessDelegate<? extends HazelcastNaturalIdRegion> delegate)
public boolean afterInsert(Object key, Object value) throws org.hibernate.cache.CacheException
afterInsert
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
org.hibernate.cache.CacheException
public boolean afterInsert(Object key, Object value, Object version) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public boolean afterUpdate(Object key, Object value, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
afterUpdate
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
org.hibernate.cache.CacheException
public boolean afterUpdate(Object key, Object value, Object currentVersion, Object previousVersion, org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public void evict(Object key) throws org.hibernate.cache.CacheException
evict
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public void evictAll() throws org.hibernate.cache.CacheException
evictAll
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public Object get(Object key, long txTimestamp) throws org.hibernate.cache.CacheException
get
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public org.hibernate.cache.spi.NaturalIdRegion getRegion()
getRegion
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
public boolean insert(Object key, Object value) throws org.hibernate.cache.CacheException
insert
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
org.hibernate.cache.CacheException
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
lockItem
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public org.hibernate.cache.spi.access.SoftLock lockRegion() throws org.hibernate.cache.CacheException
lockRegion
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public boolean putFromLoad(Object key, Object value, long txTimestamp, Object version) throws org.hibernate.cache.CacheException
putFromLoad
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public boolean putFromLoad(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 void remove(Object key) throws org.hibernate.cache.CacheException
remove
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public void removeAll() throws org.hibernate.cache.CacheException
removeAll
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public void unlockItem(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 void unlockRegion(org.hibernate.cache.spi.access.SoftLock lock) throws org.hibernate.cache.CacheException
unlockRegion
in interface org.hibernate.cache.spi.access.RegionAccessStrategy
org.hibernate.cache.CacheException
public boolean update(Object key, Object value) throws org.hibernate.cache.CacheException
update
in interface org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy
org.hibernate.cache.CacheException
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.