| Modifier and Type | Field and Description |
|---|---|
| protected final List | noRollbackFor
The list of |
| protected final List | rollbackFor
The list of |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final TransactionBuilder | Returns: this builderAn exception type that should not trigger rollback t, Class<? extends Throwable>... further exception types that should not trigger
rollback throwables)Declare a list of Exception types (and their subtypes) that must not trigger a rollback. |
| public abstract TransactionBuilder | Returns: this builderIndicate to the Transaction Control service that this transaction will be read-only. |
| public final TransactionBuilder | Returns: this builderThe Exception types that should trigger rollback throwables)Declare a list of Exception types (and their subtypes) that must trigger a rollback. |
| noRollbackFor | back to summary |
|---|---|
| protected final List<Class<? extends Throwable>> noRollbackFor The list of | |
| rollbackFor | back to summary |
|---|---|
| protected final List<Class<? extends Throwable>> rollbackFor The list of | |
| TransactionBuilder | back to summary |
|---|---|
| public TransactionBuilder() | |
| noRollbackFor | back to summary |
|---|---|
| public final TransactionBuilder noRollbackFor(Class<? extends Throwable> t, Class<? extends Throwable>... throwables) Declare a list of Exception types (and their subtypes) that must
not trigger a rollback. By default the transaction will rollback for
all Note that the behavior of this method differs from Java EE and Spring in two ways:
| |
| readOnly | back to summary |
|---|---|
| public abstract TransactionBuilder readOnly() Indicate to the Transaction Control service that this transaction will be read-only. This hint may be used by the Transaction Control service and associated resources to optimize the transaction. Note that this method is for optimization purposes only. The TransactionControl service is free to ignore the call if it does not offer read-only optimization. If a transaction is marked read-only and then the scoped work performs a write operation on a resource then this is a programming error. The resource is free to raise an exception when the write is attempted, or to permit the write operation. As a result the transaction may commit successfully, or may rollback.
| |
| rollbackFor | back to summary |
|---|---|
| public final TransactionBuilder rollbackFor(Class<? extends Throwable> t, Class<? extends Throwable>... throwables) Declare a list of Exception types (and their subtypes) that must
trigger a rollback. By default the transaction will rollback for all
Note that the behavior of this method differs from Java EE and Spring in two ways:
| |