public abstract class TransactionalInterceptorBase extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
TransactionalInterceptorBase(boolean userTransactionAvailable) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
doIntercept(TransactionManager tm,
Transaction tx,
javax.interceptor.InvocationContext ic) |
protected void |
handleException(javax.interceptor.InvocationContext ic,
Exception e,
Transaction tx)
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(). |
Object |
intercept(javax.interceptor.InvocationContext ic) |
protected Object |
invokeInCallerTx(javax.interceptor.InvocationContext ic,
Transaction tx) |
protected Object |
invokeInNoTx(javax.interceptor.InvocationContext ic) |
protected Object |
invokeInOurTx(javax.interceptor.InvocationContext ic,
TransactionManager tm) |
protected Object |
invokeInOurTx(javax.interceptor.InvocationContext ic,
TransactionManager tm,
RunnableWithException afterEndTransaction) |
protected void |
resetUserTransactionAvailability(boolean previousUserTransactionAvailability) |
protected boolean |
setUserTransactionAvailable(boolean available) |
protected TransactionalInterceptorBase(boolean userTransactionAvailable)
public Object intercept(javax.interceptor.InvocationContext ic) throws Exception
Exceptionprotected abstract Object doIntercept(TransactionManager tm, Transaction tx, javax.interceptor.InvocationContext ic) throws Exception
Exceptionprotected Object invokeInOurTx(javax.interceptor.InvocationContext ic, TransactionManager tm) throws Exception
Exceptionprotected Object invokeInOurTx(javax.interceptor.InvocationContext ic, TransactionManager tm, RunnableWithException afterEndTransaction) throws Exception
Exceptionprotected Object invokeInCallerTx(javax.interceptor.InvocationContext ic, Transaction tx) throws Exception
Exceptionprotected Object invokeInNoTx(javax.interceptor.InvocationContext ic) throws Exception
Exceptionprotected void handleException(javax.interceptor.InvocationContext ic,
Exception e,
Transaction tx)
throws Exception
TransactionHandler.handleExceptionNoThrow(Transactional, Throwable, Transaction)
and consider the Transactional.dontRollbackOn().
If so then this method rethrows the Exception passed as the parameter 'e'.Exceptionprotected boolean setUserTransactionAvailable(boolean available)
protected void resetUserTransactionAvailability(boolean previousUserTransactionAvailability)
Copyright © 2020 JBoss by Red Hat. All rights reserved.