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(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 |
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) |
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
SystemException
protected void handleEndTransactionException(Exception e)
protected void handleInCallerTx(org.jboss.invocation.InterceptorContext invocation, Throwable t, Transaction tx, EJBComponent component) throws Exception
Exception
public void handleExceptionInOurTx(org.jboss.invocation.InterceptorContext invocation, Throwable t, Transaction tx, EJBComponent component) throws Exception
Exception
public Object processInvocation(org.jboss.invocation.InterceptorContext invocation) throws Exception
processInvocation
in interface org.jboss.invocation.Interceptor
Exception
protected Object invokeInCallerTx(org.jboss.invocation.InterceptorContext invocation, Transaction tx, EJBComponent component) throws Exception
Exception
protected Object invokeInNoTx(org.jboss.invocation.InterceptorContext invocation) throws Exception
Exception
protected Object invokeInOurTx(org.jboss.invocation.InterceptorContext invocation, TransactionManager tm, EJBComponent component) throws Exception
Exception
protected Object mandatory(org.jboss.invocation.InterceptorContext invocation, EJBComponent component) throws Exception
Exception
protected Object never(org.jboss.invocation.InterceptorContext invocation, EJBComponent component) throws Exception
Exception
protected Object notSupported(org.jboss.invocation.InterceptorContext invocation, EJBComponent component) throws Exception
Exception
protected Object required(org.jboss.invocation.InterceptorContext invocation, EJBComponent component, int timeout) throws Exception
Exception
protected Object requiresNew(org.jboss.invocation.InterceptorContext invocation, EJBComponent component, int timeout) throws Exception
Exception
protected 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
Exception
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.