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