public interface UserTransactionService
| Modifier and Type | Method and Description |
|---|---|
<T> T |
executeInTransaction(Callable<T> callable)
Execute the given callable inside a transaction.
|
void |
registerBeforeCommitCallable(Callable<Void> callable) |
void |
registerBonitaSynchronization(BonitaTransactionSynchronization txSync)
Register a synchronization object for the transaction currently
associated with the target object.
|
<T> T executeInTransaction(Callable<T> callable) throws Exception
callable - Exceptionvoid registerBonitaSynchronization(BonitaTransactionSynchronization txSync) throws STransactionNotFoundException
txSync - The Synchronization object for the transaction associated
with the target object.RollbackException - Thrown to indicate that
the transaction has been marked for rollback only.IllegalStateException - Thrown if the transaction in the
target object is in the prepared state or the transaction is
inactive.STransactionNotFoundException - Thrown if the transaction manager
encounters an unexpected error condition.void registerBeforeCommitCallable(Callable<Void> callable) throws STransactionNotFoundException
STransactionNotFoundExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.