| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Collection | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | DefaultTransactionAttribute(int
one of the propagation constants in the
TransactionDefinition interface propagationBehavior)Create a new DefaultTransactionAttribute with the given propagation behavior. |
| Modifier and Type | Method and Description |
|---|---|
| protected final StringBuilder | |
| public String | |
| public Collection | getLabels()
Implements org. |
| public String | getQualifier()
Implements org. |
| public String | getTimeoutString()
Return the timeout to apply, if any, as a String value that resolves to a number of seconds. |
| public void | resolveAttributeStrings(StringValueResolver
the embedded value resolver to apply, if any resolver)Resolve attribute values that are defined as resolvable Strings:
|
| public boolean | rollbackOn(Throwable
the exception to evaluate ex)Implements org. RuntimeException), assuming an unexpected outcome outside any
business rules.
|
| public void | setDescriptor(String descriptor)
Set a descriptor for this transaction attribute, e.g. indicating where the attribute is applying. |
| public void | |
| public void | |
| public void | setTimeoutString(String timeoutString)
Set the timeout to apply, if any, as a String value that resolves to a number of seconds. |
| descriptor | back to summary |
|---|---|
| private String descriptor
| |
| labels | back to summary |
|---|---|
| private Collection<String> labels | |
| qualifier | back to summary |
|---|---|
| private String qualifier
| |
| timeoutString | back to summary |
|---|---|
| private String timeoutString
| |
| DefaultTransactionAttribute | back to summary |
|---|---|
| public DefaultTransactionAttribute() Create a new DefaultTransactionAttribute, with default settings. Can be modified through bean property setters.
| |
| DefaultTransactionAttribute | back to summary |
|---|---|
| public DefaultTransactionAttribute(TransactionAttribute other) Copy constructor. Definition can be modified through bean property setters.
| |
| DefaultTransactionAttribute | back to summary |
|---|---|
| public DefaultTransactionAttribute(int propagationBehavior) Create a new DefaultTransactionAttribute with the given propagation behavior. Can be modified through bean property setters.
| |
| getAttributeDescription | back to summary |
|---|---|
| protected final StringBuilder getAttributeDescription() Return an identifying description for this transaction attribute. Available to subclasses, for inclusion in their | |
| getDescriptor | back to summary |
|---|---|
| public String getDescriptor() Return a descriptor for this transaction attribute,
or
| |
| 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. Return a qualifier value associated with this transaction attribute. | |
| getTimeoutString | back to summary |
|---|---|
| public String getTimeoutString() Return the timeout to apply, if any, as a String value that resolves to a number of seconds.
| |
| resolveAttributeStrings | back to summary |
|---|---|
| public void resolveAttributeStrings(StringValueResolver resolver) Resolve attribute values that are defined as resolvable Strings:
| |
| rollbackOn | back to summary |
|---|---|
| public boolean rollbackOn(Throwable ex) Implements org. The default behavior is as with EJB: rollback on unchecked exception
( This is largely consistent with TransactionTemplate's default behavior, except that TransactionTemplate also rolls back on undeclared checked exceptions (a corner case). For declarative transactions, we expect checked exceptions to be intentionally declared as business exceptions, leading to a commit by default.
| |
| setDescriptor | back to summary |
|---|---|
| public void setDescriptor(String descriptor) Set a descriptor for this transaction attribute, e.g. indicating where the attribute is applying.
| |
| setLabels | back to summary |
|---|---|
| public void setLabels(Collection<String> labels) Associate one or more labels with this transaction attribute. This may be used for applying specific transactional behavior or follow a purely descriptive nature.
| |
| setQualifier | back to summary |
|---|---|
| public void setQualifier(String qualifier) Associate a qualifier value with this transaction attribute. This may be used for choosing a corresponding transaction manager to process this specific transaction.
| |
| setTimeoutString | back to summary |
|---|---|
| public void setTimeoutString(String timeoutString) Set the timeout to apply, if any, as a String value that resolves to a number of seconds.
| |