org.springframework.jee.transaction
Class Ejb3TransactionAttribute

java.lang.Object
  extended by org.springframework.transaction.support.DefaultTransactionDefinition
      extended by org.springframework.transaction.interceptor.DefaultTransactionAttribute
          extended by org.springframework.jee.transaction.Ejb3TransactionAttribute
All Implemented Interfaces:
java.io.Serializable, org.springframework.transaction.interceptor.TransactionAttribute, org.springframework.transaction.TransactionDefinition

public class Ejb3TransactionAttribute
extends org.springframework.transaction.interceptor.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

Field Summary
(package private)  ApplicationExceptionManager applicationExceptionManager
           
 
Fields inherited from class org.springframework.transaction.support.DefaultTransactionDefinition
PREFIX_ISOLATION, PREFIX_PROPAGATION, PREFIX_TIMEOUT, READ_ONLY_MARKER
 
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
 
Constructor Summary
Ejb3TransactionAttribute(ApplicationExceptionManager appExManager)
           
 
Method Summary
 boolean rollbackOn(java.lang.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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.transaction.TransactionDefinition
getIsolationLevel, getName, getPropagationBehavior, getTimeout, isReadOnly
 

Field Detail

applicationExceptionManager

ApplicationExceptionManager applicationExceptionManager
Constructor Detail

Ejb3TransactionAttribute

public Ejb3TransactionAttribute(ApplicationExceptionManager appExManager)
Method Detail

rollbackOn

public boolean rollbackOn(java.lang.Throwable ex)
Rollbacks all errors and exceptions unless "application exceptions" with rollback attribute set to false are encountered.

Specified by:
rollbackOn in interface org.springframework.transaction.interceptor.TransactionAttribute
Overrides:
rollbackOn in class org.springframework.transaction.interceptor.DefaultTransactionAttribute


Copyright 2006 Interface21. All Rights Reserved.