interface TransactionService
A GORM service that simplifies the execution of transactions
Type Params | Return Type | Name and description |
---|---|---|
<T> |
abstract T |
withNewTransaction(groovy.lang.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, groovy.lang.Closure<T> callable) Executes the given callable within the context of a new transaction with the default attributes |
<T> |
abstract T |
withRollback(groovy.lang.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, groovy.lang.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(groovy.lang.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, groovy.lang.Closure<T> callable) Executes the given callable within the context of a transaction with the given definition |
<T> |
abstract T |
withTransaction(java.util.Map definition, groovy.lang.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