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 Details

  • Constructor Details

    • AbstractTransactionInterceptor

      public AbstractTransactionInterceptor(boolean requiresNew, ProcessEngineConfigurationImpl processEngineConfiguration)
  • Method Details

    • 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()