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 void
apply(GraphChangeHandler handler)
Calls appropriate methods on the handler to "replay" this change.ObjectId
getArcSnapshotValue(String propertyName)
ObjectId
getCurrentArcSnapshotValue(String propertyName)
Object
getSnapshotValue(String propertyName)
boolean
isNoop()
Checks whether at least a single property is modified.void
undo(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:GraphDiff
Calls appropriate methods on the handler to revert this change.
-
-