Each transaction-settings element embeds sub-elements defining
behaviors for exceptions and methods handling.
The order of exception elements is important.
The order of method elements is important.
All defaults can be overridden at each service-point by defining
new behaviors in the parameters of the TransactionInterceptor.
This element is used both for parameters of the TransactionInterceptor
and for defining defaults by contributing to configuration
TransactionDefaults.
| Element <exception> |
| Defines the impact, on the current transaction, of a thrown
exception. |
| Attribute name (required) | Translator: | class |
| Class of the exception defining a default behavior.
If a thrown exception is of this class (or any subclass),
then the behavior is applied. |
| Attribute rollback (required) | Translator: | boolean |
| Conversion Rules |
|
<create-object class="net.sourceforge.hivetranse.transaction.RollbackExceptionContribution"
/>
<read-attribute attribute="name"
property="exception"
/>
<read-attribute attribute="rollback"
property="rollback"
/>
<invoke-parent method="addRollbackExceptionContribution"
/>
|
| Element <method> |
| Defines the default transaction demarcation of methods
matching the given pattern. |
| Attribute demarcation (required) | Translator: | enumeration,net.sourceforge.hivetranse.transaction.TransactionDemarcation,NotSupported=NotSupported,Required=Required,Supports=Supports,RequiresNew=RequiresNew,Mandatory=Mandatory,Never=Never |
| Attribute pattern (required) | Translator: | string |
| Conversion Rules |
|
<create-object class="net.sourceforge.hivetranse.transaction.TransactionContribution"
/>
<read-attribute attribute="pattern"
property="pattern"
/>
<read-attribute attribute="demarcation"
property="demarcation"
/>
<invoke-parent method="addTransactionContribution"
/>
|
<create-object class="net.sourceforge.hivetranse.transaction.TransactionSettingsContribution"
/>
<invoke-parent method="addElement"
/>