org.camunda.bpm.engine.impl.cfg.standalone
Class StandaloneTransactionContext

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cfg.standalone.StandaloneTransactionContext
All Implemented Interfaces:
TransactionContext

public class StandaloneTransactionContext
extends Object
implements TransactionContext

Author:
Sebastian Menski

Field Summary
protected  CommandContext commandContext
           
protected  Map<TransactionState,List<TransactionListener>> stateTransactionListeners
           
 
Constructor Summary
StandaloneTransactionContext(CommandContext commandContext)
           
 
Method Summary
 void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener)
          Add a TransactionListener to the current transaction.
 void commit()
          Commit the current transaction.
protected  void fireTransactionEvent(TransactionState transactionState)
           
 boolean isTransactionActive()
           
 void rollback()
          Rollback the current transaction.
protected  void setLastTransactionState(TransactionState transactionState)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandContext

protected CommandContext commandContext

stateTransactionListeners

protected Map<TransactionState,List<TransactionListener>> stateTransactionListeners
Constructor Detail

StandaloneTransactionContext

public StandaloneTransactionContext(CommandContext commandContext)
Method Detail

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 © 2015 camunda services GmbH. All rights reserved.