Package org.apache.cayenne
Class DataChannelSyncCallbackAction
java.lang.Object
org.apache.cayenne.DataChannelSyncCallbackAction
- All Implemented Interfaces:
GraphChangeHandler
- Since:
- 3.1
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
abstract void
void
arcCreated
(Object nodeId, Object targetNodeId, ArcId arcId) Notifies implementing object that a new arc was created between two nodes.void
arcDeleted
(Object nodeId, Object targetNodeId, ArcId arcId) Notifies implementing object that an arc between two nodes was deleted.getCallbackAction
(LifecycleCallbackRegistry callbackRegistry, GraphManager graphManager, GraphDiff changes, int syncType) protected abstract boolean
void
nodeCreated
(Object nodeId) Notifies implementing object that a new node was created in the graph.void
nodeIdChanged
(Object nodeId, Object newId) Notifies implementing object that a node was assigned a new id.void
nodePropertyChanged
(Object nodeId, String property, Object oldValue, Object newValue) Notifies implementing object that a node's property was modified.void
nodeRemoved
(Object nodeId) Notifies implementing object that a node was removed from the graph.
-
Method Details
-
getCallbackAction
public static DataChannelSyncCallbackAction getCallbackAction(LifecycleCallbackRegistry callbackRegistry, GraphManager graphManager, GraphDiff changes, int syncType) -
hasListeners
protected abstract boolean hasListeners() -
applyPreCommit
public abstract void applyPreCommit() -
applyPostCommit
public abstract void applyPostCommit() -
nodeCreated
Description copied from interface:GraphChangeHandler
Notifies implementing object that a new node was created in the graph.- Specified by:
nodeCreated
in interfaceGraphChangeHandler
-
nodeRemoved
Description copied from interface:GraphChangeHandler
Notifies implementing object that a node was removed from the graph.- Specified by:
nodeRemoved
in interfaceGraphChangeHandler
-
arcCreated
Description copied from interface:GraphChangeHandler
Notifies implementing object that a new arc was created between two nodes.- Specified by:
arcCreated
in interfaceGraphChangeHandler
-
arcDeleted
Description copied from interface:GraphChangeHandler
Notifies implementing object that an arc between two nodes was deleted.- Specified by:
arcDeleted
in interfaceGraphChangeHandler
-
nodeIdChanged
Description copied from interface:GraphChangeHandler
Notifies implementing object that a node was assigned a new id.- Specified by:
nodeIdChanged
in interfaceGraphChangeHandler
-
nodePropertyChanged
Description copied from interface:GraphChangeHandler
Notifies implementing object that a node's property was modified.- Specified by:
nodePropertyChanged
in interfaceGraphChangeHandler
-