Package org.flowable.common.spring
Class SpringTransactionContext
java.lang.Object
org.flowable.common.spring.SpringTransactionContext
- All Implemented Interfaces:
TransactionContext
- Author:
- Frederik Heremans, Joram Barrez
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandContext
protected PlatformTransactionManager
protected Integer
-
Constructor Summary
ConstructorsConstructorDescriptionSpringTransactionContext
(PlatformTransactionManager transactionManager, CommandContext commandContext) SpringTransactionContext
(PlatformTransactionManager transactionManager, CommandContext commandContext, Integer transactionSynchronizationAdapterOrder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTransactionListener
(TransactionState transactionState, TransactionListener transactionListener) void
commit()
void
rollback()
-
Field Details
-
transactionManager
-
commandContext
-
transactionSynchronizationAdapterOrder
-
-
Constructor Details
-
SpringTransactionContext
public SpringTransactionContext(PlatformTransactionManager transactionManager, CommandContext commandContext) -
SpringTransactionContext
public SpringTransactionContext(PlatformTransactionManager transactionManager, CommandContext commandContext, Integer transactionSynchronizationAdapterOrder)
-
-
Method Details
-
commit
public void commit()- Specified by:
commit
in interfaceTransactionContext
-
rollback
public void rollback()- Specified by:
rollback
in interfaceTransactionContext
-
addTransactionListener
public void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener) - Specified by:
addTransactionListener
in interfaceTransactionContext
-