org.apache.cayenne.graph
Class GraphEvent
java.lang.Object
java.util.EventObject
org.apache.cayenne.event.CayenneEvent
org.apache.cayenne.graph.GraphEvent
- All Implemented Interfaces:
- java.io.Serializable
public class GraphEvent
- extends CayenneEvent
An event indicating a change in the object graph. A change is expressed as a GraphDiff,
so the easiest way to process the event is the following:
GraphChangeHandler handler = ..;
event.getDiff().apply(handler);
- Since:
- 1.2
- Author:
- Andrus Adamchik
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
diff
protected GraphDiff diff
GraphEvent
public GraphEvent(java.lang.Object source,
GraphDiff diff)
GraphEvent
public GraphEvent(java.lang.Object source,
java.lang.Object postedBy,
GraphDiff diff)
getDiff
public GraphDiff getDiff()
Copyright © 2001-2006 Apache.org All Rights Reserved.