TransactionAttributeEditor creates objects of this class.
TransactionAttributeEditor
| Modifier and Type | Field and Description |
|---|---|
| public static final String | PREFIX_COMMIT_RULE
Prefix for commit-on-exception rules in description strings. |
| public static final String | PREFIX_ROLLBACK_RULE
Prefix for rollback-on-exception rules in description strings. |
| private List |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | RuleBasedTransactionAttribute(int
one of the propagation constants in the
TransactionDefinition interface propagationBehavior, List<RollbackRuleAttribute> the list of RollbackRuleAttributes to apply rollbackRules)Create a new DefaultTransactionAttribute with the given propagation behavior. |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public boolean | rollbackOn(Throwable
the exception to evaluate ex)Overrides org. Implements org. Winning rule is the shallowest rule (that is, the closest in the inheritance hierarchy to the exception). |
| public void | setRollbackRules(List<RollbackRuleAttribute> rollbackRules)
Set the list of |
| public String | toString()
Overrides org. Return an identifying description for this transaction definition. |
| PREFIX_COMMIT_RULE | back to summary |
|---|---|
| public static final String PREFIX_COMMIT_RULE Prefix for commit-on-exception rules in description strings. | |
| PREFIX_ROLLBACK_RULE | back to summary |
|---|---|
| public static final String PREFIX_ROLLBACK_RULE Prefix for rollback-on-exception rules in description strings. | |
| rollbackRules | back to summary |
|---|---|
| private List<RollbackRuleAttribute> rollbackRules
| |
| RuleBasedTransactionAttribute | back to summary |
|---|---|
| public RuleBasedTransactionAttribute() Create a new RuleBasedTransactionAttribute, with default settings. Can be modified through bean property setters. | |
| RuleBasedTransactionAttribute | back to summary |
|---|---|
| public RuleBasedTransactionAttribute(RuleBasedTransactionAttribute other) Copy constructor. Definition can be modified through bean property setters. | |
| RuleBasedTransactionAttribute | back to summary |
|---|---|
| public RuleBasedTransactionAttribute(int propagationBehavior, List<RollbackRuleAttribute> rollbackRules) Create a new DefaultTransactionAttribute with the given propagation behavior. Can be modified through bean property setters.
| |
| getRollbackRules | back to summary |
|---|---|
| public List Return the list of | |
| rollbackOn | back to summary |
|---|---|
| public boolean rollbackOn(Throwable ex) Overrides org. Implements org. Winning rule is the shallowest rule (that is, the closest in the inheritance hierarchy to the exception). If no rule applies (-1), return false.
| |
| setRollbackRules | back to summary |
|---|---|
| public void setRollbackRules(List<RollbackRuleAttribute> rollbackRules) Set the list of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from org. Return an identifying description for this transaction definition. The format matches the one used by
Has to be overridden in subclasses for correct
| |