Class EndTransaction

java.lang.Object
de.aristaflow.adept2.core.changeoperations.EndTransaction

public class EndTransaction extends Object
Signals the end of a change transaction
Author:
jurisch
  • Constructor Details

    • EndTransaction

      public EndTransaction()
  • Method Details

    • performOperation

      public static void performOperation(ChangeableTemplate template, UpdateManager updateManager)
      calls the methods which are interested in the end-event of a change operation. (at the moment only endTransaction is called and the event queue of the update manager is released).
      Parameters:
      template - the related template
      updateManager - The UpdateManager where modifications are logged, may be null
    • performOperation

      public static void performOperation(ChangeableTemplate template, UpdateManager updateManager, String transactionLabel)
      Calls the methods which are interested in the end-event of a change operation. (at the moment only endTransaction is called and the event queue of the update manager is released).
      Parameters:
      template - the related template
      updateManager - The UpdateManager where modifications are logged, may be null
      transactionLabel - Label for the change transaction.
    • performOperation

      public static void performOperation(ChangeableInstance instance, UpdateManager updateManager)
      calls the methods which are interested in the end-event of a change operation. (at the moment only endTransaction is called and the event queue of the update manager is released).
      Parameters:
      instance - the related changeable instance
      updateManager - The UpdateManager where modifications are logged, may be null
    • performOperation

      public static void performOperation(ChangeableInstance instance, UpdateManager updateManager, String transactionLabel)
      calls the methods which are interested in the end-event of a change operation. (at the moment only endTransaction is called and the event queue of the update manager is released).
      Parameters:
      instance - the related changeable instance
      updateManager - The UpdateManager where modifications are logged, may be null
      transactionLabel - Label for the change transaction.
    • performOperation

      protected static void performOperation(ChangePrimitives processGraph, UpdateManager updateManager, String transactionLabel)
      Worker method to do the structural changes for both changeable templates and changeable instances.
      Parameters:
      processGraph - an instance of type ChangeableTemplate or ChangeableInstance
      updateManager - The UpdateManager where modifications are logged, may be null
      transactionLabel - A label for a transaction label event, may be null, will be ignored if no update manager is provided.