public class DataChangedEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DELETION_MODE |
static int |
INSERTION_MODE |
static java.lang.String[] |
modeDescription |
static int |
NOT_THE_LAST_OF_A_SEQUENCE_TYPE |
static int |
SINGLE_TYPE |
static int |
SUMMARY_TYPE |
static int |
UPDATE_MODE |
Constructor and Description |
---|
DataChangedEvent(java.lang.String entityName,
int mode,
int sequenceType,
java.lang.Class<?> sender,
Identifier identifier)
Constructs a new DataChangedEvent.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEntityName()
Returns the entity name.
|
Identifier |
getIdentifier()
Returns the identifier (primary key) of the affected row if available.
|
int |
getMode()
Returns the change mode.
|
int |
getNbr()
Returns the number of the data change event.
|
java.lang.Class<?> |
getSender()
Returns the sender.
|
int |
getSequenceType()
Returns the sequence type.
|
java.lang.Thread |
getThread()
Returns the thread which created this event.
|
java.lang.String |
toString() |
public static final int INSERTION_MODE
public static final int UPDATE_MODE
public static final int DELETION_MODE
public static final java.lang.String[] modeDescription
public static final int SINGLE_TYPE
public static final int NOT_THE_LAST_OF_A_SEQUENCE_TYPE
public static final int SUMMARY_TYPE
public DataChangedEvent(java.lang.String entityName, int mode, int sequenceType, java.lang.Class<?> sender, Identifier identifier)
NOT_THE_LAST_OF_A_SEQUENCE_TYPE
entityName
- the name of the entity that was changedmod
- the data change mode which may be
INSERTION_MODE
,
UPDATE_MODE
or DELETION_MODE
sequenceType
- the sequence type which may be
SINGLE_TYPE
,
NOT_THE_LAST_OF_A_SEQUENCE_TYPE
or
SUMMARY_TYPE
sender
- the class who causes the change eventpublic int getNbr()
public java.lang.String getEntityName()
public int getMode()
INSERTION_MODE
,
UPDATE_MODE
,
DELETION_MODE
public int getSequenceType()
public java.lang.Class<?> getSender()
public Identifier getIdentifier()
public java.lang.Thread getThread()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de