public final class ActiveDataEventUtil extends Object
ActiveDataEvent from a raw format.| Modifier and Type | Method and Description |
|---|---|
static ActiveDataExceptionEvent |
buildActiveDataExceptionEvent(int eventId, ActiveDataExceptionEvent.SeverityType type, Throwable exceptionObject)
builds the
ActiveDataExceptionEvent. |
static ActiveDataUpdateEvent |
buildActiveDataUpdateEvent(ActiveDataEntry.ChangeType type, int changeCount, Object[] key, Object[] insertKey, String[] names, Object[] values)
builds the
ActiveDataUpdateEvent. |
public static ActiveDataUpdateEvent buildActiveDataUpdateEvent(ActiveDataEntry.ChangeType type, int changeCount, Object[] key, Object[] insertKey, String[] names, Object[] values)
ActiveDataUpdateEvent.type - the change type of the event, could be UPDATE, INSERT, DELETE, REFRESH, etcchangeCount - the changeCountkey - the key of the row (in the CollectionModel case)insertKey - the key to indicate the insert positionnames - the names of the attributes that have changedvalues - the values of the attributes that have changedpublic static ActiveDataExceptionEvent buildActiveDataExceptionEvent(int eventId, ActiveDataExceptionEvent.SeverityType type, Throwable exceptionObject)
ActiveDataExceptionEvent.eventId - the Id of the eventtype - the severity type of the eventexceptionObject - the actual exception object