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
Modifier and TypeFieldDescriptionprotected ProcessEngineConfigurationImpl
protected final boolean
Fields inherited from class org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
next
-
Constructor Summary
ConstructorDescriptionAbstractTransactionInterceptor
(boolean requiresNew, ProcessEngineConfigurationImpl processEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
doBegin()
protected abstract void
doCommit()
protected abstract void
protected abstract void
doRollback
(boolean isNew) protected abstract Object
<T> T
protected void
handleRollbackException
(Exception rollbackException) protected abstract boolean
Methods 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()
-