Class StandaloneTransactionContext
java.lang.Object
org.camunda.bpm.engine.impl.cfg.standalone.StandaloneTransactionContext
- All Implemented Interfaces:
TransactionContext
- Author:
- Sebastian Menski
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommandContext
protected Map<TransactionState,
List<TransactionListener>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTransactionListener
(TransactionState transactionState, TransactionListener transactionListener) Add aTransactionListener
to the current transaction.void
commit()
Commit the current transaction.protected void
fireTransactionEvent
(TransactionState transactionState) boolean
void
rollback()
Rollback the current transaction.protected void
setLastTransactionState
(TransactionState transactionState)
-
Field Details
-
commandContext
-
stateTransactionListeners
-
-
Constructor Details
-
StandaloneTransactionContext
-
-
Method Details
-
addTransactionListener
public void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener) Description copied from interface:TransactionContext
Add aTransactionListener
to the current transaction.- Specified by:
addTransactionListener
in interfaceTransactionContext
- Parameters:
transactionState
- the transaction state for which theTransactionListener
should be added.transactionListener
- theTransactionListener
to add.
-
commit
public void commit()Description copied from interface:TransactionContext
Commit the current transaction.- Specified by:
commit
in interfaceTransactionContext
-
fireTransactionEvent
-
setLastTransactionState
-
rollback
public void rollback()Description copied from interface:TransactionContext
Rollback the current transaction.- Specified by:
rollback
in interfaceTransactionContext
-
isTransactionActive
public boolean isTransactionActive()- Specified by:
isTransactionActive
in interfaceTransactionContext
-