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

## org.apache.cayenne.graph
Interface GraphChangeHandler

All Known Subinterfaces:
  GraphManager

All Known Implementing Classes:
  GraphMap, ObjectStore

    public interface GraphChangeHandler

Defines callback API that can be used by object graph nodes to notify of their state changes. Graph nodes can be any objects as long as each node supports a notion of a unique id within the graph and each directional arc has a unique identifier within its source node.

Since:
  1.2
Author:
  Andrus Adamchik

Method Summary
`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.
`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.

Method Detail

### nodeIdChanged

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

  Notifies implementing object that a node was assigned a new id.

### nodeCreated

    void nodeCreated(java.lang.Object nodeId)

  Notifies implementing object that a new node was created in the graph.

### nodeRemoved

    void nodeRemoved(java.lang.Object nodeId)

  Notifies implementing object that a node was removed from the graph.

### nodePropertyChanged

    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.

### arcCreated

    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.

### arcDeleted

    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.

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

Copyright © 2001-2006 Apache.org All Rights Reserved.