com.wrq.vhi.script.api
Interface Record

All Known Subinterfaces:
ModelRecord, MutableProcedureRecord, ProcedureRecord

public interface Record

A record in a RecordSet. Column values can be accessed by either column name or a zero-based index.


Method Summary
 java.lang.String get(int index)
          Gets the value of a column by column index.
 java.lang.String get(java.lang.String column)
          Gets the value of a column by column name.
 int getCount()
          Gets the number of columns in the record.
 java.lang.String getName(int index)
          Gets the name of a column.
 java.util.List getNames()
          Get the names of the columns in the record.
 int indexOf(java.lang.String column)
          Gets the index of column.
 

Method Detail

getNames

java.util.List getNames()
Get the names of the columns in the record.

Returns:
a list of column names

getName

java.lang.String getName(int index)
                         throws java.lang.IllegalArgumentException
Gets the name of a column.

Parameters:
index - the zero-based column index
Returns:
the name of the column at the specified index
Throws:
java.lang.IllegalArgumentException - if the column index is invalid

get

java.lang.String get(java.lang.String column)
                     throws java.lang.IllegalArgumentException
Gets the value of a column by column name.

Parameters:
column - the column name
Returns:
the column value
Throws:
java.lang.IllegalArgumentException - if the column name is invalid

getCount

int getCount()
Gets the number of columns in the record.

Returns:
the number of columns

indexOf

int indexOf(java.lang.String column)
Gets the index of column.

Parameters:
column - the column name
Returns:
the column index

get

java.lang.String get(int index)
                     throws java.lang.IllegalArgumentException
Gets the value of a column by column index.

Parameters:
index - zero-based the column index
Returns:
the column value
Throws:
java.lang.IllegalArgumentException - if the column index is invalid