org.springframework.transaction.annotation.TransactionalDescribes transaction attributes on a method or class.
This annotation type is generally directly comparable to Spring's org.springframework.transaction.interceptor.RuleBasedTransactionAttribute class, and in fact AnnotationTransactionAttributeSource will directly convert the data to the latter class, so that Spring's transaction support code does not have to know about annotations. If no rules are relevant to the exception, it will be treated like org.springframework.transaction.interceptor.DefaultTransactionAttribute (rolling back on runtime exceptions).
Colin - SampaleanuJuergen - Hoeller1.2 - | Method from org.springframework.transaction.annotation.Transactional Summary: |
|---|
| isolation, noRollbackFor, noRollbackForClassName, propagation, readOnly, rollbackFor, rollbackForClassName, timeout, value |
| Method from org.springframework.transaction.annotation.Transactional Detail: |
|---|
Defaults to Isolation#DEFAULT . |
|
See the description of #rollbackForClassName() for more info on how the specified names are treated. |
Defaults to Propagation#REQUIRED . |
true if the transaction is read-only.
Defaults to |
This is the preferred way to construct a rollback rule, matching the exception class and subclasses. Similar to org.springframework.transaction.interceptor.RollbackRuleAttribute#RollbackRuleAttribute(Class clazz) |
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. |
Defaults to the default timeout of the underlying transaction system. |
May be used to determine the target transaction manager, matching the qualifier value (or the bean name) of a specific org.springframework.transaction.PlatformTransactionManager bean definition. |