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
- Author:
- paul.robinson@redhat.com 02/05/2013, Laird Nelson
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTransactionalInterceptorBase(boolean userTransactionAvailable) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ObjectdoIntercept(jakarta.transaction.TransactionManager tm, jakarta.transaction.Transaction tx, jakarta.interceptor.InvocationContext ic) protected voidhandleException(jakarta.interceptor.InvocationContext ic, Throwable t, jakarta.transaction.Transaction tx) The handleException considers the transaction to be marked for rollback only in case the thrown exception comes with this effect (seeTransactionHandler.handleExceptionNoThrow(Transactional, Throwable, Transaction)and consider theTransactional.dontRollbackOn().intercept(jakarta.interceptor.InvocationContext ic) protected ObjectinvokeInCallerTx(jakarta.interceptor.InvocationContext ic, jakarta.transaction.Transaction tx) protected ObjectinvokeInNoTx(jakarta.interceptor.InvocationContext ic) protected ObjectinvokeInOurTx(jakarta.interceptor.InvocationContext ic, jakarta.transaction.TransactionManager tm) protected ObjectinvokeInOurTx(jakarta.interceptor.InvocationContext ic, jakarta.transaction.TransactionManager tm, RunnableWithException afterEndTransaction) protected voidresetUserTransactionAvailability(boolean previousUserTransactionAvailability) protected booleansetUserTransactionAvailable(boolean available)
-
Constructor Details
-
TransactionalInterceptorBase
protected TransactionalInterceptorBase(boolean userTransactionAvailable)
-
-
Method Details
-
intercept
-
doIntercept
-
invokeInOurTx
-
invokeInOurTx
protected Object invokeInOurTx(jakarta.interceptor.InvocationContext ic, jakarta.transaction.TransactionManager tm, RunnableWithException afterEndTransaction) throws Exception - Throws:
Exception
-
invokeInCallerTx
-
invokeInNoTx
-
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 (seeTransactionHandler.handleExceptionNoThrow(Transactional, Throwable, Transaction)and consider theTransactional.dontRollbackOn(). If so then this method rethrows theThrowablepassed as the parameter 't'.- Throws:
Exception
-
setUserTransactionAvailable
protected boolean setUserTransactionAvailable(boolean available) -
resetUserTransactionAvailability
protected void resetUserTransactionAvailability(boolean previousUserTransactionAvailability)
-