This is the common superclass entity and collection regions.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final CacheLockProvider | |
| protected final CacheDataDescription | metadata
Metadata associated with the objects stored in the region. |
| protected final Settings | settings
Hibernate settings associated with the persistence unit. |
| Access | Constructor and Description |
|---|---|
| pack-priv | EhcacheTransactionalDataRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache cache, Settings settings, CacheDataDescription metadata, Properties properties)
Construct an transactional Hibernate cache region around the given Ehcache instance. |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public final Object | |
| public CacheDataDescription | |
| public Settings | |
| public boolean | isTransactionAware()
Implements org. |
| public final boolean | locksAreIndependentOfCache()
Returns |
| public final void | |
| private void | |
| public final void | putEternal(Object key, Object value)
Map the given value to the given key, replacing any existing mapping for this key, pinning the key in the cache |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void |
| LOCAL_LOCK_PROVIDER_CONCURRENCY | back to summary |
|---|---|
| private static final int LOCAL_LOCK_PROVIDER_CONCURRENCY | |
| lockProvider | back to summary |
|---|---|
| private final CacheLockProvider lockProvider | |
| metadata | back to summary |
|---|---|
| protected final CacheDataDescription metadata Metadata associated with the objects stored in the region. | |
| settings | back to summary |
|---|---|
| protected final Settings settings Hibernate settings associated with the persistence unit. | |
| EhcacheTransactionalDataRegion | back to summary |
|---|---|
| pack-priv EhcacheTransactionalDataRegion(EhcacheAccessStrategyFactory accessStrategyFactory, Ehcache cache, Settings settings, CacheDataDescription metadata, Properties properties) Construct an transactional Hibernate cache region around the given Ehcache instance. | |
| clear | back to summary |
|---|---|
| public final void clear() throws CacheException Remove all mapping from this cache region. | |
| get | back to summary |
|---|---|
| public final Object get(Object key) Get the value mapped to this key, or null if no value is mapped to this key. | |
| getCacheDataDescription | back to summary |
|---|---|
| public CacheDataDescription getCacheDataDescription() Implements org. | |
| getSettings | back to summary |
|---|---|
| public Settings getSettings() Return the hibernate settings
| |
| isTransactionAware | back to summary |
|---|---|
| public boolean isTransactionAware() Implements org. Doc from org. Is the underlying cache implementation aware of (and "participating in") ongoing JTA transactions? Regions which report that they are transaction-aware are considered "synchronous", in that we assume we can immediately (i.e. synchronously) write the changes to the cache and that the cache will properly manage application of the written changes within the bounds of ongoing JTA transactions. Conversely, regions reporting false are considered "asynchronous", where it is assumed that changes must be manually delayed by Hibernate until we are certain that the current transaction is successful (i.e. maintaining READ_COMMITTED isolation).
| |
| locksAreIndependentOfCache | back to summary |
|---|---|
| public final boolean locksAreIndependentOfCache() Returns Independent locks are not locked by the cache when the cache is accessed directly. This means that for an independent lock lock holds taken through a region method will not block direct access to the cache via other means. | |
| put | back to summary |
|---|---|
| public final void put(Object key, Object value) throws CacheException Map the given value to the given key, replacing any existing mapping for this key this unpins the key in the cache should it be currently pinned | |
| put | back to summary |
|---|---|
| private void put(Object key, Object value, boolean eternal) throws CacheException | |
| putEternal | back to summary |
|---|---|
| public final void putEternal(Object key, Object value) throws CacheException Map the given value to the given key, replacing any existing mapping for this key, pinning the key in the cache | |
| readLock | back to summary |
|---|---|
| public final void readLock(Object key) Attempts to read lock the mapping for the given key. | |
| readUnlock | back to summary |
|---|---|
| public final void readUnlock(Object key) Attempts to read unlock the mapping for the given key. | |
| remove | back to summary |
|---|---|
| public final void remove(Object key) throws CacheException Remove the mapping for this key (if any exists). | |
| writeLock | back to summary |
|---|---|
| public final void writeLock(Object key) Attempts to write lock the mapping for the given key. | |
| writeUnlock | back to summary |
|---|---|
| public final void writeUnlock(Object key) Attempts to write unlock the mapping for the given key. | |