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
- See Also:
-
Field Summary
Modifier and TypeFieldDescription(package private) jakarta.transaction.TransactionManager
-
Constructor Summary
ModifierConstructorDescriptionprotected
TransactionalInterceptorBase
(boolean userTransactionAvailable) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Object
doIntercept
(jakarta.transaction.TransactionManager tm, jakarta.transaction.Transaction tx, jakarta.interceptor.InvocationContext ic) protected void
endTransaction
(jakarta.transaction.TransactionManager tm, jakarta.transaction.Transaction tx, RunnableWithException afterEndTransaction) protected Object
handleAsync
(jakarta.transaction.TransactionManager tm, jakarta.transaction.Transaction tx, jakarta.interceptor.InvocationContext ic, Object ret, RunnableWithException afterEndTransaction) protected void
handleException
(jakarta.interceptor.InvocationContext ic, Throwable t, jakarta.transaction.Transaction tx) protected void
handleExceptionNoThrow
(jakarta.interceptor.InvocationContext ic, Throwable t, jakarta.transaction.Transaction tx) intercept
(jakarta.interceptor.InvocationContext ic) protected Object
invokeInCallerTx
(jakarta.interceptor.InvocationContext ic, jakarta.transaction.Transaction tx) protected Object
invokeInNoTx
(jakarta.interceptor.InvocationContext ic) protected Object
invokeInOurTx
(jakarta.interceptor.InvocationContext ic, jakarta.transaction.TransactionManager tm) protected Object
invokeInOurTx
(jakarta.interceptor.InvocationContext ic, jakarta.transaction.TransactionManager tm, RunnableWithException afterEndTransaction) protected void
resetUserTransactionAvailability
(boolean previousUserTransactionAvailability) protected boolean
setUserTransactionAvailable
(boolean available)
-
Field Details
-
transactionManager
@Inject jakarta.transaction.TransactionManager transactionManager
-
-
Constructor Details
-
TransactionalInterceptorBase
protected TransactionalInterceptorBase(boolean userTransactionAvailable)
-
-
Method Details
-
intercept
- 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
- 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)
-