public class TableModificationEvent
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
AFTER |
Event that occurs after the action
|
static int |
AFTER_DELETE |
Event for after a delete.
|
static int |
AFTER_INSERT |
Event for after an insert.
|
static int |
AFTER_UPDATE |
Event for after an update.
|
static int |
BEFORE |
Event that occurs before the action
|
static int |
BEFORE_DELETE |
Event for before a delete.
|
static int |
BEFORE_INSERT |
Event for before an insert.
|
static int |
BEFORE_UPDATE |
Event for before an update.
|
static int |
DELETE |
Event type for delete action.
|
static int |
INSERT |
Event type for insert action.
|
static int |
UPDATE |
Event type for update action.
|
Modifier and Type | Method | Description |
---|---|---|
DatabaseConnection |
getDatabaseConnection() |
Returns the DatabaseConnection that this event fired in.
|
RowData |
getRowData() |
Returns the RowData object that represents the change that is being
made to the table either by an INSERT or UPDATE.
|
int |
getRowIndex() |
Returns the index of the row in the table that was affected by this
event or -1 if event type is INSERT.
|
TableName |
getTableName() |
Returns the name of the table of this modification.
|
int |
getType() |
Returns the event type.
|
boolean |
isAfter() |
Returns true if this is a AFTER event.
|
boolean |
isBefore() |
Returns true if this is a BEFORE event.
|
boolean |
isDelete() |
Returns true if this is an DELETE event.
|
boolean |
isInsert() |
Returns true if this is an INSERT event.
|
boolean |
isUpdate() |
Returns true if this is an UPDATE event.
|
boolean |
listenedBy(int listen_t) |
Returns true if the given listener type should be notified of this type
of table modification event.
|
public static final int BEFORE
public static final int AFTER
public static final int INSERT
public static final int UPDATE
public static final int DELETE
public static final int BEFORE_INSERT
public static final int AFTER_INSERT
public static final int BEFORE_UPDATE
public static final int AFTER_UPDATE
public static final int BEFORE_DELETE
public static final int AFTER_DELETE
public DatabaseConnection getDatabaseConnection()
public int getType()
public boolean isBefore()
public boolean isAfter()
public boolean isInsert()
public boolean isUpdate()
public boolean isDelete()
public TableName getTableName()
public int getRowIndex()
public RowData getRowData()
public boolean listenedBy(int listen_t)
Copyright © 2018. All rights reserved.