| Modifier and Type | Field and Description |
|---|---|
| private final CacheKeysFactory |
| Access | Constructor and Description |
|---|---|
| public | AbstractEntityDataAccess(DomainDataRegion region, CacheKeysFactory cacheKeysFactory, DomainDataStorageAccess storageAccess)
|
| Modifier and Type | Method and Description |
|---|---|
| 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.
|
| public Object | getCacheKeyId(Object
key previously returned from cacheKey)generateCacheKeyImplements org. generateCacheKey
|
| public SoftLock | lockItem(SharedSessionContractImplementor
Current session. session, Object The key of the item to lock key, Object The item's current version value version)Implements org. |
| public SoftLock | lockRegion()
Overrides org. Implements org. |
| public void | unlockItem(SharedSessionContractImplementor
Current session. session, Object The item key key, SoftLock The lock previously obtained from lock)lockItemImplements org. |
| public void | unlockRegion(SoftLock
The lock previously obtained from lock)lockRegionOverrides org. Implements org. |
| cacheKeysFactory | back to summary |
|---|---|
| private final CacheKeysFactory cacheKeysFactory | |
| AbstractEntityDataAccess | back to summary |
|---|---|
| public AbstractEntityDataAccess(DomainDataRegion region, CacheKeysFactory cacheKeysFactory, DomainDataStorageAccess storageAccess) | |
| 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.
| |
| getCacheKeyId | back to summary |
|---|---|
| public Object getCacheKeyId(Object cacheKey) Implements org. Doc from org. Performs reverse operation to
| |
| lockItem | back to summary |
|---|---|
| public SoftLock lockItem(SharedSessionContractImplementor session, Object key, Object version) Implements org. Doc from org. We are going to attempt to update/delete the keyed object. This method is used by "asynchronous" concurrency strategies.
The returned object must be passed back to
| |
| lockRegion | back to summary |
|---|---|
| public SoftLock lockRegion() Overrides org. Implements org. Doc from org. Lock the entire region | |
| unlockItem | back to summary |
|---|---|
| public void unlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock) Implements org. Doc from org. 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.
| |
| unlockRegion | back to summary |
|---|---|
| public void unlockRegion(SoftLock lock) Overrides org. Implements org. Doc from org. Called after we have finished the attempted invalidation of the entire region
| |