Class JtaTransactionContext
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cfg.jta.JtaTransactionContext
-
- All Implemented Interfaces:
TransactionContext
public class JtaTransactionContext extends Object implements TransactionContext
- Author:
- Daniel Meyer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JtaTransactionContext.TransactionStateSynchronization
-
Field Summary
Fields Modifier and Type Field Description static TransactionLogger
LOG
protected TransactionManager
transactionManager
-
Constructor Summary
Constructors Constructor Description JtaTransactionContext(TransactionManager transactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTransactionListener(TransactionState transactionState, TransactionListener transactionListener)
Add aTransactionListener
to the current transaction.void
commit()
Commit the current transaction.protected Transaction
getTransaction()
boolean
isTransactionActive()
void
rollback()
Rollback the current transaction.
-
-
-
Field Detail
-
LOG
public static final TransactionLogger LOG
-
transactionManager
protected final TransactionManager transactionManager
-
-
Constructor Detail
-
JtaTransactionContext
public JtaTransactionContext(TransactionManager transactionManager)
-
-
Method Detail
-
commit
public void commit()
Description copied from interface:TransactionContext
Commit the current transaction.- Specified by:
commit
in interfaceTransactionContext
-
rollback
public void rollback()
Description copied from interface:TransactionContext
Rollback the current transaction.- Specified by:
rollback
in interfaceTransactionContext
-
getTransaction
protected Transaction getTransaction()
-
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.
-
isTransactionActive
public boolean isTransactionActive()
- Specified by:
isTransactionActive
in interfaceTransactionContext
-
-