public class CMTTxInterceptor extends Object implements org.jboss.invocation.Interceptor
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.invocation.InterceptorFactory |
FACTORY |
| Constructor and Description |
|---|
CMTTxInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected Transaction |
beginTransaction(TransactionManager tm) |
protected void |
endTransaction(TransactionManager tm,
Transaction tx)
The
endTransaction method ends a transaction and
translates any exceptions into
TransactionRolledBack[Local]Exception or SystemException. |
protected int |
getCurrentTransactionTimeout(EJBComponent component) |
protected void |
handleEndTransactionException(Exception e) |
void |
handleExceptionInNoTx(org.jboss.invocation.InterceptorContext invocation,
Throwable t,
EJBComponent component) |
void |
handleExceptionInOurTx(org.jboss.invocation.InterceptorContext invocation,
Throwable t,
Transaction tx,
EJBComponent component) |
protected void |
handleInCallerTx(org.jboss.invocation.InterceptorContext invocation,
Throwable t,
Transaction tx,
EJBComponent component) |
protected Object |
invokeInCallerTx(org.jboss.invocation.InterceptorContext invocation,
Transaction tx,
EJBComponent component) |
protected Object |
invokeInNoTx(org.jboss.invocation.InterceptorContext invocation,
EJBComponent component) |
protected Object |
invokeInOurTx(org.jboss.invocation.InterceptorContext invocation,
TransactionManager tm,
EJBComponent component) |
protected Object |
mandatory(org.jboss.invocation.InterceptorContext invocation,
EJBComponent component) |
protected Object |
never(org.jboss.invocation.InterceptorContext invocation,
EJBComponent component) |
protected Object |
notSupported(org.jboss.invocation.InterceptorContext invocation,
EJBComponent component) |
Object |
processInvocation(org.jboss.invocation.InterceptorContext invocation) |
protected Object |
required(org.jboss.invocation.InterceptorContext invocation,
EJBComponent component,
int timeout) |
protected Object |
requiresNew(org.jboss.invocation.InterceptorContext invocation,
EJBComponent component,
int timeout) |
protected void |
setRollbackOnly(Transaction tx)
The
setRollbackOnly method calls setRollbackOnly()
on the invocation's transaction and logs any exceptions than may
occur. |
protected Object |
supports(org.jboss.invocation.InterceptorContext invocation,
EJBComponent component) |
protected void endTransaction(TransactionManager tm, Transaction tx)
endTransaction method ends a transaction and
translates any exceptions into
TransactionRolledBack[Local]Exception or SystemException.tm - a TransactionManager valuetx - a Transaction valueprotected int getCurrentTransactionTimeout(EJBComponent component) throws SystemException
SystemExceptionprotected void handleEndTransactionException(Exception e)
protected void handleInCallerTx(org.jboss.invocation.InterceptorContext invocation,
Throwable t,
Transaction tx,
EJBComponent component)
throws Exception
Exceptionpublic void handleExceptionInOurTx(org.jboss.invocation.InterceptorContext invocation,
Throwable t,
Transaction tx,
EJBComponent component)
throws Exception
Exceptionpublic void handleExceptionInNoTx(org.jboss.invocation.InterceptorContext invocation,
Throwable t,
EJBComponent component)
throws Exception
Exceptionpublic Object processInvocation(org.jboss.invocation.InterceptorContext invocation) throws Exception
processInvocation in interface org.jboss.invocation.InterceptorExceptionprotected Object invokeInCallerTx(org.jboss.invocation.InterceptorContext invocation, Transaction tx, EJBComponent component) throws Exception
Exceptionprotected Object invokeInNoTx(org.jboss.invocation.InterceptorContext invocation, EJBComponent component) throws Exception
Exceptionprotected Object invokeInOurTx(org.jboss.invocation.InterceptorContext invocation, TransactionManager tm, EJBComponent component) throws Exception
Exceptionprotected Transaction beginTransaction(TransactionManager tm) throws NotSupportedException, SystemException
NotSupportedExceptionSystemExceptionprotected Object mandatory(org.jboss.invocation.InterceptorContext invocation, EJBComponent component) throws Exception
Exceptionprotected Object never(org.jboss.invocation.InterceptorContext invocation, EJBComponent component) throws Exception
Exceptionprotected Object notSupported(org.jboss.invocation.InterceptorContext invocation, EJBComponent component) throws Exception
Exceptionprotected Object required(org.jboss.invocation.InterceptorContext invocation, EJBComponent component, int timeout) throws Exception
Exceptionprotected Object requiresNew(org.jboss.invocation.InterceptorContext invocation, EJBComponent component, int timeout) throws Exception
Exceptionprotected void setRollbackOnly(Transaction tx)
setRollbackOnly method calls setRollbackOnly()
on the invocation's transaction and logs any exceptions than may
occur.tx - the transactionprotected Object supports(org.jboss.invocation.InterceptorContext invocation, EJBComponent component) throws Exception
ExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.