Package org.apache.cayenne.access
Class ObjectDiff
- java.lang.Object
-
- org.apache.cayenne.graph.NodeDiff
-
- org.apache.cayenne.access.ObjectDiff
-
- All Implemented Interfaces:
Serializable,Comparable<NodeDiff>,GraphDiff
public class ObjectDiff extends NodeDiff
A dynamic GraphDiff that represents a delta between object simple properties at diff creation time and its current state.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(GraphChangeHandler handler)Calls appropriate methods on the handler to "replay" this change.ObjectIdgetArcSnapshotValue(String propertyName)ObjectIdgetCurrentArcSnapshotValue(String propertyName)ObjectgetSnapshotValue(String propertyName)booleanisNoop()Checks whether at least a single property is modified.voidundo(GraphChangeHandler handler)Calls appropriate methods on the handler to revert this change.
-
-
-
Method Detail
-
getCurrentArcSnapshotValue
public ObjectId getCurrentArcSnapshotValue(String propertyName)
- Since:
- 4.2
-
isNoop
public boolean isNoop()
Checks whether at least a single property is modified.
-
undo
public void undo(GraphChangeHandler handler)
Description copied from interface:GraphDiffCalls appropriate methods on the handler to revert this change.
-
-