public method O2GOffersTable.getNextRowByColumnValues
Brief
Gets the next row from O2GOffersTable
based on any of the column values.
Declaration | ||||
|
Parameters | |
columnName |
The name of a column in the Offers table. For example, |
columnValues |
The values of the column specified by the |
iterator |
The table iterator. |
Details
If the row is not found, the method returns null
.
Note: The returned row contains the current column values. The values are not automatically updated. To monitor changes, use IO2GTableListener.onChanged
.
The row interface is thread-safe. The returned row can be used in different threads without synchronization.
Example
Get instruments from the Offers table with specified PointSize [hide]
public void enumerateOffers() O2GOffersTable offers = (O2GOffersTable)mTblMgr.getTable(O2GTableType.OFFERS); O2GTableIterator iterator = new O2GTableIterator(); Object[] columnValues = new Object[] { 0.1, 0.01, 0.001 }; O2GOfferTableRow offer = offers.getNextRowByColumnValues("PointSize", columnValues, iterator); while (offer != null) { System.out.println(String.format("OfferID=%s, Instrument=%s, Ask=%s, Bid=%s", offer.getOfferID(), offer.getInstrument(), offer.getAsk(), offer.getBid())); offer = offers.getNextRowByColumnValues("PointSize", columnValues, iterator); } }
Declared in O2GOffersTable