org.jboss.cache.interceptors
Class BaseTransactionalContextInterceptor

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

public abstract class BaseTransactionalContextInterceptor
extends Interceptor

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

Author:
Manik Surtani

Field Summary
protected  javax.transaction.TransactionManager txManager
           
protected  TransactionTable txTable
           
 
Fields inherited from class org.jboss.cache.interceptors.Interceptor
cache, configuration, last, log, next
 
Constructor Summary
BaseTransactionalContextInterceptor()
           
 
Method Summary
protected  void copyInvocationScopeOptionsToTxScope(InvocationContext ctx)
           
protected  boolean isRollingBack(javax.transaction.Transaction tx)
          Returns true if transaction is rolling back, false otherwise
 void setCache(CacheSPI cache)
           
protected  void setTransactionalContext(javax.transaction.Transaction tx, GlobalTransaction gtx, InvocationContext ctx)
           
 
Methods inherited from class org.jboss.cache.interceptors.Interceptor
dumpStatistics, getLast, getNext, getStatisticsEnabled, invoke, isActive, isOnePhaseCommitPrepareMehod, isPreparing, isValid, resetStatistics, 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 javax.transaction.TransactionManager txManager
Constructor Detail

BaseTransactionalContextInterceptor

public BaseTransactionalContextInterceptor()
Method Detail

setCache

public void setCache(CacheSPI cache)
Overrides:
setCache in class Interceptor

copyInvocationScopeOptionsToTxScope

protected void copyInvocationScopeOptionsToTxScope(InvocationContext ctx)

setTransactionalContext

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

isRollingBack

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