Package org.apache.cayenne
Class DataChannelSyncCallbackAction
- java.lang.Object
-
- org.apache.cayenne.DataChannelSyncCallbackAction
-
- All Implemented Interfaces:
GraphChangeHandler
public abstract class DataChannelSyncCallbackAction extends Object implements GraphChangeHandler
- Since:
- 3.1
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidapplyPostCommit()abstract voidapplyPreCommit()voidarcCreated(Object nodeId, Object targetNodeId, Object arcId)Notifies implementing object that a new arc was created between two nodes.voidarcDeleted(Object nodeId, Object targetNodeId, Object arcId)Notifies implementing object that an arc between two nodes was deleted.static DataChannelSyncCallbackActiongetCallbackAction(LifecycleCallbackRegistry callbackRegistry, GraphManager graphManager, GraphDiff changes, int syncType)protected abstract booleanhasListeners()voidnodeCreated(Object nodeId)Notifies implementing object that a new node was created in the graph.voidnodeIdChanged(Object nodeId, Object newId)Notifies implementing object that a node was assigned a new id.voidnodePropertyChanged(Object nodeId, String property, Object oldValue, Object newValue)Notifies implementing object that a node's property was modified.voidnodeRemoved(Object nodeId)Notifies implementing object that a node was removed from the graph.
-
-
-
Method Detail
-
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
public void nodeCreated(Object nodeId)
Description copied from interface:GraphChangeHandlerNotifies implementing object that a new node was created in the graph.- Specified by:
nodeCreatedin interfaceGraphChangeHandler
-
nodeRemoved
public void nodeRemoved(Object nodeId)
Description copied from interface:GraphChangeHandlerNotifies implementing object that a node was removed from the graph.- Specified by:
nodeRemovedin interfaceGraphChangeHandler
-
arcCreated
public void arcCreated(Object nodeId, Object targetNodeId, Object arcId)
Description copied from interface:GraphChangeHandlerNotifies implementing object that a new arc was created between two nodes.- Specified by:
arcCreatedin interfaceGraphChangeHandler
-
arcDeleted
public void arcDeleted(Object nodeId, Object targetNodeId, Object arcId)
Description copied from interface:GraphChangeHandlerNotifies implementing object that an arc between two nodes was deleted.- Specified by:
arcDeletedin interfaceGraphChangeHandler
-
nodeIdChanged
public void nodeIdChanged(Object nodeId, Object newId)
Description copied from interface:GraphChangeHandlerNotifies implementing object that a node was assigned a new id.- Specified by:
nodeIdChangedin interfaceGraphChangeHandler
-
nodePropertyChanged
public void nodePropertyChanged(Object nodeId, String property, Object oldValue, Object newValue)
Description copied from interface:GraphChangeHandlerNotifies implementing object that a node's property was modified.- Specified by:
nodePropertyChangedin interfaceGraphChangeHandler
-
-