public final class GlobalChangeEvent extends RecordChangeEvent
RecordChangeEvent.Type
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
entity
DMO entity name
|
private long |
eventID
Globally unique identifier
|
private java.io.Serializable |
primaryKey
DMO primary key ID
|
Constructor and Description |
---|
GlobalChangeEvent(long eventID,
java.lang.String entity,
Persistable dmo)
Constructor used for an insert event.
|
GlobalChangeEvent(long eventID,
java.lang.String entity,
Persistable dmo,
java.lang.String[] properties)
Constructor used for an update event.
|
GlobalChangeEvent(long eventID,
java.lang.String entity,
java.io.Serializable primaryKey)
Constructor used for a delete event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEntity()
Get the DMO type associated with this event.
|
long |
getEventID()
Get the globally unique identifier for this event.
|
java.io.Serializable |
getPrimaryKey()
Get the primary key ID of the DMO affected by this event.
|
private static java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> |
makePropMap(java.lang.String[] props)
Generate a map of property names to nulls.
|
getDMO, getProperties, getSnapshot, getSource, isBulkDelete, isDelete, isFullBulkDelete, isIndexedPropertyChangeOnly, isInsert, isUpdate
private final long eventID
private final java.lang.String entity
private final java.io.Serializable primaryKey
public GlobalChangeEvent(long eventID, java.lang.String entity, Persistable dmo, java.lang.String[] properties)
eventID
- Globally unique event identifier.entity
- DMO entity name.dmo
- Post-modification state of the updated DMO.properties
- A list of the names of properties which were modified.public GlobalChangeEvent(long eventID, java.lang.String entity, Persistable dmo)
eventID
- Globally unique event identifier.entity
- DMO entity name.dmo
- The inserted DMO.public GlobalChangeEvent(long eventID, java.lang.String entity, java.io.Serializable primaryKey)
eventID
- Globally unique event identifier.entity
- DMO entity name.primaryKey
- Primary key ID of the deleted record.private static java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> makePropMap(java.lang.String[] props)
properties
(property name to array index values)
parameter required by the superclass' constructor.props
- Property names for which to generate a map.null
.public long getEventID()
public java.lang.String getEntity()
getEntity
in class RecordChangeEvent
public java.io.Serializable getPrimaryKey()