org.springframework.jee.transaction
Class Ejb3TransactionAttribute
java.lang.Object
org.springframework.transaction.support.DefaultTransactionDefinition
org.springframework.transaction.interceptor.DefaultTransactionAttribute
org.springframework.jee.transaction.Ejb3TransactionAttribute
- All Implemented Interfaces:
- Serializable, TransactionAttribute, TransactionDefinition
public class Ejb3TransactionAttribute
- extends DefaultTransactionAttribute
EJB3 Transaction Attribute which will rollback on all exceptions unless the
"Application Exceptions" with rollback attribute set to false.
- Author:
- Costin Leau
- See Also:
- Serialized Form
| Fields inherited from interface org.springframework.transaction.TransactionDefinition |
ISOLATION_DEFAULT, ISOLATION_READ_COMMITTED, ISOLATION_READ_UNCOMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, PROPAGATION_MANDATORY, PROPAGATION_NESTED, PROPAGATION_NEVER, PROPAGATION_NOT_SUPPORTED, PROPAGATION_REQUIRED, PROPAGATION_REQUIRES_NEW, PROPAGATION_SUPPORTS, TIMEOUT_DEFAULT |
|
Method Summary |
boolean |
rollbackOn(Throwable ex)
Rollbacks all errors and exceptions unless "application exceptions" with
rollback attribute set to false are encountered. |
| Methods inherited from class org.springframework.transaction.support.DefaultTransactionDefinition |
equals, getDefinitionDescription, getIsolationLevel, getName, getPropagationBehavior, getTimeout, hashCode, isReadOnly, setIsolationLevel, setIsolationLevelName, setName, setPropagationBehavior, setPropagationBehaviorName, setReadOnly, setTimeout, toString |
Ejb3TransactionAttribute
public Ejb3TransactionAttribute(ApplicationExceptionManager appExManager)
rollbackOn
public boolean rollbackOn(Throwable ex)
- Rollbacks all errors and exceptions unless "application exceptions" with
rollback attribute set to false are encountered.
- Specified by:
rollbackOn in interface TransactionAttribute- Overrides:
rollbackOn in class DefaultTransactionAttribute
Copyright © 2007 Interface21. All Rights Reserved.