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
-
Recordset()
- Create a new (empty) recordset.
-
columnExists(String)
- Determine whether a column with the passed name exists.
-
getColumnData(String)
- Retrieve all of the data contained in a column.
-
getColumnNames()
- Get the names of the columns contained within this recordset.
-
getData(int, String)
- Retrieve a single data value from a row within the Recordset.
-
getRowCount()
- Get the number of rows contained within the Recordset.
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
getRowCount
public int getRowCount()
- Get the number of rows contained within the Recordset.
- Returns:
- The number of rows contained within the Recordset.
getColumnNames
public Vector getColumnNames()
- Get the names of the columns contained within this recordset.
- Returns:
- A Vector containing the column names.
columnExists
public boolean columnExists(String strColumnName)
- Determine whether a column with the passed name exists.
- Returns:
- A boolean indicating whether the column exists.
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.
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