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 CommandContextprotected PlatformTransactionManagerprotected Integer -
Constructor Summary
ConstructorsConstructorDescriptionSpringTransactionContext(PlatformTransactionManager transactionManager, CommandContext commandContext) SpringTransactionContext(PlatformTransactionManager transactionManager, CommandContext commandContext, Integer transactionSynchronizationAdapterOrder) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransactionListener(TransactionState transactionState, TransactionListener transactionListener) voidcommit()voidrollback()
-
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:
commitin interfaceTransactionContext
-
rollback
public void rollback()- Specified by:
rollbackin interfaceTransactionContext
-
addTransactionListener
public void addTransactionListener(TransactionState transactionState, TransactionListener transactionListener) - Specified by:
addTransactionListenerin interfaceTransactionContext
-