java.lang.Object | ||
↳ | org.springframework.transaction.support.DefaultTransactionDefinition | |
↳ | org.springframework.transaction.interceptor.DefaultTransactionAttribute |
Known Direct Subclasses |
Transaction attribute that takes the EJB approach to rolling back on runtime, but not checked, exceptions.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.transaction.support.DefaultTransactionDefinition
| |||||||||||
From interface
org.springframework.transaction.TransactionDefinition
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new DefaultTransactionAttribute, with default settings.
| |||||||||||
Copy constructor.
| |||||||||||
Create a new DefaultTransactionAttribute with the the given
propagation behavior.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return a qualifier value associated with this transaction attribute.
| |||||||||||
The default behavior is as with EJB: rollback on unchecked exception.
| |||||||||||
Associate a qualifier value with this transaction attribute.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return an identifying description for this transaction attribute.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.transaction.support.DefaultTransactionDefinition
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.transaction.TransactionDefinition
| |||||||||||
From interface
org.springframework.transaction.interceptor.TransactionAttribute
|
Create a new DefaultTransactionAttribute, with default settings. Can be modified through bean property setters.
Copy constructor. Definition can be modified through bean property setters.
Create a new DefaultTransactionAttribute with the the given propagation behavior. Can be modified through bean property setters.
propagationBehavior | one of the propagation constants in the TransactionDefinition interface |
---|
The default behavior is as with EJB: rollback on unchecked exception. Additionally attempt to rollback on Error.
This is consistent with TransactionTemplate's default behavior.
ex | the exception to evaluate |
---|
Associate a qualifier value with this transaction attribute.
This may be used for choosing a corresponding transaction manager to process this specific transaction.
Return an identifying description for this transaction attribute.
Available to subclasses, for inclusion in their toString()
result.