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 |
endTransaction(TransactionManager tm,
Transaction tx) |
protected void |
handleException(javax.interceptor.InvocationContext ic,
Exception e,
Transaction tx) |
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 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 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
Exceptionprotected void endTransaction(TransactionManager tm, Transaction tx) throws Exception
Exceptionprotected boolean setUserTransactionAvailable(boolean available)
protected void resetUserTransactionAvailability(boolean previousUserTransactionAvailability)
Copyright © 2019 JBoss by Red Hat. All rights reserved.