org.hibernate.cache.jbc2
Class TransactionalDataRegionAdapter
java.lang.Object
org.hibernate.cache.jbc2.BasicRegionAdapter
org.hibernate.cache.jbc2.TransactionalDataRegionAdapter
- All Implemented Interfaces:
- Region, TransactionalDataRegion
- Direct Known Subclasses:
- ClusteredConcurrentTimestampsRegionImpl, CollectionRegionImpl, EntityRegionImpl, QueryResultsRegionImpl, TimestampsRegionImpl
public abstract class TransactionalDataRegionAdapter
- extends BasicRegionAdapter
- implements TransactionalDataRegion
- Author:
- Steve Ebersole
Methods inherited from class org.hibernate.cache.jbc2.BasicRegionAdapter |
activateLocalClusterNode, createRegionFqn, deactivateLocalNode, destroy, ensureRegionRootExists, escapeRegionName, getCacheInstance, getElementCountInMemory, getElementCountOnDisk, getName, getNonLockingDataVersionOption, getRegionFqn, getSizeInMemory, getTimeout, getTypeFirstRegionFqn, getTypeLastRegionFqn, nextTimestamp, resume, suspend, suspendAndGet, toMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
metadata
protected final CacheDataDescription metadata
TransactionalDataRegionAdapter
public TransactionalDataRegionAdapter(org.jboss.cache.Cache jbcCache,
String regionName,
String regionPrefix,
CacheDataDescription metadata)
isTransactionAware
public boolean isTransactionAware()
- Here, for JBossCache, we consider the cache to be transaction aware if
the underlying cache instance has a reference to the transaction manager.
- Specified by:
isTransactionAware
in interface TransactionalDataRegion
- Returns:
- True if transaction aware; false otherwise.
getCacheDataDescription
public CacheDataDescription getCacheDataDescription()
-
- Specified by:
getCacheDataDescription
in interface TransactionalDataRegion
Copyright © null-null Red Hat Middleware, LLC. All Rights Reserved