Class TransactionStateUpdater

  • All Implemented Interfaces:

    public class TransactionStateUpdater
    extends java.lang.Object
    implements CommandEventListener
    This implementation of the CommandEventListener interface manages the transaction state enclosing each command executed by the database. This includes starting a transaction before each command, if one is not already in progress, and committing the transaction if it was not user-initiated.
    • Field Summary

      Modifier and Type Field Description
      private static org.apache.logging.log4j.Logger logger
      A logging object for reporting anything interesting that happens.
      private TransactionManager transactionManager  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void afterCommandExecuted​(Command cmd)
      This method is called after a command is executed, to allow listeners to perform after-command processing.
      void beforeCommandExecuted​(Command cmd)
      This method is called before a command is executed, to allow listeners to perform before-command processing.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait