Executes the the action specified by the given delegate callback within a transaction.
A result object returned by the callback, or
Allows for returning a result object created within the transaction, that is, a domain object or a collection of domain objects. An exception 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.
|TransactionException||In case of initialization or system errors.|