EntityDataAccess
using the AccessType#READ_WRITE access type.
| Modifier and Type | Field and Description |
|---|---|
| private final CacheKeysFactory | |
| private final Comparator |
| Access | Constructor and Description |
|---|---|
| public | EntityReadWriteAccess(DomainDataRegion domainDataRegion, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, EntityDataCachingConfig entityAccessConfig)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | afterInsert(SharedSessionContractImplementor
Current session session, Object The item key key, Object The item value, Object The item's version value version)Implements org. |
| public boolean | afterUpdate(SharedSessionContractImplementor
Current session session, Object The item key key, Object The item value, Object The item's current version value currentVersion, Object The item's previous version value previousVersion, SoftLock The lock previously obtained from lock)lockItemImplements org. |
| public Object | generateCacheKey(Object
the primary identifier of the entity id, EntityPersister Hierarchy for which a key is being generated rootEntityDescriptor, SessionFactoryImplementor a reference to the current SessionFactory factory, String the tenant id, or null if multi-tenancy is not being used. tenantIdentifier)Implements org.
Deprecated
as a consequence of
To create instances of keys for this region, Hibernate will invoke this method
exclusively so that generated implementations can generate optimised keys.
SessionFactoryImplementor being deprecated.
|
| protected AccessedDataClassification | |
| public AccessType | getAccessType()
Implements org. |
| public Object | getCacheKeyId(Object
key previously returned from cacheKey)generateCacheKeyImplements org. generateCacheKey
|
| protected Comparator | |
| public boolean | insert(SharedSessionContractImplementor
Current session session, Object The item key key, Object The item value, Object The item's version value version)Implements org. |
| public SoftLock | lockRegion()
Overrides org. Implements org. |
| public boolean | update(SharedSessionContractImplementor
Current session session, Object The item key key, Object The item value, Object The item's current version value currentVersion, Object The item's previous version value previousVersion)Implements org. |
| keysFactory | back to summary |
|---|---|
| private final CacheKeysFactory keysFactory | |
| versionComparator | back to summary |
|---|---|
| private final Comparator<T> versionComparator | |
| EntityReadWriteAccess | back to summary |
|---|---|
| public EntityReadWriteAccess(DomainDataRegion domainDataRegion, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, EntityDataCachingConfig entityAccessConfig) | |
| afterInsert | back to summary |
|---|---|
| public boolean afterInsert(SharedSessionContractImplementor session, Object key, Object value, Object version) Implements org. Doc from org. Called afterQuery an item has been inserted (afterQuery the transaction completes), instead of calling release(). This method is used by "asynchronous" concurrency strategies.
| |
| afterUpdate | back to summary |
|---|---|
| public boolean afterUpdate(SharedSessionContractImplementor session, Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock) Implements org. Doc from org. Called afterQuery an item has been updated (afterQuery the transaction completes), instead of calling release(). This method is used by "asynchronous" concurrency strategies.
| |
| generateCacheKey | back to summary |
|---|---|
| public Object generateCacheKey(Object id, EntityPersister rootEntityDescriptor, SessionFactoryImplementor factory, String tenantIdentifier) Implements org. Doc from org. Deprecated as a consequence of To create instances of keys for this region, Hibernate will invoke this method exclusively so that generated implementations can generate optimised keys.
| |
| getAccessedDataClassification | back to summary |
|---|---|
| protected AccessedDataClassification getAccessedDataClassification() Implements abstract org.
| |
| getAccessType | back to summary |
|---|---|
| public AccessType getAccessType() Implements org. Doc from org. The type of access implemented
| |
| getCacheKeyId | back to summary |
|---|---|
| public Object getCacheKeyId(Object cacheKey) Implements org. Doc from org. Performs reverse operation to
| |
| getVersionComparator | back to summary |
|---|---|
| protected Comparator Implements abstract org.
| |
| insert | back to summary |
|---|---|
| public boolean insert(SharedSessionContractImplementor session, Object key, Object value, Object version) Implements org. Doc from org. Called afterQuery an item has been inserted (beforeQuery the transaction completes), instead of calling evict(). This method is used by "synchronous" concurrency strategies.
| |
| lockRegion | back to summary |
|---|---|
| public SoftLock lockRegion() Overrides org. Implements org. Doc from org. Lock the entire region | |
| update | back to summary |
|---|---|
| public boolean update(SharedSessionContractImplementor session, Object key, Object value, Object currentVersion, Object previousVersion) Implements org. Doc from org. Called afterQuery an item has been updated (beforeQuery the transaction completes), instead of calling evict(). This method is used by "synchronous" concurrency strategies.
| |