org.springframework.transaction.interceptor

Class RuleBasedTransactionAttribute

  • All Implemented Interfaces:
    java.io.Serializable, TransactionAttribute, TransactionDefinition


    public class RuleBasedTransactionAttribute
    extends DefaultTransactionAttribute
    implements java.io.Serializable
    TransactionAttribute implementation that works out whether a given exception should cause transaction rollback by applying a number of rollback rules, both positive and negative. If no rules are relevant to the exception, it behaves like DefaultTransactionAttribute (rolling back on runtime exceptions).

    TransactionAttributeEditor creates objects of this class.

    Since:
    09.04.2003
    Author:
    Rod Johnson, Juergen Hoeller
    See Also:
    TransactionAttributeEditor, Serialized Form