Package org.apache.cayenne.graph
Class NodeDiff
java.lang.Object
org.apache.cayenne.graph.NodeDiff
- All Implemented Interfaces:
- Serializable,- Comparable<NodeDiff>,- GraphDiff
- Direct Known Subclasses:
- ArcCreateOperation,- ArcDeleteOperation,- NodeCreateOperation,- NodeDeleteOperation,- NodeIdChangeOperation,- NodePropertyChangeOperation,- ObjectDiff
An abstract superclass of operations on individual nodes and arcs in a
 digraph.
- Since:
- 1.2
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidapply(GraphChangeHandler tracker) Calls appropriate methods on the handler to "replay" this change.intImplements a Comparable interface method to compare based on diffId property.intReturns an id of this diff that can be used for various purposes, such as identifying the order of the diff in a sequence.booleanisNoop()Returns true if this diff is simply a placeholder and does not perform any actual operation.voidsetDiffId(int diffId) Sets an id of this diff that can be used for various purposes, such as identifying the order of the diff in a sequence.abstract voidundo(GraphChangeHandler tracker) Calls appropriate methods on the handler to revert this change.
- 
Field Details- 
diffIdprotected int diffId
- 
nodeId
 
- 
- 
Constructor Details- 
NodeDiff
- 
NodeDiff
 
- 
- 
Method Details- 
isNooppublic boolean isNoop()Description copied from interface:GraphDiffReturns true if this diff is simply a placeholder and does not perform any actual operation.
- 
applyDescription copied from interface:GraphDiffCalls appropriate methods on the handler to "replay" this change.
- 
undoDescription copied from interface:GraphDiffCalls appropriate methods on the handler to revert this change.
- 
getNodeId
- 
getDiffIdpublic int getDiffId()Returns an id of this diff that can be used for various purposes, such as identifying the order of the diff in a sequence.
- 
setDiffIdpublic void setDiffId(int diffId) Sets an id of this diff that can be used for various purposes, such as identifying the order of the diff in a sequence.
- 
compareToImplements a Comparable interface method to compare based on diffId property.- Specified by:
- compareToin interface- Comparable<NodeDiff>
 
 
-