Class AbstractTransactionInterceptor
java.lang.Object
org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
org.camunda.bpm.engine.impl.interceptor.AbstractTransactionInterceptor
- All Implemented Interfaces:
CommandExecutor
- Direct Known Subclasses:
JakartaTransactionInterceptor,JtaTransactionInterceptor
Base interceptor class for handling transactions for a command. Provides a
general template method to handle the transaction-based calls for a command
execution.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProcessEngineConfigurationImplprotected final booleanFields inherited from class org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
next -
Constructor Summary
ConstructorsConstructorDescriptionAbstractTransactionInterceptor(boolean requiresNew, ProcessEngineConfigurationImpl processEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoBegin()protected abstract voiddoCommit()protected abstract voidprotected abstract voiddoRollback(boolean isNew) protected abstract Object<T> Tprotected voidhandleRollbackException(Exception rollbackException) protected abstract booleanMethods inherited from class org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
getNext, setNext
-
Field Details
-
requiresNew
protected final boolean requiresNew -
processEngineConfiguration
-
-
Constructor Details
-
AbstractTransactionInterceptor
public AbstractTransactionInterceptor(boolean requiresNew, ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Details
-
execute
-
handleRollbackException
-
doResume
-
doCommit
protected abstract void doCommit() -
doRollback
protected abstract void doRollback(boolean isNew) -
doBegin
protected abstract void doBegin() -
doSuspend
-
isExisting
protected abstract boolean isExisting()
-