org.hibernate.cache.jbc
Class TransactionalDataRegionAdapter
java.lang.Object
org.hibernate.cache.jbc.BasicRegionAdapter
org.hibernate.cache.jbc.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
Fields inherited from class org.hibernate.cache.jbc.BasicRegionAdapter |
currentView, internalFqn, invalidateState, invalidationMutex, ITEM, jbcCache, log, memberId, optimistic, regionFqn, regionName, regionRoot, regionRootMutex, replication, transactionManager |
Methods inherited from class org.hibernate.cache.jbc.BasicRegionAdapter |
activateLocalClusterNode, checkValid, contains, createRegionFqn, deactivateLocalNode, destroy, ensureRegionRootExists, escapeRegionName, getCacheInstance, getElementCountInMemory, getElementCountOnDisk, getMemberId, getName, getNonLockingDataVersionOption, getRegionFqn, getSizeInMemory, getTimeout, getTypeFirstRegionFqn, getTypeLastRegionFqn, handleEvictAllInvalidation, handleEvictAllModification, nextTimestamp, nodeInvalidated, nodeModified, resume, suspend, suspendAndGet, toMap, viewChanged |
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 © 2001-2010 Red Hat, Inc. All Rights Reserved.