Class TransactionalInterceptorBase

java.lang.Object
com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorBase
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TransactionalInterceptorMandatory, TransactionalInterceptorNever, TransactionalInterceptorNotSupported, TransactionalInterceptorRequired, TransactionalInterceptorRequiresNew, TransactionalInterceptorSupports

public abstract class TransactionalInterceptorBase extends Object implements Serializable
Author:
paul.robinson@redhat.com 02/05/2013, Laird Nelson
See Also:
  • Constructor Details

    • TransactionalInterceptorBase

      protected TransactionalInterceptorBase(boolean userTransactionAvailable)
  • Method Details

    • intercept

      public Object intercept(jakarta.interceptor.InvocationContext ic) throws Exception
      Throws:
      Exception
    • doIntercept

      protected abstract Object doIntercept(jakarta.transaction.TransactionManager tm, jakarta.transaction.Transaction tx, jakarta.interceptor.InvocationContext ic) throws Exception
      Throws:
      Exception
    • invokeInOurTx

      protected Object invokeInOurTx(jakarta.interceptor.InvocationContext ic, jakarta.transaction.TransactionManager tm) throws Exception
      Throws:
      Exception
    • invokeInOurTx

      protected Object invokeInOurTx(jakarta.interceptor.InvocationContext ic, jakarta.transaction.TransactionManager tm, RunnableWithException afterEndTransaction) throws Exception
      Throws:
      Exception
    • invokeInCallerTx

      protected Object invokeInCallerTx(jakarta.interceptor.InvocationContext ic, jakarta.transaction.Transaction tx) throws Exception
      Throws:
      Exception
    • invokeInNoTx

      protected Object invokeInNoTx(jakarta.interceptor.InvocationContext ic) throws Exception
      Throws:
      Exception
    • handleException

      protected void handleException(jakarta.interceptor.InvocationContext ic, Throwable t, jakarta.transaction.Transaction tx) throws Exception
      The handleException considers the transaction to be marked for rollback only in case the thrown exception comes with this effect (see TransactionHandler.handleExceptionNoThrow(Transactional, Throwable, Transaction) and consider the Transactional.dontRollbackOn(). If so then this method rethrows the Throwable passed as the parameter 't'.
      Throws:
      Exception
    • setUserTransactionAvailable

      protected boolean setUserTransactionAvailable(boolean available)
    • resetUserTransactionAvailability

      protected void resetUserTransactionAvailability(boolean previousUserTransactionAvailability)