|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UpdateInfo
Implemented by Lightstreamer to provide information about an update
for a subscribed item.
The new and previous values for the subscribed fields are reported.
If the table subscription configuration enables the "COMMAND logic",
then the old field values are referred to the same key.
Both names and positional information can be used to identify
the specific fields, unless a SimpleTableInfo
was used
to describe the related table; in that case, only positional information
can be used.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |