| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final DomainDataRegion | |
| private static final SoftLock | |
| private final DomainDataStorageAccess |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public boolean | contains(Object
The cache key key)Implements org. |
| public void | |
| public void | evict(Object
The key of the item to remove key)Implements org. |
| public void | evictAll()
Implements org. |
| public Object | get(SharedSessionContractImplementor
Current session. session, Object The key of the item to be retrieved. key)Implements org. |
| public DomainDataRegion | getRegion()
Implements org. |
| protected DomainDataStorageAccess | |
| public SoftLock | lockRegion()
Implements org. |
| public boolean | putFromLoad(SharedSessionContractImplementor
Current session. session, Object The item key key, Object The item value, Object the item version number version)Implements org. |
| public boolean | putFromLoad(SharedSessionContractImplementor
Current session. session, Object The item key key, Object The item value, Object the item version number version, boolean Explicit minimalPut flag minimalPutOverride)Implements org. |
| public void | remove(SharedSessionContractImplementor
Current session. session, Object The key of the item to remove key)Implements org. |
| public void | removeAll(SharedSessionContractImplementor session)
Implements org. |
| public void | unlockRegion(SoftLock
The lock previously obtained from lock)lockRegionImplements org. |
| log | back to summary |
|---|---|
| private static final Logger log | |
| region | back to summary |
|---|---|
| private final DomainDataRegion region | |
| REGION_LOCK | back to summary |
|---|---|
| private static final SoftLock REGION_LOCK | |
| storageAccess | back to summary |
|---|---|
| private final DomainDataStorageAccess storageAccess | |
| AbstractCachedDomainDataAccess | back to summary |
|---|---|
| protected AbstractCachedDomainDataAccess(DomainDataRegion region, DomainDataStorageAccess storageAccess) | |
| clearCache | back to summary |
|---|---|
| protected void clearCache() | |
| contains | back to summary |
|---|---|
| public boolean contains(Object key) Implements org. Doc from org. Determine whether this region contains data for the given key. The semantic here is whether the cache contains data visible for the current call context. This should be viewed as a "best effort", meaning blocking should be avoided if possible. | |
| destroy | back to summary |
|---|---|
| public void destroy() Implements org.
| |
| evict | back to summary |
|---|---|
| public void evict(Object key) Implements org. Doc from org. Forcibly evict an item from the cache immediately without regard for transaction isolation and/or locking. This behavior is exactly Hibernate legacy behavior, but it is also required by JPA - so we cannot remove it.
Used from JPA's | |
| evictAll | back to summary |
|---|---|
| public void evictAll() Implements org. Doc from org. Forcibly evict all items from the cache immediately without regard for transaction isolation. This behavior is exactly Hibernate legacy behavior, but it is also required by JPA - so we cannot remove it.
Used from our JPA impl of
| |
| get | back to summary |
|---|---|
| public Object get(SharedSessionContractImplementor session, Object key) Implements org. Doc from org. Attempt to retrieve an object from the cache. Mainly used in attempting to resolve entities/collections from the second level cache.
| |
| getRegion | back to summary |
|---|---|
| public DomainDataRegion getRegion() Implements org. Doc from org. The region containing the data being accessed
| |
| getStorageAccess | back to summary |
|---|---|
| protected DomainDataStorageAccess getStorageAccess() | |
| lockRegion | back to summary |
|---|---|
| public SoftLock lockRegion() Implements org. Doc from org. Lock the entire region | |
| putFromLoad | back to summary |
|---|---|
| public boolean putFromLoad(SharedSessionContractImplementor session, Object key, Object value, Object version) Implements org. Doc from org. Attempt to cache an object, afterQuery loading from the database.
| |
| putFromLoad | back to summary |
|---|---|
| public boolean putFromLoad(SharedSessionContractImplementor session, Object key, Object value, Object version, boolean minimalPutOverride) Implements org. Doc from org. Attempt to cache an object, afterQuery loading from the database, explicitly specifying the minimalPut behavior.
| |
| remove | back to summary |
|---|---|
| public void remove(SharedSessionContractImplementor session, Object key) Implements org. Doc from org. Called afterQuery an item has become stale (beforeQuery the transaction completes). This method is used by "synchronous" concurrency strategies.
| |
| removeAll | back to summary |
|---|---|
| public void removeAll(SharedSessionContractImplementor session) Implements org. Doc from org. Remove all data for this accessed type
| |
| unlockRegion | back to summary |
|---|---|
| public void unlockRegion(SoftLock lock) Implements org. Doc from org. Called after we have finished the attempted invalidation of the entire region
| |