public interface

TransactionAttribute

implements TransactionDefinition
org.springframework.transaction.interceptor.TransactionAttribute
Known Indirect Subclasses

Class Overview

This interface adds a rollbackOn specification to TransactionDefinition. As custom rollbackOn is only possible with AOP, this class resides in the AOP transaction package.

Summary

[Expand]
Inherited Constants
From interface org.springframework.transaction.TransactionDefinition
Public Methods
abstract String getQualifier()
Return a qualifier value associated with this transaction attribute.
abstract boolean rollbackOn(Throwable ex)
Should we roll back on the given exception?
[Expand]
Inherited Methods
From interface org.springframework.transaction.TransactionDefinition

Public Methods

public abstract String getQualifier ()

Return a qualifier value associated with this transaction attribute.

This may be used for choosing a corresponding transaction manager to process this specific transaction.

public abstract boolean rollbackOn (Throwable ex)

Should we roll back on the given exception?

Parameters
ex the exception to evaluate
Returns
  • whether to perform a rollback or not