|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TransactionOperations
Interface specifying basic transaction execution operations.
Implemented by TransactionTemplate. Not often used directly,
but a useful option to enhance testability, as it can easily be
mocked or stubbed.
| Method Summary | ||
|---|---|---|
|
execute(TransactionCallback<T> action)
Execute the action specified by the given callback object within a transaction. |
|
| Method Detail |
|---|
<T> T execute(TransactionCallback<T> action)
throws TransactionException
Allows for returning a result object created within the transaction, that is, a domain object or a collection of domain objects. A RuntimeException thrown by the callback is treated as a fatal exception that enforces a rollback. Such an exception gets propagated to the caller of the template.
action - the callback object that specifies the transactional action
null if none
TransactionException - in case of initialization, rollback, or system errors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||