Package 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:
Serializable
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
- See Also:
-
Field Summary
Fields inherited from class org.apache.cayenne.event.CayenneEvent
info, postedBy, subject
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionGraphEvent
(Object source, Object postedBy, GraphDiff diff) GraphEvent
(Object source, GraphDiff diff) -
Method Summary
Methods inherited from class org.apache.cayenne.event.CayenneEvent
getInfo, getPostedBy, getSubject, setPostedBy, setSubject
Methods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
diff
-
-
Constructor Details
-
GraphEvent
-
GraphEvent
-
-
Method Details
-
getDiff
-