public interface TransactionHandler
TransactionTemplate because it
handles the current InvocationContext's EntityManager and CyclosException#shouldRollback()| Modifier and Type | Method and Description |
|---|---|
<T> Pair<T,java.lang.Boolean> |
run(TransactionLevel transactionLevel,
org.springframework.transaction.support.TransactionCallback<T> callback)
Runs the given transaction callback in the current thread, forcing there's no current transaction.
|
<T> Pair<T,java.lang.Boolean> run(TransactionLevel transactionLevel, org.springframework.transaction.support.TransactionCallback<T> callback)
TransactionLevel.Pair with the callback's result and a boolean indicating if the transaction was committed or
not.