org.jboss.cache.interceptors
Class BaseTransactionalContextInterceptor

java.lang.Object
  extended by org.jboss.cache.interceptors.Interceptor
      extended by org.jboss.cache.interceptors.MethodDispacherInterceptor
          extended by org.jboss.cache.interceptors.BaseTransactionalContextInterceptor
All Implemented Interfaces:
InterceptorMBean
Direct Known Subclasses:
InvocationContextInterceptor, NotificationInterceptor, TxInterceptor

public abstract class BaseTransactionalContextInterceptor
extends MethodDispacherInterceptor

Class providing some base functionality around manipulating transactions and global transactions withing invocation contexts.

Author:
Manik Surtani

Field Summary
protected  TransactionManager txManager
           
protected  TransactionTable txTable
           
 
Fields inherited from class org.jboss.cache.interceptors.Interceptor
cache, configuration, last, log, next, trace
 
Constructor Summary
BaseTransactionalContextInterceptor()
           
 
Method Summary
protected  void copyInvocationScopeOptionsToTxScope(InvocationContext ctx)
           
protected  boolean isRollingBack(Transaction tx)
          Returns true if transaction is rolling back, false otherwise
protected  void setTransactionalContext(Transaction tx, GlobalTransaction gtx, InvocationContext ctx)
           
 
Methods inherited from class org.jboss.cache.interceptors.MethodDispacherInterceptor
handleAddChildMethod, handleBlockChannelMethod, handleCommitMethod, handleDataGravitationCleanupMethod, handleEvictMethod, handleEvictVersionedNodeMethod, handleExistsMethod, handleGetDataMapMethod, handleGetChildrenNamesMethod, handleGetKeysMethod, handleGetKeyValueMethod, handleGetNodeMethod, handleLockMethod, handleMoveMethod, handleOptimisticPrepareMethod, handlePrepareMethod, handlePrintMethod, handlePutDataEraseMethod, handlePutDataEraseVersionedMethod, handlePutDataMethod, handlePutDataVersionedMethod, handlePutForExternalReadMethod, handlePutForExternalReadVersionedMethod, handlePutKeyValueMethod, handlePutKeyValueVersionedMethod, handleReleaseAllLocksMethod, handleRemoveDataMethod, handleRemoveDataVersionedMethod, handleRemoveKeyMethod, handleRemoveKeyVersionedMethod, handleRemoveNodeMethod, handleRemoveNodeVersionedMethod, handleRollbackMethod, handleUnblockChannelMethod, invoke, skipMethodCall
 
Methods inherited from class org.jboss.cache.interceptors.Interceptor
assertTransactionValid, dumpStatistics, getLast, getNext, getStatisticsEnabled, initLogger, isActive, isPreparing, isValid, nextInterceptor, peekNode, resetStatistics, setCache, setLast, setNext, setStatisticsEnabled, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

txTable

protected TransactionTable txTable

txManager

protected TransactionManager txManager
Constructor Detail

BaseTransactionalContextInterceptor

public BaseTransactionalContextInterceptor()
Method Detail

copyInvocationScopeOptionsToTxScope

protected void copyInvocationScopeOptionsToTxScope(InvocationContext ctx)

setTransactionalContext

protected void setTransactionalContext(Transaction tx,
                                       GlobalTransaction gtx,
                                       InvocationContext ctx)

isRollingBack

protected boolean isRollingBack(Transaction tx)
Returns true if transaction is rolling back, false otherwise



Copyright © 2008 JBoss, a division of Red Hat. All Rights Reserved.