org.camunda.bpm.engine.impl.cfg.standalone
Class StandaloneTransactionContext
java.lang.Object
org.camunda.bpm.engine.impl.cfg.standalone.StandaloneTransactionContext
- All Implemented Interfaces:
- TransactionContext
public class StandaloneTransactionContext
- extends Object
- implements TransactionContext
- Author:
- Sebastian Menski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
commandContext
protected CommandContext commandContext
stateTransactionListeners
protected Map<TransactionState,List<TransactionListener>> stateTransactionListeners
StandaloneTransactionContext
public StandaloneTransactionContext(CommandContext commandContext)
addTransactionListener
public void addTransactionListener(TransactionState transactionState,
TransactionListener transactionListener)
- Description copied from interface:
TransactionContext
- Add a
TransactionListener to the current transaction.
- Specified by:
addTransactionListener in interface TransactionContext
- Parameters:
transactionState - the transaction state for which the TransactionListener should be added.transactionListener - the TransactionListener to add.
commit
public void commit()
- Description copied from interface:
TransactionContext
- Commit the current transaction.
- Specified by:
commit in interface TransactionContext
fireTransactionEvent
protected void fireTransactionEvent(TransactionState transactionState)
setLastTransactionState
protected void setLastTransactionState(TransactionState transactionState)
rollback
public void rollback()
- Description copied from interface:
TransactionContext
- Rollback the current transaction.
- Specified by:
rollback in interface TransactionContext
isTransactionActive
public boolean isTransactionActive()
- Specified by:
isTransactionActive in interface TransactionContext
Copyright © 2016 camunda services GmbH. All rights reserved.