Construct a new TransactionTemplate using the given transaction manager, taking its default settings from the given transaction definition.
Construct a new TransactionTemplate using the given transaction manager, taking its default settings from the given transaction definition.
the transaction management strategy to be used
the transaction definition to copy the default settings from. Local properties can still be set to change values.
Creates a TransactionTemplate
that wraps the given Java template
Creates a TransactionTemplate
that wraps the given Java template
the Java TransactionTemplate
to wrap
Execute the action specified by the given function within a transaction.
Execute the action specified by the given function within a transaction.
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.
the callback object that specifies the transactional action
a result object returned by the callback, or null
if none
TransactionException
in case of initialization, rollback, or system errors
the Java TransactionTemplate
to wrap
Scala-based convenience wrapper for the Spring org.springframework.scala.transaction.support.TransactionTemplate, taking advantage of functions and Scala types.
1.0