Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne
Class DataChannelSyncCallbackAction

    java.lang.Object
      org.apache.cayenne.DataChannelSyncCallbackAction

All Implemented Interfaces:
  GraphChangeHandler

    public abstract class DataChannelSyncCallbackAction

extends java.lang.Object
implements GraphChangeHandler

Since:
  3.1

Method Summary
`abstract void` | `applyPostCommit()`
`abstract void` | `applyPreCommit()`
`void` | `arcCreated(java.lang.Object nodeId, java.lang.Object targetNodeId, java.lang.Object arcId)` Notifies implementing object that a new arc was created between two nodes.
`void` | `arcDeleted(java.lang.Object nodeId, java.lang.Object targetNodeId, java.lang.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(java.lang.Object nodeId)` Notifies implementing object that a new node was created in the graph.
`void` | `nodeIdChanged(java.lang.Object nodeId, java.lang.Object newId)` Notifies implementing object that a node was assigned a new id.
`void` | `nodePropertyChanged(java.lang.Object nodeId, java.lang.String property, java.lang.Object oldValue, java.lang.Object newValue)` Notifies implementing object that a node's property was modified.
`void` | `nodeRemoved(java.lang.Object nodeId)` Notifies implementing object that a node was removed from the graph.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

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(java.lang.Object nodeId)

  Description copied from interface: `GraphChangeHandler`
  Notifies implementing object that a new node was created in the graph.

  Specified by:
    `nodeCreated` in interface `GraphChangeHandler`

### nodeRemoved

    public void nodeRemoved(java.lang.Object nodeId)

  Description copied from interface: `GraphChangeHandler`
  Notifies implementing object that a node was removed from the graph.

  Specified by:
    `nodeRemoved` in interface `GraphChangeHandler`

### arcCreated

    public void arcCreated(java.lang.Object nodeId,
                           java.lang.Object targetNodeId,
                           java.lang.Object arcId)

  Description copied from interface: `GraphChangeHandler`
  Notifies implementing object that a new arc was created between two nodes.

  Specified by:
    `arcCreated` in interface `GraphChangeHandler`

### arcDeleted

    public void arcDeleted(java.lang.Object nodeId,
                           java.lang.Object targetNodeId,
                           java.lang.Object arcId)

  Description copied from interface: `GraphChangeHandler`
  Notifies implementing object that an arc between two nodes was deleted.

  Specified by:
    `arcDeleted` in interface `GraphChangeHandler`

### nodeIdChanged

    public void nodeIdChanged(java.lang.Object nodeId,
                              java.lang.Object newId)

  Description copied from interface: `GraphChangeHandler`
  Notifies implementing object that a node was assigned a new id.

  Specified by:
    `nodeIdChanged` in interface `GraphChangeHandler`

### nodePropertyChanged

    public void nodePropertyChanged(java.lang.Object nodeId,
                                    java.lang.String property,
                                    java.lang.Object oldValue,
                                    java.lang.Object newValue)

  Description copied from interface: `GraphChangeHandler`
  Notifies implementing object that a node's property was modified.

  Specified by:
    `nodePropertyChanged` in interface `GraphChangeHandler`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2012 Apache Cayenne. All Rights Reserved.