Package org.hibernate.cache.spi.support
Class EntityNonStrictReadWriteAccess
java.lang.Object
org.hibernate.cache.spi.support.AbstractCachedDomainDataAccess
org.hibernate.cache.spi.support.AbstractEntityDataAccess
org.hibernate.cache.spi.support.EntityNonStrictReadWriteAccess
- All Implemented Interfaces:
CachedDomainDataAccess
,EntityDataAccess
,AbstractDomainDataRegion.Destructible
Standard support for
EntityDataAccess
using the AccessType.NONSTRICT_READ_WRITE
access type.-
Constructor Summary
ConstructorsConstructorDescriptionEntityNonStrictReadWriteAccess
(DomainDataRegion domainDataRegion, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, EntityDataCachingConfig entityAccessConfig) -
Method Summary
Modifier and TypeMethodDescriptionboolean
afterInsert
(SharedSessionContractImplementor session, Object key, Object value, Object version) Called after an item has been inserted (after the transaction completes), instead of calling#release
.boolean
afterUpdate
(SharedSessionContractImplementor session, Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) Called after an item has been updated (after the transaction completes), instead of calling#release
.The type of access implementedboolean
insert
(SharedSessionContractImplementor session, Object key, Object value, Object version) Called after an item has been inserted (before the transaction completes), instead of callingCachedDomainDataAccess.evict(java.lang.Object)
.void
remove
(SharedSessionContractImplementor session, Object key) Notify that an item has become stale, before completion of the transaction.void
unlockItem
(SharedSessionContractImplementor session, Object key, SoftLock lock) Since this is a non-strict read/write strategy item locking is not used.boolean
update
(SharedSessionContractImplementor session, Object key, Object value, Object currentVersion, Object previousVersion) Called after an item has been updated (before the transaction completes), instead of callingCachedDomainDataAccess.evict(java.lang.Object)
.Methods inherited from class org.hibernate.cache.spi.support.AbstractEntityDataAccess
generateCacheKey, getCacheKeyId, lockItem, lockRegion, unlockRegion
Methods inherited from class org.hibernate.cache.spi.support.AbstractCachedDomainDataAccess
clearCache, contains, destroy, evict, evictAll, get, getRegion, getStorageAccess, putFromLoad, putFromLoad, removeAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hibernate.cache.spi.access.CachedDomainDataAccess
contains, evict, evictAll, get, getRegion, putFromLoad, putFromLoad, removeAll
-
Constructor Details
-
EntityNonStrictReadWriteAccess
public EntityNonStrictReadWriteAccess(DomainDataRegion domainDataRegion, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, EntityDataCachingConfig entityAccessConfig)
-
-
Method Details
-
getAccessType
Description copied from interface:CachedDomainDataAccess
The type of access implemented
-