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
public abstract class AbstractTransactionInterceptor extends CommandInterceptor
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
Fields Modifier and Type Field Description protected ProcessEngineConfigurationImpl
processEngineConfiguration
protected boolean
requiresNew
-
Fields inherited from class org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
next
-
-
Constructor Summary
Constructors Constructor Description AbstractTransactionInterceptor(boolean requiresNew, ProcessEngineConfigurationImpl processEngineConfiguration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
doBegin()
protected abstract void
doCommit()
protected abstract void
doResume(Object oldTx)
protected abstract void
doRollback(boolean isNew)
protected abstract Object
doSuspend()
<T> T
execute(Command<T> command)
protected void
handleRollbackException(Exception rollbackException)
protected abstract boolean
isExisting()
-
Methods inherited from class org.camunda.bpm.engine.impl.interceptor.CommandInterceptor
getNext, setNext
-
-
-
-
Field Detail
-
requiresNew
protected final boolean requiresNew
-
processEngineConfiguration
protected ProcessEngineConfigurationImpl processEngineConfiguration
-
-
Constructor Detail
-
AbstractTransactionInterceptor
public AbstractTransactionInterceptor(boolean requiresNew, ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Detail
-
execute
public <T> T execute(Command<T> command)
-
handleRollbackException
protected void handleRollbackException(Exception rollbackException)
-
doResume
protected abstract void doResume(Object oldTx)
-
doCommit
protected abstract void doCommit()
-
doRollback
protected abstract void doRollback(boolean isNew)
-
doBegin
protected abstract void doBegin()
-
doSuspend
protected abstract Object doSuspend()
-
isExisting
protected abstract boolean isExisting()
-
-