Class EndTransaction
java.lang.Object
de.aristaflow.adept2.core.changeoperations.EndTransaction
Signals the end of a change transaction
- Author:
- jurisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidperformOperation(ChangeableInstance instance, UpdateManager updateManager) calls the methods which are interested in the end-event of a change operation.static voidperformOperation(ChangeableInstance instance, UpdateManager updateManager, String transactionLabel) calls the methods which are interested in the end-event of a change operation.static voidperformOperation(ChangeableTemplate template, UpdateManager updateManager) calls the methods which are interested in the end-event of a change operation.static voidperformOperation(ChangeableTemplate template, UpdateManager updateManager, String transactionLabel) Calls the methods which are interested in the end-event of a change operation.protected static voidperformOperation(ChangePrimitives processGraph, UpdateManager updateManager, String transactionLabel) Worker method to do the structural changes for both changeable templates and changeable instances.
-
Constructor Details
-
EndTransaction
public EndTransaction()
-
-
Method Details
-
performOperation
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
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.
-