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 void |
endTransaction(Transaction tx)
The
endTransaction method ends a transaction and
translates any exceptions into
TransactionRolledBack[Local]Exception or SystemException. |
protected Object |
invokeInCallerTx(org.jboss.invocation.InterceptorContext invocation,
Transaction tx,
EJBComponent component) |
protected Object |
invokeInImportedTx(org.jboss.invocation.InterceptorContext invocation,
EJBComponent component) |
protected Object |
invokeInNoTx(org.jboss.invocation.InterceptorContext invocation,
EJBComponent component) |
protected Object |
invokeInOurTx(org.jboss.invocation.InterceptorContext invocation,
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) |
protected void |
ourTxRolledBack() |
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,
Throwable t)
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(Transaction tx)
endTransaction method ends a transaction and
translates any exceptions into
TransactionRolledBack[Local]Exception or SystemException.tx - a Transaction valuepublic Object processInvocation(org.jboss.invocation.InterceptorContext invocation) throws Exception
processInvocation in interface org.jboss.invocation.InterceptorExceptionprotected Object invokeInImportedTx(org.jboss.invocation.InterceptorContext invocation, EJBComponent component) throws Exception
Exceptionprotected 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, EJBComponent component) throws Exception
Exceptionprotected void ourTxRolledBack()
protected 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, Throwable t)
setRollbackOnly method calls setRollbackOnly()
on the invocation's transaction and logs any exceptions than may
occur.tx - the transactiont - the exception to add problems to (may be null)protected Object supports(org.jboss.invocation.InterceptorContext invocation, EJBComponent component) throws Exception
ExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.