interface TransactionService
A GORM service that simplifies the execution of transactions
| Type Params | Return Type | Name and description |
|---|---|---|
<T> |
abstract T |
withNewTransaction(Closure<T> callable)Executes the given callable within the context of a new transaction with the default attributes |
<T> |
abstract T |
withNewTransaction(org.springframework.transaction.TransactionDefinition definition, Closure<T> callable)Executes the given callable within the context of a new transaction with the default attributes |
<T> |
abstract T |
withRollback(Closure<T> callable)Executes the given callable within the context of a transaction that is automatically rolled back with the default attributes |
<T> |
abstract T |
withRollback(org.springframework.transaction.TransactionDefinition definition, Closure<T> callable)Executes the given callable within the context of a transaction that is automatically rolled back with the default attributes |
<T> |
abstract T |
withTransaction(Closure<T> callable)Executes the given callable within the context of a transaction with the default attributes |
<T> |
abstract T |
withTransaction(org.springframework.transaction.TransactionDefinition definition, Closure<T> callable)Executes the given callable within the context of a transaction with the given definition |
<T> |
abstract T |
withTransaction(Map definition, Closure<T> callable)Executes the given callable within the context of a transaction with the given definition |
Executes the given callable within the context of a new transaction with the default attributes
callable - The callableExecutes the given callable within the context of a new transaction with the default attributes
definition - The transaction definitioncallable - The callableExecutes the given callable within the context of a transaction that is automatically rolled back with the default attributes
callable - The callableExecutes the given callable within the context of a transaction that is automatically rolled back with the default attributes
definition - The transaction definitioncallable - The callableExecutes the given callable within the context of a transaction with the default attributes
callable - The callableExecutes the given callable within the context of a transaction with the given definition
definition - The transaction definitioncallable - The callable The callableExecutes the given callable within the context of a transaction with the given definition
definition - The transaction definition as a mapcallable - The callable The callable