public class MOTableRowEvent extends DeniableEventObject
MOTableRowEvent class describes the changes| Modifier and Type | Field and Description |
|---|---|
static int |
ADD
A row is added.
|
static int |
CHANGE
A single column of a row is changed.
|
static int |
CREATE
A row is created.
|
static int |
DELETE
A row is deleted.
|
static int |
UPDATED
This event type indicates that a complete row has been updated.
|
source| Constructor and Description |
|---|
MOTableRowEvent(Object source,
MOTable table,
MOTableRow row,
int type)
Creates a table row event based on table, row and type that cannot be
canceled by the event listener.
|
MOTableRowEvent(Object source,
MOTable table,
MOTableRow row,
int type,
boolean deniable)
Creates a table row event based on table, row and type that may be
canceled by the event listener depending on the specified flag.
|
MOTableRowEvent(Object source,
MOTable table,
MOTableRow row,
MOTableRow preparedChanges,
int type)
Creates a table row event based on table, row, prepared changes, and type
that cannot be canceled by the event listener.
|
MOTableRowEvent(Object source,
MOTable table,
MOTableRow row,
MOTableRow preparedChanges,
int type,
boolean deniable)
Creates a table row event based on table, row, prepared changes, and type.
|
| Modifier and Type | Method and Description |
|---|---|
MOTableRow |
getPreparedChanges() |
MOTableRow |
getRow() |
MOTable |
getTable() |
int |
getType() |
int |
getVetoColumn() |
int |
getVetoStatus()
Returns the veto status that revokes the row operation or zero if the
row operation is accepted by all listeners.
|
void |
setVetoColumn(int vetoColumn)
Sets the column index on whose behalf the veto is issued.
|
void |
setVetoStatus(int denyReason)
Sets the veto status that revokes the row operation.
|
String |
toString() |
getDenyReason, isDeniable, setDenyReasongetSourcepublic static final int CHANGE
public static final int CREATE
public static final int ADD
public static final int DELETE
public static final int UPDATED
public MOTableRowEvent(Object source, MOTable table, MOTableRow row, int type)
source - the event source.table - the table.row - the row associated with this event.type - the event type.public MOTableRowEvent(Object source, MOTable table, MOTableRow row, int type, boolean deniable)
source - the event source.table - the table.row - the row associated with this event.type - the event type.deniable - indicates whether the event can be canceled through setting its
denyReason member to a SNMP error status.public MOTableRowEvent(Object source, MOTable table, MOTableRow row, MOTableRow preparedChanges, int type)
source - the event source.table - the table.row - the row associated with this event.preparedChanges - a row instance containing the prepared changes for row.type - the event type.public MOTableRowEvent(Object source, MOTable table, MOTableRow row, MOTableRow preparedChanges, int type, boolean deniable)
source - the event source.table - the table.row - the row associated with this event.preparedChanges - a row instance containing the prepared changes for row.type - the event type.deniable - indicates whether the event can be canceled through setting its
denyReason member to a SNMP error status.public MOTableRow getRow()
public MOTable getTable()
public int getType()
public int getVetoStatus()
public MOTableRow getPreparedChanges()
public int getVetoColumn()
public void setVetoStatus(int denyReason)
denyReason - a SNMP error status or a sub-agent protocol specific error status.
In any case zero represents no error.public void setVetoColumn(int vetoColumn)
vetoColumn - a column index.public String toString()
toString in class EventObjectCopyright © 2014 SNMP4J.org. All Rights Reserved.