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 Summary
Constructors Constructor Description EndTransaction()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
performOperation(ChangeableInstance instance, UpdateManager updateManager)
calls the methods which are interested in the end-event of a change operation.static void
performOperation(ChangeableInstance instance, UpdateManager updateManager, String transactionLabel)
calls the methods which are interested in the end-event of a change operation.static void
performOperation(ChangeableTemplate template, UpdateManager updateManager)
calls the methods which are interested in the end-event of a change operation.static void
performOperation(ChangeableTemplate template, UpdateManager updateManager, String transactionLabel)
Calls the methods which are interested in the end-event of a change operation.protected static void
performOperation(ChangePrimitives processGraph, UpdateManager updateManager, String transactionLabel)
Worker method to do the structural changes for both changeable templates and changeable instances.
-
-
-
Method Detail
-
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 templateupdateManager
- 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 templateupdateManager
- The UpdateManager where modifications are logged, may be nulltransactionLabel
- 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 instanceupdateManager
- 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 instanceupdateManager
- The UpdateManager where modifications are logged, may be nulltransactionLabel
- 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 ChangeableInstanceupdateManager
- The UpdateManager where modifications are logged, may be nulltransactionLabel
- A label for a transaction label event, may be null, will be ignored if no update manager is provided.
-
-