|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lightstreamer.javameclient.midp.UpdateInfo
public class UpdateInfo
Provides 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. |
java.lang.String |
toString()
Returns a string representation of the update. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getItemPos()
public java.lang.String getItemName()
SimpleTableInfo was used
to describe the related table.public 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.public 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.public 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.public 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.public 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.public 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.public int getNumFields()
SimpleTableInfo was used to describe the related
table, this number might not be known at subscription time.
public boolean isSnapshot()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||