com.wrq.vhi.script.api
Interface ModelRecordSet

All Superinterfaces:
RecordSet
All Known Subinterfaces:
RecordSetScreen

public interface ModelRecordSet
extends RecordSet

The result of fetching records from a recordset in a model. Contains zero or more ModelRecord objects, one for each record returned by the fetch.


Method Summary
 ModelRecord getModelRecord(int row)
          Gets a record by row number.
 
Methods inherited from interface com.wrq.vhi.script.api.RecordSet
getColumnNames, getCount, getRecord, toXMLString
 

Method Detail

getModelRecord

ModelRecord getModelRecord(int row)
                           throws java.lang.IllegalArgumentException
Gets a record by row number. This is equivalent to calling RecordSet.getRecord(int) except that no cast is required to obtain the ModelRecord interface.

Parameters:
row - the zero-based row number
Returns:
the record for the specified row
Throws:
java.lang.IllegalArgumentException - if the row index is invalid