Deprecated
as a consequence of CacheConcurrencyStrategy being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | afterInsert(Object key, Object value, Object version)
Implements org. |
| public boolean | afterUpdate(Object key, Object value, Object version, SoftLock clientLock)
Implements org. |
| public void | clear()
Implements org. |
| public void | |
| public void | evict(Object key)
Implements org. |
| public Object | get(Object key, long
a timestamp prior to the transaction start time txTimestamp)Implements org. |
| public Cache | getCache()
Implements org.
Deprecated
as a consequence of
Get the wrapped cache implementation
Cache being deprecated.
|
| public String | getRegionName()
Implements org. |
| public boolean | insert(Object key, Object value, Object currentVersion)
Implements org. |
| public SoftLock | lock(Object key, Object version)
Implements org. |
| public boolean | put(Object key, Object value, long
a timestamp prior to the transaction start time txTimestamp, Object the item version number version, Comparator<T> a comparator used to compare version numbers versionComparator, boolean indicates that the cache should avoid a put is the item is already cached minimalPut)Implements org. |
| public void | release(Object key, SoftLock clientLock)
Implements org. |
| public void | remove(Object key)
Implements org. |
| public void | setCache(Cache cache)
Implements org.
Deprecated
as a consequence of
Set the underlying cache implementation.
Cache being deprecated.
|
| public String | |
| public boolean |
| cache | back to summary |
|---|---|
| private Cache cache
Deprecated as a consequence of | |
| log | back to summary |
|---|---|
| private static final Logger log | |
| TransactionalCache | back to summary |
|---|---|
| public TransactionalCache() | |
| afterInsert | back to summary |
|---|---|
| public boolean afterInsert(Object key, Object value, Object version) throws CacheException Implements org. Do nothing. | |
| afterUpdate | back to summary |
|---|---|
| public boolean afterUpdate(Object key, Object value, Object version, SoftLock clientLock) throws CacheException Implements org. Do nothing. | |
| clear | back to summary |
|---|---|
| public void clear() throws CacheException Implements org. Doc from org. Evict all items from the cache immediately. | |
| destroy | back to summary |
|---|---|
| public void destroy() Implements org. Doc from org. Clean up all resources. | |
| evict | back to summary |
|---|---|
| public void evict(Object key) throws CacheException Implements org. Doc from org. Called after an item has become stale (before the transaction completes). This method is used by "synchronous" concurrency strategies. | |
| get | back to summary |
|---|---|
| public Object get(Object key, long txTimestamp) throws CacheException 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.
| |
| getCache | back to summary |
|---|---|
| public Cache getCache() Implements org. Doc from org. Deprecated as a consequence of Get the wrapped cache implementation | |
| getRegionName | back to summary |
|---|---|
| public String getRegionName() Implements org. Doc from org. Get the cache region name | |
| insert | back to summary |
|---|---|
| public boolean insert(Object key, Object value, Object currentVersion) throws CacheException Implements org. Doc from org. Called after an item has been inserted (before the transaction completes), instead of calling evict(). This method is used by "synchronous" concurrency strategies. | |
| lock | back to summary |
|---|---|
| public SoftLock lock(Object key, Object version) throws CacheException Implements org. Do nothing, returning null. | |
| put | back to summary |
|---|---|
| public boolean put(Object key, Object value, long txTimestamp, Object version, Comparator<T> versionComparator, boolean minimalPut) throws CacheException Implements org. Doc from org. Attempt to cache an object, after loading from the database.
| |
| release | back to summary |
|---|---|
| public void release(Object key, SoftLock clientLock) throws CacheException Implements org. Do nothing. | |
| remove | back to summary |
|---|---|
| public void remove(Object key) throws CacheException Implements org. Doc from org. Evict an item from the cache immediately (without regard for transaction isolation). | |
| setCache | back to summary |
|---|---|
| public void setCache(Cache cache) Implements org. Doc from org. Deprecated as a consequence of Set the underlying cache implementation. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |
| update | back to summary |
|---|---|
| public boolean update(Object key, Object value, Object currentVersion, Object previousVersion) throws CacheException Implements org. Doc from org. Called after an item has been updated (before the transaction completes), instead of calling evict(). This method is used by "synchronous" concurrency strategies. | |