1 56 package org.objectstyle.cayenne.graph; 57 58 62 class ArcCreateOperation extends NodeDiff { 63 64 Object targetNodeId; 65 Object arcId; 66 67 public ArcCreateOperation(Object nodeId, Object targetNodeId, Object arcId) { 68 super(nodeId); 69 this.targetNodeId = targetNodeId; 70 this.arcId = arcId; 71 } 72 73 public void apply(GraphChangeHandler tracker) { 74 tracker.arcCreated(nodeId, targetNodeId, arcId); 75 } 76 77 public void undo(GraphChangeHandler tracker) { 78 tracker.arcDeleted(nodeId, targetNodeId, arcId); 79 } 80 } 81 | Popular Tags |