java.lang.Object | |
↳ | org.hibernate.cache.TransactionalCache |
Support for fully transactional cache implementations like JBoss TreeCache. Note that this might be a less scalable concurrency strategy than ReadWriteCache. This is a "synchronous" concurrency strategy.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Do nothing.
| |||||||||||
Do nothing.
| |||||||||||
Evict all items from the cache immediately.
| |||||||||||
Clean up all resources.
| |||||||||||
Called after an item has become stale (before the transaction completes).
| |||||||||||
Attempt to retrieve an object from the cache.
| |||||||||||
Get the wrapped cache implementation
| |||||||||||
Get the cache region name
| |||||||||||
Called after an item has been inserted (before the transaction completes),
instead of calling evict().
| |||||||||||
Do nothing, returning null.
| |||||||||||
Attempt to cache an object, after loading from the database.
| |||||||||||
Do nothing.
| |||||||||||
Evict an item from the cache immediately (without regard for transaction
isolation).
| |||||||||||
Set the underlying cache implementation.
| |||||||||||
Called after an item has been updated (before the transaction completes),
instead of calling evict().
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.hibernate.cache.CacheConcurrencyStrategy
|
Do nothing.
CacheException |
---|
Do nothing.
CacheException |
---|
Clean up all resources.
Called after an item has become stale (before the transaction completes). This method is used by "synchronous" concurrency strategies.
CacheException |
---|
Attempt to retrieve an object from the cache. Mainly used in attempting to resolve entities/collections from the second level cache.
txTimestamp | a timestamp prior to the transaction start time |
---|
CacheException |
---|
Called after an item has been inserted (before the transaction completes), instead of calling evict(). This method is used by "synchronous" concurrency strategies.
CacheException |
---|
Attempt to cache an object, after loading from the database.
txTimestamp | a timestamp prior to the transaction start time |
---|---|
version | the item version number |
versionComparator | a comparator used to compare version numbers |
minimalPut | indicates that the cache should avoid a put is the item is already cached |
CacheException |
---|
Evict an item from the cache immediately (without regard for transaction isolation).
CacheException |
---|
Called after an item has been updated (before the transaction completes), instead of calling evict(). This method is used by "synchronous" concurrency strategies.
CacheException |
---|