public class ModificationEvent extends Object implements Serializable
Modification events come in three flavors, which is determined by the corresponding
ModificationListener.
| Constructor and Description |
|---|
ModificationEvent(Session session,
Collection<ModificationEventDetail> details)
Creates a modification event.
|
ModificationEvent(Session session,
long serial)
Creates a modification master event.
|
| Modifier and Type | Method and Description |
|---|---|
ModificationEventDetail |
getDetail(String name)
Gets the modification detail for a name.
|
Collection<ModificationEventDetail> |
getDetails()
Gets the modification details.
|
String |
getName()
Gets the modification name of the first detail.
|
long |
getSerial()
Gets the modification serial of the first detail or master.
|
Session |
getSession()
Gets the session.
|
boolean |
isMasterEvent()
Returns whether this is a master event.
Master events provide no details. |
boolean |
isMultiEvent()
Returns whether this a multi named event.
|
boolean |
isSingleEvent()
Returns whether this is a named single event.
|
String |
toString() |
public ModificationEvent(Session session, Collection<ModificationEventDetail> details)
session - the session, never nulldetails - the modification details, one for each namepublic ModificationEvent(Session session, long serial)
session - the session, never nullserial - the master modification serialpublic Session getSession()
public boolean isMasterEvent()
public boolean isSingleEvent()
public boolean isMultiEvent()
public long getSerial()
public String getName()
public Collection<ModificationEventDetail> getDetails()
public ModificationEventDetail getDetail(String name)
name - the nameTentackle - distributed, domain- and model-driven