Package org.apache.cayenne.graph
Class NodePropertyChangeOperation
- java.lang.Object
-
- org.apache.cayenne.graph.NodeDiff
-
- org.apache.cayenne.graph.NodePropertyChangeOperation
-
- All Implemented Interfaces:
Serializable,Comparable<NodeDiff>,GraphDiff
public class NodePropertyChangeOperation extends NodeDiff
- Since:
- 1.2
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodePropertyChangeOperation(Object nodeId, String property, Object oldValue, Object newValue)NodePropertyChangeOperation(Object nodeId, String property, Object oldValue, Object newValue, int diffId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(GraphChangeHandler tracker)Calls appropriate methods on the handler to "replay" this change.StringgetProperty()booleanisNoop()Returns true if both old and new value are equal.voidundo(GraphChangeHandler tracker)Calls appropriate methods on the handler to revert this change.
-
-
-
Method Detail
-
getProperty
public String getProperty()
- Since:
- 3.0
-
isNoop
public boolean isNoop()
Returns true if both old and new value are equal.
-
apply
public void apply(GraphChangeHandler tracker)
Description copied from interface:GraphDiffCalls appropriate methods on the handler to "replay" this change.
-
-