public class DataStoreEvent extends EventObject
DataStore
, and used to notify all subscribed
DataStoreListener
of the change.DataStore
,
DataStoreListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
DataStoreEvent.Type
Available event types.
|
Modifier and Type | Field and Description |
---|---|
private Map<DataStoreEvent.Type,DBIDs> |
objects
The objects that were changed in the
DataStore mapped by the type
of change. |
private static long |
serialVersionUID
Serialization ID since Java EventObjects are expected to be serializable.
|
source
Constructor and Description |
---|
DataStoreEvent(Object source,
Map<DataStoreEvent.Type,DBIDs> objects)
Used to create an event when objects have been updated in, inserted into,
and / or removed from the specified
DataStore . |
Modifier and Type | Method and Description |
---|---|
Map<DataStoreEvent.Type,DBIDs> |
getObjects()
Returns the objects that have been changed and the type of change.
|
Set<DataStoreEvent.Type> |
getTypes()
Returns the types of change this event consists of.
|
getSource, toString
private static final long serialVersionUID
private final Map<DataStoreEvent.Type,DBIDs> objects
DataStore
mapped by the type
of change.public DataStoreEvent(Object source, Map<DataStoreEvent.Type,DBIDs> objects)
DataStore
.source
- the object responsible for generating the eventobjects
- the objects that have been changed mapped by the type of
changeDataStoreEvent.Type.INSERT
,
DataStoreEvent.Type.DELETE
,
DataStoreEvent.Type.UPDATE
public Set<DataStoreEvent.Type> getTypes()
DataStoreEvent.Type.INSERT
,
DataStoreEvent.Type.DELETE
,
DataStoreEvent.Type.UPDATE
public Map<DataStoreEvent.Type,DBIDs> getObjects()