public interface UserTransactionService
| Modifier and Type | Method and Description |
|---|---|
<T> T |
executeInTransaction(java.util.concurrent.Callable<T> callable)
Execute the given callable inside a transaction.
|
boolean |
isTransactionActive() |
void |
registerBeforeCommitCallable(java.util.concurrent.Callable<java.lang.Void> callable) |
void |
registerBonitaSynchronization(BonitaTransactionSynchronization txSync)
Register a synchronization object for the transaction currently
associated with the target object.
|
<T> T executeInTransaction(java.util.concurrent.Callable<T> callable)
throws java.lang.Exception
callable - java.lang.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.java.lang.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(java.util.concurrent.Callable<java.lang.Void> callable)
throws STransactionNotFoundException
STransactionNotFoundExceptionboolean isTransactionActive()