public abstract class DataChannelSyncCallbackAction extends Object implements GraphChangeHandler
| Modifier and Type | Method and Description |
|---|---|
abstract void |
applyPostCommit() |
abstract void |
applyPreCommit() |
void |
arcCreated(Object nodeId,
Object targetNodeId,
Object arcId)
Notifies implementing object that a new arc was created between two nodes.
|
void |
arcDeleted(Object nodeId,
Object targetNodeId,
Object arcId)
Notifies implementing object that an arc between two nodes was deleted.
|
static DataChannelSyncCallbackAction |
getCallbackAction(LifecycleCallbackRegistry callbackRegistry,
GraphManager graphManager,
GraphDiff changes,
int syncType) |
protected abstract boolean |
hasListeners() |
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.
|
public static DataChannelSyncCallbackAction getCallbackAction(LifecycleCallbackRegistry callbackRegistry, GraphManager graphManager, GraphDiff changes, int syncType)
protected abstract boolean hasListeners()
public abstract void applyPreCommit()
public abstract void applyPostCommit()
public void nodeCreated(Object nodeId)
GraphChangeHandlernodeCreated in interface GraphChangeHandlerpublic void nodeRemoved(Object nodeId)
GraphChangeHandlernodeRemoved in interface GraphChangeHandlerpublic void arcCreated(Object nodeId, Object targetNodeId, Object arcId)
GraphChangeHandlerarcCreated in interface GraphChangeHandlerpublic void arcDeleted(Object nodeId, Object targetNodeId, Object arcId)
GraphChangeHandlerarcDeleted in interface GraphChangeHandlerpublic void nodeIdChanged(Object nodeId, Object newId)
GraphChangeHandlernodeIdChanged in interface GraphChangeHandlerpublic void nodePropertyChanged(Object nodeId, String property, Object oldValue, Object newValue)
GraphChangeHandlernodePropertyChanged in interface GraphChangeHandlerCopyright © 2001–2023 Apache Cayenne. All rights reserved.