Class JtaTransactionContext
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cfg.jta.AbstractTransactionContext
-
- org.camunda.bpm.engine.impl.cfg.jta.JtaTransactionContext
-
- All Implemented Interfaces:
TransactionContext
public class JtaTransactionContext extends AbstractTransactionContext
JTA-based implementation of theAbstractTransactionContext
- Author:
- Daniel Meyer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JtaTransactionContext.JtaTransactionStateSynchronization
-
Nested classes/interfaces inherited from class org.camunda.bpm.engine.impl.cfg.jta.AbstractTransactionContext
AbstractTransactionContext.TransactionStateSynchronization
-
-
Field Summary
Fields Modifier and Type Field Description protected TransactionManager
transactionManager
-
Fields inherited from class org.camunda.bpm.engine.impl.cfg.jta.AbstractTransactionContext
LOG
-
-
Constructor Summary
Constructors Constructor Description JtaTransactionContext(TransactionManager transactionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addTransactionListener(TransactionState transactionState, TransactionListener transactionListener, CommandContext commandContext)
protected void
doRollback()
protected Transaction
getTransaction()
protected boolean
isTransactionActiveInternal()
-
Methods inherited from class org.camunda.bpm.engine.impl.cfg.jta.AbstractTransactionContext
addTransactionListener, commit, isTransactionActive, rollback
-
-
-
-
Field Detail
-
transactionManager
protected final TransactionManager transactionManager
-
-
Constructor Detail
-
JtaTransactionContext
public JtaTransactionContext(TransactionManager transactionManager)
-
-
Method Detail
-
doRollback
protected void doRollback() throws Exception
- Specified by:
doRollback
in classAbstractTransactionContext
- Throws:
Exception
-
addTransactionListener
protected void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener, CommandContext commandContext) throws Exception
- Specified by:
addTransactionListener
in classAbstractTransactionContext
- Throws:
Exception
-
getTransaction
protected Transaction getTransaction()
-
isTransactionActiveInternal
protected boolean isTransactionActiveInternal() throws Exception
- Specified by:
isTransactionActiveInternal
in classAbstractTransactionContext
- Throws:
Exception
-
-