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 ProcessEngineConfigurationImplprocessEngineConfigurationprotected booleanrequiresNew-
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 voiddoBegin()protected abstract voiddoCommit()protected abstract voiddoResume(Object oldTx)protected abstract voiddoRollback(boolean isNew)protected abstract ObjectdoSuspend()<T> Texecute(Command<T> command)protected voidhandleRollbackException(Exception rollbackException)protected abstract booleanisExisting()-
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()
-
-