org.apache.cayenne.graph
Class NodeDeleteOperation

java.lang.Object
  extended by org.apache.cayenne.graph.NodeDiff
      extended by org.apache.cayenne.graph.NodeDeleteOperation
All Implemented Interfaces:
Serializable, Comparable<NodeDiff>, GraphDiff

public class NodeDeleteOperation
extends NodeDiff

Since:
1.2
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.cayenne.graph.NodeDiff
diffId, nodeId
 
Constructor Summary
NodeDeleteOperation(Object nodeId)
           
NodeDeleteOperation(Object nodeId, int diffId)
           
 
Method Summary
 void apply(GraphChangeHandler tracker)
          Calls appropriate methods on the handler to "replay" this change.
 void undo(GraphChangeHandler tracker)
          Calls appropriate methods on the handler to revert this change.
 
Methods inherited from class org.apache.cayenne.graph.NodeDiff
compareTo, getDiffId, getNodeId, isNoop, setDiffId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeDeleteOperation

public NodeDeleteOperation(Object nodeId)

NodeDeleteOperation

public NodeDeleteOperation(Object nodeId,
                           int diffId)
Method Detail

apply

public void apply(GraphChangeHandler tracker)
Description copied from interface: GraphDiff
Calls appropriate methods on the handler to "replay" this change.

Specified by:
apply in interface GraphDiff
Specified by:
apply in class NodeDiff

undo

public void undo(GraphChangeHandler tracker)
Description copied from interface: GraphDiff
Calls appropriate methods on the handler to revert this change.

Specified by:
undo in interface GraphDiff
Specified by:
undo in class NodeDiff


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.