public abstract class TransactionalInterceptorBase extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
(package private) TransactionManager |
transactionManager |
| 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,
RunnableWithException afterEndTransaction) |
protected Object |
handleAsync(TransactionManager tm,
Transaction tx,
javax.interceptor.InvocationContext ic,
Object ret,
RunnableWithException afterEndTransaction) |
protected void |
handleException(javax.interceptor.InvocationContext ic,
Exception e,
Transaction tx) |
protected void |
handleExceptionNoThrow(javax.interceptor.InvocationContext ic,
Throwable 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 Object |
invokeInOurTx(javax.interceptor.InvocationContext ic,
TransactionManager tm,
RunnableWithException afterEndTransaction) |
protected void |
resetUserTransactionAvailability(boolean previousUserTransactionAvailability) |
protected boolean |
setUserTransactionAvailable(boolean available) |
@Inject TransactionManager transactionManager
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 handleAsync(TransactionManager tm, Transaction tx, javax.interceptor.InvocationContext ic, Object ret, 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 handleExceptionNoThrow(javax.interceptor.InvocationContext ic,
Throwable e,
Transaction tx)
throws IllegalStateException,
SystemException
IllegalStateExceptionSystemExceptionprotected void handleException(javax.interceptor.InvocationContext ic,
Exception e,
Transaction tx)
throws Exception
Exceptionprotected void endTransaction(TransactionManager tm, Transaction tx, RunnableWithException afterEndTransaction) throws Exception
Exceptionprotected boolean setUserTransactionAvailable(boolean available)
protected void resetUserTransactionAvailability(boolean previousUserTransactionAvailability)
Copyright © 2020 JBoss by Red Hat. All rights reserved.