A GORM service that simplifies the execution of transactions
Type | Name and description |
---|---|
T |
withNewTransaction(groovy.lang.Closure<T> callable) Executes the given callable within the context of a new transaction with the default attributes |
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 |
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 |
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 |
withTransaction(groovy.lang.Closure<T> callable) Executes the given callable within the context of a transaction with the default attributes |
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 |
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