| org.springframework.transaction.annotation.Transactional
Field Summary | |
Isolation | isolation The transaction isolation level. | Class<? extends Throwable>[] | noRollbackFor Defines zero (0) or more exception
Class Classes , which must be a
subclass of
Throwable , indicating which exception types must not
cause a transaction rollback. | String[] | noRollbackForClassName Defines zero (0) or more exception names (for exceptions which must be a
subclass of
Throwable ) indicating which exception types must not
cause a transaction rollback. | Propagation | propagation The transaction propagation type. | boolean | readOnly true if the transaction is read-only. | Class<? extends Throwable>[] | rollbackFor Defines zero (0) or more exception
Class classes , which must be a
subclass of
Throwable , indicating which exception types must cause
a transaction rollback. | String[] | rollbackForClassName Defines zero (0) or more exception names (for exceptions which must be a
subclass of
Throwable ), indicating which exception types must cause
a transaction rollback.
This can be a substring, with no wildcard support at present.
A value of "ServletException" would match
javax.servlet.ServletException and subclasses, for example.
NB: Consider carefully how specific the pattern is, and whether
to include package information (which isn't mandatory). | int | timeout The timeout for this transaction. |
readOnly | boolean readOnly(Code) | | true if the transaction is read-only.
Defaults to false .
|
rollbackForClassName | String[] rollbackForClassName(Code) | | Defines zero (0) or more exception names (for exceptions which must be a
subclass of
Throwable ), indicating which exception types must cause
a transaction rollback.
This can be a substring, with no wildcard support at present.
A value of "ServletException" would match
javax.servlet.ServletException and subclasses, for example.
NB: Consider carefully how specific the pattern is, and whether
to include package information (which isn't mandatory). For example,
"Exception" will match nearly anything, and will probably hide other rules.
"java.lang.Exception" would be correct if "Exception" was meant to define
a rule for all checked exceptions. With more unusual
Exception names such as "BaseBusinessException" there is no need to use a FQN.
Similar to
org.springframework.transaction.interceptor.RollbackRuleAttribute.RollbackRuleAttribute(String exceptionName) |
timeout | int timeout(Code) | | The timeout for this transaction.
Defaults to the default timeout of the underlying transaction system.
|
|
|