Java org.springframework.transaction.interceptor RuleBasedTransactionAttribute fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.transaction.interceptor RuleBasedTransactionAttribute fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.transaction.interceptor RuleBasedTransactionAttribute.

The text is from its open source code.

Constructor

RuleBasedTransactionAttribute()
Create a new RuleBasedTransactionAttribute, with default settings.

Method

ListgetRollbackRules()
Return the list of RollbackRuleAttribute objects (never null ).
booleanrollbackOn(Throwable ex)
Winning rule is the shallowest rule (that is, the closest in the inheritance hierarchy to the exception).
voidsetIsolationLevelName(String constantName)
Set the isolation level by the name of the corresponding constant in TransactionDefinition, e.g.
voidsetPropagationBehavior(int propagationBehavior)
Set the propagation behavior.
voidsetPropagationBehaviorName(String constantName)
Set the propagation behavior by the name of the corresponding constant in TransactionDefinition, e.g.
voidsetReadOnly(boolean readOnly)
Set whether to optimize as read-only transaction.
voidsetRollbackRules(List rollbackRules)
Set the list of RollbackRuleAttribute objects (and/or NoRollbackRuleAttribute objects) to apply.
voidsetTimeout(int timeout)
Set the timeout to apply, as number of seconds.