org.hibernate.cache.spi.access.NaturalIdDataAccess
using the AccessType#NONSTRICT_READ_WRITE access type.
| Access | Constructor and Description |
|---|---|
| public | NaturalIdNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, NaturalIdDataCachingConfig config)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | afterInsert(SharedSessionContractImplementor
Current session session, Object The item key key, Object The item value)Overrides org. Implements org. |
| public AccessType | getAccessType()
Implements org. |
| public boolean | insert(SharedSessionContractImplementor
Current session session, Object The item key key, Object The item value)Overrides org. Implements org. |
| public void | remove(SharedSessionContractImplementor
Current session. session, Object The key of the item to remove key)Overrides org. Implements org. |
| public void | unlockItem(SharedSessionContractImplementor
Current session. session, Object The item key key, SoftLock The lock previously obtained from lock)lockItemOverrides org. Implements org. |
| public boolean | update(SharedSessionContractImplementor
Current session session, Object The item key key, Object The item value)Overrides org. Implements org. |
| NaturalIdNonStrictReadWriteAccess | back to summary |
|---|---|
| public NaturalIdNonStrictReadWriteAccess(DomainDataRegion region, CacheKeysFactory keysFactory, DomainDataStorageAccess storageAccess, NaturalIdDataCachingConfig config) | |
| afterInsert | back to summary |
|---|---|
| public boolean afterInsert(SharedSessionContractImplementor session, Object key, Object value) Overrides org. 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.
| |
| getAccessType | back to summary |
|---|---|
| public AccessType getAccessType() Implements org. Doc from org. The type of access implemented
| |
| insert | back to summary |
|---|---|
| public boolean insert(SharedSessionContractImplementor session, Object key, Object value) Overrides org. 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.
| |
| remove | back to summary |
|---|---|
| public void remove(SharedSessionContractImplementor session, Object key) Overrides org. Implements org. Doc from org. Called afterQuery an item has become stale (beforeQuery the transaction completes). This method is used by "synchronous" concurrency strategies.
| |
| unlockItem | back to summary |
|---|---|
| public void unlockItem(SharedSessionContractImplementor session, Object key, SoftLock lock) Overrides org. 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.
| |
| update | back to summary |
|---|---|
| public boolean update(SharedSessionContractImplementor session, Object key, Object value) Overrides org. 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.
| |