public interface TransactionService extends UserTransactionService
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Create a new transaction and associate it with the current thread.
|
void |
complete()
Complete the transaction : either commit or rollback.
|
long |
getNumberOfActiveTransactions()
Get the number of active transactions (i.e.
|
TransactionState |
getState()
Obtain the status of the transaction associated with the current thread.
|
boolean |
isRollbackOnly() |
void |
setRollbackOnly()
Modify the transaction associated with the current thread such that
the only possible outcome of the transaction is to roll back the
transaction.
|
executeInTransaction, isTransactionActive, registerBeforeCommitCallable, registerBonitaSynchronizationvoid begin()
throws STransactionCreationException
STransactionCreationExceptionvoid complete()
throws STransactionCommitException,
STransactionRollbackException
TransactionState getState() throws STransactionException
STransactionException - Thrown if the transaction manager
encounters an unexpected error condition.void setRollbackOnly()
throws STransactionException
java.lang.IllegalStateException - Thrown if the current thread is
not associated with a transaction.STransactionException - Thrown if the transaction manager
encounters an unexpected error condition.boolean isRollbackOnly()
throws STransactionException
STransactionExceptionlong getNumberOfActiveTransactions()