| java.lang.Object org.ow2.easybeans.transaction.interceptors.AbsTransactionInterceptor
All known Subclasses: org.ow2.easybeans.transaction.interceptors.CMTRequiredTransactionInterceptor, org.ow2.easybeans.transaction.interceptors.CMTNotSupportedTransactionInterceptor, org.ow2.easybeans.transaction.interceptors.BMTTransactionInterceptor, org.ow2.easybeans.transaction.interceptors.CMTNeverTransactionInterceptor, org.ow2.easybeans.transaction.interceptors.CMTMandatoryTransactionInterceptor, org.ow2.easybeans.transaction.interceptors.BMTStatelessTransactionInterceptor, org.ow2.easybeans.transaction.interceptors.CMTSupportsTransactionInterceptor, org.ow2.easybeans.transaction.interceptors.CMTRequiresNewTransactionInterceptor, org.ow2.easybeans.transaction.interceptors.ListenerSessionSynchronizationInterceptor, org.ow2.easybeans.transaction.interceptors.BMTStatefulTransactionInterceptor,
AbsTransactionInterceptor | abstract public class AbsTransactionInterceptor implements EasyBeansInterceptor(Code) | | Defines an abstract interceptor for transaction with common code used by all
transaction interceptors.
author: Florent Benoit |
AbsTransactionInterceptor | public AbsTransactionInterceptor()(Code) | | Constructor.
Acquire the transaction manager.
|
commit | protected void commit()(Code) | | Commit the current transaction.
|
discard | protected void discard(EasyBeansInvocationContext invocationContext) throws PoolException(Code) | | Remove from the factory's pool the bean found in the current invocation
context.
Parameters: invocationContext - the context of the current invocation throws: PoolException - if removal is failing |
getApplicationException | protected ApplicationException getApplicationException(EasyBeansInvocationContext invocationContext, Exception e)(Code) | | Gets the application exception (if any) for the given invocation context
and the given exception.
Note that a checked Exception is by default an application exception.
Parameters: invocationContext - context that provides access to the Methodobject. Parameters: e - the exception to check the application exception object, else null. |
getTransactionManager | public TransactionManager getTransactionManager()(Code) | | Gets the transaction manager.
TM. |
handleBeanManagedException | protected void handleBeanManagedException(EasyBeansInvocationContext invocationContext, Exception e) throws Exception(Code) | | Handle an exception for bean managed transaction.
See Chapter 14.3.1.
Parameters: invocationContext - the context of the current invocation Parameters: e - the exception to handle throws: Exception - when handling the exception. |
handleContextClientTransaction | protected void handleContextClientTransaction(EasyBeansInvocationContext invocationContext, Exception e) throws Exception(Code) | | Handle an exception and the transaction is the client transaction.
See Chapter 14.3.1.
Parameters: invocationContext - the context of the current invocation Parameters: e - the exception to handle throws: Exception - when handling the exception. |
handleContextContainerTransaction | protected void handleContextContainerTransaction(EasyBeansInvocationContext invocationContext, Exception e) throws Exception(Code) | | Handle an exception and the transaction is the container transaction.
Bean method runs in the context of a transaction that the container
started immediately before dispatching the business method.
See Chapter 14.3.1.
Parameters: invocationContext - the context of the current invocation Parameters: e - the exception to handle throws: Exception - when handling the exception. |
handleUnspecifiedTransactionContext | protected void handleUnspecifiedTransactionContext(EasyBeansInvocationContext invocationContext, Exception e) throws Exception(Code) | | Handle an exception that are in an unspecified transaction context.
See Chapter 14.3.1.
Parameters: invocationContext - the context of the current invocation Parameters: e - the exception to handle throws: Exception - when handling the exception. |
intercept | abstract public Object intercept(EasyBeansInvocationContext invocationContext) throws Exception(Code) | | Defines the code used by the transaction interceptor on a given method.
Parameters: invocationContext - context with useful attributes on the currentinvocation result of the next invocation (to chain interceptors) throws: Exception - if interceptor fails |
isMarkedRollbackOnly | protected boolean isMarkedRollbackOnly()(Code) | | Test if current transaction is with status STATUS_MARKED_ROLLBACK.
true if status == STATUS_MARKED_ROLLBACK |
markTransactionRollback | protected void markTransactionRollback()(Code) | | Marks the transaction for rollback.
|
rollback | protected void rollback()(Code) | | Rollback the current transaction.
|
|
|