|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject i3.dragos.core.services.events.DragosEvent i3.dragos.gm.core.event.DataEvent
public abstract class DataEvent
DataEvents signal the manipulation of the actual data stored in the database, namely the graph data and the underlying schema.
They are bundled in this abstract super class because they all occur inside transactions, and through this common ancestor can be handled in a uniform way.
DataListener
,
EventManager
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
DataEvent(GraphEntityClass source,
int eventType)
Constructs a new event. |
|
DataEvent(GraphEntity source,
int eventType)
Constructs a new event. |
Method Summary | |
---|---|
DataChangeSet |
getAffectedElements()
Returns a DataChangeSet of elements affected by this event. |
DataSourceURL |
getDataSourceURL()
Returns the DataSourceURL where this event occured. |
Methods inherited from class i3.dragos.core.services.events.DragosEvent |
---|
getEventClass, getEventType, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataEvent(GraphEntity source, int eventType)
source
- The source of this event.eventType
- The type of event.public DataEvent(GraphEntityClass source, int eventType)
source
- The source of this event.eventType
- The type of event.Method Detail |
---|
public DataSourceURL getDataSourceURL()
public DataChangeSet getAffectedElements()
This method is mainly used by the EventManager to determine which graph entities / graph entity classes need to be marked "dirty".
This list should only contain elements directly affected by the event. Any indirectly affected elements (subclasses, instances...) can be determined later automatically.
The default implementation in DataEvent returns a DataChangeSet that just contains the source of the event.
null
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |