public class NaturalIdReadOnlyAccess extends AbstractNaturalIdDataAccess
Standard support for NaturalIdDataAccess
using the AccessType.READ_ONLY
access type.
Constructor and Description |
---|
NaturalIdReadOnlyAccess(DomainDataRegion region,
CacheKeysFactory keysFactory,
DomainDataStorageAccess storageAccess,
NaturalIdDataCachingConfig config) |
Modifier and Type | Method and Description |
---|---|
AccessType |
getAccessType()
The type of access implemented
|
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.
|
afterInsert, afterUpdate, generateCacheKey, getNaturalIdValues, insert, lockItem, lockRegion, unlockRegion, update
clearCache, contains, destroy, evict, evictAll, get, getRegion, getStorageAccess, putFromLoad, putFromLoad, remove, removeAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, evict, evictAll, get, getRegion, putFromLoad, putFromLoad, remove, removeAll
public NaturalIdReadOnlyAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, NaturalIdDataCachingConfig config)
public AccessType getAccessType()
CachedDomainDataAccess
The type of access implemented
public void unlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock)
CachedDomainDataAccess
Called when we have finished the attempted update/delete (which may or may not have been successful), after transaction completion. This method is used by "asynchronous" concurrency strategies.
unlockItem
in interface CachedDomainDataAccess
unlockItem
in class AbstractNaturalIdDataAccess
session
- Current session.key
- The item keylock
- The lock previously obtained from CachedDomainDataAccess.lockItem(org.hibernate.engine.spi.SharedSessionContractImplementor, java.lang.Object, java.lang.Object)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.