public class GrailsTransactionAttribute extends RuleBasedTransactionAttribute
Extended version of RuleBasedTransactionAttribute that ensures all exception types are rolled back and allows inheritance of setRollbackOnly
| Fields inherited from class | Fields |
|---|---|
class RuleBasedTransactionAttribute |
PREFIX_ROLLBACK_RULE, PREFIX_COMMIT_RULE, PROPAGATION_REQUIRED, PROPAGATION_SUPPORTS, PROPAGATION_MANDATORY, PROPAGATION_REQUIRES_NEW, PROPAGATION_NOT_SUPPORTED, PROPAGATION_NEVER, PROPAGATION_NESTED, ISOLATION_DEFAULT, ISOLATION_READ_UNCOMMITTED, ISOLATION_READ_COMMITTED, ISOLATION_REPEATABLE_READ, ISOLATION_SERIALIZABLE, TIMEOUT_DEFAULT, PREFIX_PROPAGATION, PREFIX_ISOLATION, PREFIX_TIMEOUT, READ_ONLY_MARKER |
| Constructor and description |
|---|
GrailsTransactionAttribute() |
GrailsTransactionAttribute(int propagationBehavior, java.util.List<RollbackRuleAttribute> rollbackRules) |
GrailsTransactionAttribute(TransactionAttribute other) |
GrailsTransactionAttribute(TransactionDefinition other) |
GrailsTransactionAttribute(GrailsTransactionAttribute other) |
GrailsTransactionAttribute(RuleBasedTransactionAttribute other) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public boolean |
isInheritRollbackOnly() |
|
public boolean |
rollbackOn(java.lang.Throwable ex) |
|
public void |
setInheritRollbackOnly(boolean inheritRollbackOnly) |
| Methods inherited from class | Name |
|---|---|
class RuleBasedTransactionAttribute |
equals, getClass, getDescriptor, getIsolationLevel, getLabels, getName, getPropagationBehavior, getQualifier, getRollbackRules, getTimeout, getTimeoutString, hashCode, isReadOnly, notify, notifyAll, resolveAttributeStrings, rollbackOn, setDescriptor, setIsolationLevel, setIsolationLevelName, setLabels, setName, setPropagationBehavior, setPropagationBehaviorName, setQualifier, setReadOnly, setRollbackRules, setTimeout, setTimeoutString, toString, wait, wait, wait |