public interface CachedDomainDataAccess
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
contains(Object key)
Determine whether this region contains data for the given key. 
 | 
void | 
evict(Object key)
Forcibly evict an item from the cache immediately without regard for transaction
 isolation and/or locking. 
 | 
void | 
evictAll()
Forcibly evict all items from the cache immediately without regard for transaction
 isolation. 
 | 
Object | 
get(SharedSessionContractImplementor session,
   Object key)
Attempt to retrieve an object from the cache. 
 | 
AccessType | 
getAccessType()
The type of access implemented 
 | 
DomainDataRegion | 
getRegion()
The region containing the data being accessed 
 | 
SoftLock | 
lockItem(SharedSessionContractImplementor session,
        Object key,
        Object version)
We are going to attempt to update/delete the keyed object. 
 | 
SoftLock | 
lockRegion()
Lock the entire region 
 | 
boolean | 
putFromLoad(SharedSessionContractImplementor session,
           Object key,
           Object value,
           Object version)
Attempt to cache an object, afterQuery loading from the database. 
 | 
boolean | 
putFromLoad(SharedSessionContractImplementor session,
           Object key,
           Object value,
           Object version,
           boolean minimalPutOverride)
Attempt to cache an object, afterQuery loading from the database, explicitly
 specifying the minimalPut behavior. 
 | 
void | 
remove(SharedSessionContractImplementor session,
      Object key)
Called afterQuery an item has become stale (beforeQuery the transaction completes). 
 | 
void | 
removeAll(SharedSessionContractImplementor session)
Remove all data for this accessed type 
 | 
void | 
unlockItem(SharedSessionContractImplementor session,
          Object key,
          SoftLock lock)
Called when we have finished the attempted update/delete (which may or
 may not have been successful), after transaction completion. 
 | 
void | 
unlockRegion(SoftLock lock)
Called after we have finished the attempted invalidation of the entire
 region 
 | 
DomainDataRegion getRegion()
AccessType getAccessType()
Object get(SharedSessionContractImplementor session, Object key)
session - Current session.key - The key of the item to be retrieved.nullCacheException - Propagated from underlying cache providerboolean putFromLoad(SharedSessionContractImplementor session, Object key, Object value, Object version)
session - Current session.key - The item keyvalue - The itemversion - the item version numbertrue if the object was successfully cachedCacheException - Propagated from underlying cache providerboolean putFromLoad(SharedSessionContractImplementor session, Object key, Object value, Object version, boolean minimalPutOverride)
session - Current session.key - The item keyvalue - The itemversion - the item version numberminimalPutOverride - Explicit minimalPut flagtrue if the object was successfully cachedCacheException - Propagated from underlying cache providerSoftLock lockItem(SharedSessionContractImplementor session, Object key, Object version)
unlockItem(org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object, org.hibernate.cache.spi.access.SoftLock), to release the
 lock. Concurrency strategies which do not support client-visible
 locks may silently return null.session - Current session.key - The key of the item to lockversion - The item's current version valuenull.CacheException - Propagated from underlying cache providervoid unlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock)
session - Current session.key - The item keylock - The lock previously obtained from lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object, java.lang.Object)CacheException - Propagated from underlying cache providervoid remove(SharedSessionContractImplementor session, Object key)
session - Current session.key - The key of the item to removeCacheException - Propagated from underlying cache providervoid removeAll(SharedSessionContractImplementor session)
session - CacheException - Propagated from underlying cache providerboolean contains(Object key)
key - The cache keySoftLock lockRegion()
null.CacheException - Propagated from underlying cache providervoid unlockRegion(SoftLock lock)
lock - The lock previously obtained from lockRegion()CacheException - Propagated from underlying cache providervoid evict(Object key)
Cache.evict(Class, Object), as well as the
 Hibernate extension Cache.evictEntityData(Class, Serializable)
 and Cache.evictEntityData(String, Serializable)key - The key of the item to removeCacheException - Propagated from underlying cache providervoid evictAll()
Cache.evictAll() as well as the Hibernate
 extensions Cache.evictEntityData(Class),
 Cache.evictEntityData(String) and
 Cache.evictEntityData()CacheException - Propagated from underlying cache providerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.