Package org.camunda.bpm.engine.impl.cfg
Interface TransactionContext
-
- All Known Implementing Classes:
JtaTransactionContext
,SpringTransactionContext
,StandaloneTransactionContext
public interface TransactionContext
The transaction context is an abstraction for different transaction management strategies existing the Java Ecosystem. Provides transaction lifecycle management and management of transaction listeners. Note: not every Technology or environment may provide a full implementation of this interface.- Author:
- Tom Baeyens, Daniel Meyer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addTransactionListener(TransactionState transactionState, TransactionListener transactionListener)
Add aTransactionListener
to the current transaction.void
commit()
Commit the current transaction.boolean
isTransactionActive()
void
rollback()
Rollback the current transaction.
-
-
-
Method Detail
-
commit
void commit()
Commit the current transaction.
-
rollback
void rollback()
Rollback the current transaction.
-
addTransactionListener
void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener)
Add aTransactionListener
to the current transaction.- Parameters:
transactionState
- the transaction state for which theTransactionListener
should be added.transactionListener
- theTransactionListener
to add.
-
isTransactionActive
boolean isTransactionActive()
-
-