org.hibernate.cache.jbc2
Class TransactionalDataRegionAdapter

java.lang.Object
  extended by org.hibernate.cache.jbc2.BasicRegionAdapter
      extended by 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

Field Summary
protected  CacheDataDescription metadata
           
 
Fields inherited from class org.hibernate.cache.jbc2.BasicRegionAdapter
ITEM, jbcCache, log, optimistic, regionFqn, regionName, regionRoot, regionRootMutex, transactionManager
 
Constructor Summary
TransactionalDataRegionAdapter(org.jboss.cache.Cache jbcCache, String regionName, String regionPrefix, CacheDataDescription metadata)
           
 
Method Summary
 CacheDataDescription getCacheDataDescription()
          
 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.
 
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
 
Methods inherited from interface org.hibernate.cache.Region
destroy, getElementCountInMemory, getElementCountOnDisk, getName, getSizeInMemory, getTimeout, nextTimestamp, toMap
 

Field Detail

metadata

protected final CacheDataDescription metadata
Constructor Detail

TransactionalDataRegionAdapter

public TransactionalDataRegionAdapter(org.jboss.cache.Cache jbcCache,
                                      String regionName,
                                      String regionPrefix,
                                      CacheDataDescription metadata)
Method Detail

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