adds transaction methods to any class. relies on Gorms transactionService.
Type | Name and description |
---|---|
TrxService |
trxService |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
clear(TransactionStatus status) |
|
void |
flushAndClear(TransactionStatus status) |
<T> |
T |
withTrx(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 transaction with the given definition
definition
- The transaction definition as a mapcallable
- The callable The callable