Class TransactionalInterceptorBase

java.lang.Object
io.quarkus.narayana.jta.runtime.interceptor.TransactionalInterceptorBase
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TransactionalInterceptorMandatory, TransactionalInterceptorNever, TransactionalInterceptorNotSupported, TransactionalInterceptorRequired, TransactionalInterceptorRequiresNew, TransactionalInterceptorSupports

public abstract class TransactionalInterceptorBase extends Object implements Serializable
See Also:
  • Field Details

    • transactionManager

      @Inject jakarta.transaction.TransactionManager transactionManager
  • 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
    • handleAsync

      protected Object handleAsync(jakarta.transaction.TransactionManager tm, jakarta.transaction.Transaction tx, jakarta.interceptor.InvocationContext ic, Object ret, 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
    • handleExceptionNoThrow

      protected void handleExceptionNoThrow(jakarta.interceptor.InvocationContext ic, Throwable t, jakarta.transaction.Transaction tx) throws IllegalStateException, jakarta.transaction.SystemException
      Throws:
      IllegalStateException
      jakarta.transaction.SystemException
    • handleException

      protected void handleException(jakarta.interceptor.InvocationContext ic, Throwable t, jakarta.transaction.Transaction tx) throws Exception
      Throws:
      Exception
    • endTransaction

      protected void endTransaction(jakarta.transaction.TransactionManager tm, jakarta.transaction.Transaction tx, RunnableWithException afterEndTransaction) throws Exception
      Throws:
      Exception
    • setUserTransactionAvailable

      protected boolean setUserTransactionAvailable(boolean available)
    • resetUserTransactionAvailability

      protected void resetUserTransactionAvailability(boolean previousUserTransactionAvailability)