com.finwin.util
Class WDDXRecordset

java.lang.Object
  |
  +--com.finwin.util.WDDXRecordset

public class WDDXRecordset
extends java.lang.Object
implements WDDXObject

Represents a record set object in a WDDX Document's data section.


Method Summary
 java.lang.String[] getColumnNames()
          Obtains the list of column names.
 int getRowCount()
          Obtains the number of rows in the result set.
 java.lang.String getValue(int row, int col)
          Obtains the indexed column from the row specified.
 java.lang.String getValue(int row, java.lang.String columnName)
          Obtains the named column from the row specified.
 java.lang.String toString()
          Provides the descriptive string output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getColumnNames

public java.lang.String[] getColumnNames()
Obtains the list of column names.
Returns:
The list of column names.

getRowCount

public int getRowCount()
Obtains the number of rows in the result set.
Returns:
the number of rows in the result set.

getValue

public java.lang.String getValue(int row,
                                 int col)
Obtains the indexed column from the row specified.
Parameters:
row - the row to fetch from
col - The column to fetch.
Returns:
The result cell (which may be null) or null if not found.

getValue

public java.lang.String getValue(int row,
                                 java.lang.String columnName)
Obtains the named column from the row specified.
Parameters:
row - The row to fetch from
columnName - The name of the column to fetch.
Returns:
The value of the result cell (which may be null) or null if not found.

toString

public java.lang.String toString()
Provides the descriptive string output
Overrides:
toString in class java.lang.Object