public abstract class

DelegatingTransactionAttribute

extends DelegatingTransactionDefinition
implements Serializable TransactionAttribute
java.lang.Object
   ↳ org.springframework.transaction.support.DelegatingTransactionDefinition
     ↳ org.springframework.transaction.interceptor.DelegatingTransactionAttribute

Class Overview

TransactionAttribute implementation that delegates all calls to a given target TransactionAttribute instance. Abstract because it is meant to be subclassed, with subclasses overriding specific methods that are not supposed to simply delegate to the target instance.

Summary

[Expand]
Inherited Constants
From interface org.springframework.transaction.TransactionDefinition
Public Constructors
DelegatingTransactionAttribute(TransactionAttribute targetAttribute)
Create a DelegatingTransactionAttribute for the given target attribute.
Public Methods
String getQualifier()
Return a qualifier value associated with this transaction attribute.
boolean rollbackOn(Throwable ex)
Should we roll back on the given exception?
[Expand]
Inherited Methods
From class org.springframework.transaction.support.DelegatingTransactionDefinition
From class java.lang.Object
From interface org.springframework.transaction.TransactionDefinition
From interface org.springframework.transaction.interceptor.TransactionAttribute

Public Constructors

public DelegatingTransactionAttribute (TransactionAttribute targetAttribute)

Create a DelegatingTransactionAttribute for the given target attribute.

Parameters
targetAttribute the target TransactionAttribute to delegate to

Public Methods

public 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 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