Class allaire.dcf.recordset.Recordset
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class allaire.dcf.recordset.Recordset

java.lang.Object
   |
   +----allaire.dcf.recordset.Recordset

public class Recordset
extends Object
A class that represents tabular data as a set of rows and columns. Recordsets can be created from a variety of sources including the parameters which are passed to an applet as well as queries which are executed on remote servers.
See Also:
AppletParamRecordset, Query

Constructor Index

 o Recordset()
Create a new (empty) recordset.

Method Index

 o columnExists(String)
Determine whether a column with the passed name exists.
 o getColumnData(String)
Retrieve all of the data contained in a column.
 o getColumnNames()
Get the names of the columns contained within this recordset.
 o getData(int, String)
Retrieve a single data value from a row within the Recordset.
 o getRowCount()
Get the number of rows contained within the Recordset.

Constructors

 o Recordset
  public Recordset()
Create a new (empty) recordset. Note that you will rarely need to construct a Recordset directly. Rather, you will normally construct a sub-class of Recordset (e.g. AppletParamRecordset) or will make use of a Recordset which has been created by another object (e.g. the Query object).
See Also:
AppletParamRecordset, Query

Methods

 o getRowCount
  public int getRowCount()
Get the number of rows contained within the Recordset.
Returns:
The number of rows contained within the Recordset.
 o getColumnNames
  public Vector getColumnNames()
Get the names of the columns contained within this recordset.
Returns:
A Vector containing the column names.
 o columnExists
  public boolean columnExists(String strColumnName)
Determine whether a column with the passed name exists.
Returns:
A boolean indicating whether the column exists.
 o getData
  public String getData(int iRow,
                        String strColumnName) throws Exception
Retrieve a single data value from a row within the Recordset.
Parameters:
iRow - The row (1...n) to retrieve data from.
strColumnName - The name of the column to retrieve data from.
Returns:
A String representation of the requested data.
Throws: Exception
Throws an exception if the row index is out of range or the column name does not exist in the Recordset.
 o getColumnData
  public Vector getColumnData(String strColumnName) throws Exception
Retrieve all of the data contained in a column.
Parameters:
strColumnName - The name of the column to retrieve data from.
Returns:
Vector of strings represeting the data in the column.
Throws: Exception
Throws an exception if the column name does not exist in the Recordset.

All Packages  Class Hierarchy  This Package  Previous  Next  Index