Package org.apache.cayenne.access
Class ObjectStoreGraphDiff
- java.lang.Object
-
- org.apache.cayenne.access.ObjectStoreGraphDiff
-
- All Implemented Interfaces:
Serializable
,GraphDiff
public class ObjectStoreGraphDiff extends Object implements GraphDiff
A GraphDiff facade for the ObjectStore changes. Provides a way for the lower layers of the access stack to speed up processing of presorted ObjectStore diffs.- Since:
- 1.2
- 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.Map<Object,ObjectDiff>
getChangesByObjectId()
boolean
isNoop()
Returns true if this diff is simply a placeholder and does not perform any actual operation.void
undo(GraphChangeHandler handler)
Calls appropriate methods on the handler to revert this change.
-
-
-
Method Detail
-
getChangesByObjectId
public Map<Object,ObjectDiff> getChangesByObjectId()
-
isNoop
public boolean isNoop()
Description copied from interface:GraphDiff
Returns true if this diff is simply a placeholder and does not perform any actual operation.
-
apply
public void apply(GraphChangeHandler handler)
Description copied from interface:GraphDiff
Calls appropriate methods on the handler to "replay" this change.
-
undo
public void undo(GraphChangeHandler handler)
Description copied from interface:GraphDiff
Calls appropriate methods on the handler to revert this change.
-
-