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.
| Modifier and Type | Field and Description |
|---|---|
| private final TransactionAttribute |
| Access | Constructor and Description |
|---|---|
| public | DelegatingTransactionAttribute(TransactionAttribute
the target TransactionAttribute to delegate to targetAttribute)Create a DelegatingTransactionAttribute for the given target attribute. |
| Modifier and Type | Method and Description |
|---|---|
| public Collection | getLabels()
Implements org. |
| public String | getQualifier()
Implements org. |
| public boolean | rollbackOn(Throwable
the exception to evaluate ex)Implements org. |
| targetAttribute | back to summary |
|---|---|
| private final TransactionAttribute targetAttribute | |
| DelegatingTransactionAttribute | back to summary |
|---|---|
| public DelegatingTransactionAttribute(TransactionAttribute targetAttribute) Create a DelegatingTransactionAttribute for the given target attribute.
| |
| getLabels | back to summary |
|---|---|
| public Collection Implements org. Doc from org. Return labels associated with this transaction attribute. This may be used for applying specific transactional behavior or follow a purely descriptive nature.
| |
| getQualifier | back to summary |
|---|---|
| public String getQualifier() Implements org. Doc from org. Return a qualifier value associated with this transaction attribute. This may be used for choosing a corresponding transaction manager to process this specific transaction. | |
| rollbackOn | back to summary |
|---|---|
| public boolean rollbackOn(Throwable ex) Implements org. Doc from org. Should we roll back on the given exception? | |