public interface UpdateInfo
SimpleTableInfo
was used
to describe the related table; in that case, only positional information
can be used.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getItemName()
Gets the name of the item involved in the current update, if available.
|
int |
getItemPos()
Gets positional information for the item involved in the current update.
|
java.lang.String |
getNewValue(int fieldPos)
Gets the value for a field as it is after the reception of this update.
|
java.lang.String |
getNewValue(java.lang.String fieldName)
Gets the value for a field as it is after the reception of this update.
|
int |
getNumFields()
Gets the total number of fields contained in the subscriprion schema.
|
java.lang.String |
getOldValue(int fieldPos)
Gets the value for a field as it was before the reception of this update.
|
java.lang.String |
getOldValue(java.lang.String fieldName)
Gets the value for a field as it was before the reception of this update.
|
boolean |
isSnapshot()
Asks whether the current update pertains to the item snapshot.
|
boolean |
isValueChanged(int fieldPos)
Asks whether the value for a field has changed after the reception
of this update.
|
boolean |
isValueChanged(java.lang.String fieldName)
Asks whether the value for a field has changed after the reception
of this update.
|
int getItemPos()
java.lang.String getItemName()
SimpleTableInfo
was used
to describe the related table.boolean isValueChanged(int fieldPos)
fieldPos
- the 1-based field position within the Schema of fields
in the related table.java.lang.IllegalArgumentException
- if the specified field position does
not represent a subscribed field.boolean isValueChanged(java.lang.String fieldName)
fieldName
- a field name.java.lang.IllegalArgumentException
- if the specified field name does
not represent a subscribed field; also thrown if a SimpleTableInfo
was used to describe the related table.java.lang.String getNewValue(int fieldPos)
fieldPos
- a 1-based field position within the Schema of fields
in the related table.java.lang.IllegalArgumentException
- if the specified field position does
not represent a subscribed field.java.lang.String getNewValue(java.lang.String fieldName)
fieldName
- a field name.java.lang.IllegalArgumentException
- if the specified field name does
not represent a subscribed field; also thrown if a SimpleTableInfo
was used to describe the related table.java.lang.String getOldValue(int fieldPos)
fieldPos
- a 1-based field position within the Schema of fields
in the related table.java.lang.IllegalArgumentException
- if the specified field position does
not represent a subscribed field.java.lang.String getOldValue(java.lang.String fieldName)
fieldName
- a field name.java.lang.IllegalArgumentException
- if the specified field name does
not represent a subscribed field; also thrown if a SimpleTableInfo
was used to describe the related table.int getNumFields()
SimpleTableInfo
was used to describe the related
table, this number might not be known at subscription time.boolean isSnapshot()