|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.apache.cayenne.event.CayenneEvent
org.apache.cayenne.graph.GraphEvent
public class GraphEvent
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);
| Field Summary | |
|---|---|
protected GraphDiff |
diff
|
| Fields inherited from class org.apache.cayenne.event.CayenneEvent |
|---|
info, postedBy, subject |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
GraphEvent(Object source,
GraphDiff diff)
|
|
GraphEvent(Object source,
Object postedBy,
GraphDiff diff)
|
|
| Method Summary | |
|---|---|
GraphDiff |
getDiff()
|
| Methods inherited from class org.apache.cayenne.event.CayenneEvent |
|---|
getInfo, getPostedBy, getSubject, setPostedBy, setSubject |
| 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 |
| Field Detail |
|---|
protected GraphDiff diff
| Constructor Detail |
|---|
public GraphEvent(Object source,
GraphDiff diff)
public GraphEvent(Object source,
Object postedBy,
GraphDiff diff)
| Method Detail |
|---|
public GraphDiff getDiff()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||