org.jboss.cache.interceptors
Class BaseTransactionalContextInterceptor

java.lang.Object
  extended by org.jboss.cache.commands.AbstractVisitor
      extended by org.jboss.cache.interceptors.base.CommandInterceptor
          extended by org.jboss.cache.interceptors.BaseTransactionalContextInterceptor
All Implemented Interfaces:
Visitor
Direct Known Subclasses:
InvocationContextInterceptor, NotificationInterceptor, TxInterceptor

public abstract class BaseTransactionalContextInterceptor
extends CommandInterceptor

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.base.CommandInterceptor
configuration, log, 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, TransactionContext tCtx, InvocationContext ctx)
           
 
Methods inherited from class org.jboss.cache.interceptors.base.CommandInterceptor
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
 
Methods inherited from class org.jboss.cache.commands.AbstractVisitor
visitClearDataCommand, visitCollection, visitCommitCommand, visitCreateNodeCommand, visitEvictFqnCommand, visitExistsNodeCommand, visitGetDataMapCommand, visitGetChildrenNamesCommand, visitGetKeysCommand, visitGetKeyValueCommand, visitGetNodeCommand, visitGravitateDataCommand, visitInvalidateCommand, visitMoveCommand, visitOptimisticPrepareCommand, visitPrepareCommand, visitPutDataMapCommand, visitPutForExternalReadCommand, visitPutKeyValueCommand, visitRemoveKeyCommand, visitRemoveNodeCommand, visitRollbackCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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,
                                       TransactionContext tCtx,
                                       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.