org.hibernate.cache.jbc
Class TransactionalDataRegionAdapter

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

Field Summary
protected  CacheDataDescription metadata
           
 
Fields inherited from class org.hibernate.cache.jbc.BasicRegionAdapter
currentView, internalFqn, invalidateState, invalidationMutex, ITEM, jbcCache, log, memberId, optimistic, regionFqn, regionName, regionRoot, regionRootMutex, replication, 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.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
 
Methods inherited from interface org.hibernate.cache.Region
contains, 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 © 2001-2010 Red Hat, Inc. All Rights Reserved.