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() |
boolean |
isTransactionActive()
Deprecated.
|
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, registerBeforeCommitCallable, registerBonitaSynchronization
void begin() throws STransactionCreationException
STransactionCreationException
void complete() throws STransactionCommitException, STransactionRollbackException
TransactionState getState() throws STransactionException
STransactionException
- Thrown if the transaction manager
encounters an unexpected error condition.@Deprecated boolean isTransactionActive() throws STransactionException
STransactionException
void setRollbackOnly() throws STransactionException
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
STransactionException
long getNumberOfActiveTransactions()
Copyright © 2018 Bonitasoft S.A.. All rights reserved.