All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.imaginary.sql.msql.ColumnResultsRow

com.imaginary.sql.msql.ColumnResultsRow

public class ColumnResultsRow
implements ParsedRow
This class represents the odd unification of JDBC column meta-data requirements and the format in which mSQL presents them via the mSQL socket protocol.
Last modified $Date: 1999/07/09 23:16:24 $

Version:
$Revision: 1.1.2.1 $
Author:
George Reese (borg@imaginary.com)

Constructor Index

 o ColumnResultsRow(String, ParsedRow)
Constructs a new column results row using the specified ParsedRow to represent the data coming from mSQL about the specified table.

Method Index

 o columns()
Provides an Iterator to help move through the columns.
 o get(int)
Retrieves the specified column as a String.
 o hasColumn(int)
Provides a quick method for determining if this row contains the specified column number.
 o set(int, String)
This method always throws an exception since meta data result sets are most definitely not updatable.
 o size()

Constructors

 o ColumnResultsRow
 public ColumnResultsRow(String cat,
                         ParsedRow pr)
Constructs a new column results row using the specified ParsedRow to represent the data coming from mSQL about the specified table.

Parameters:
cat - the name of the catalog for the meta data
pr - the row of data from mSQL

Methods

 o columns
 public Iterator columns() throws SQLException
Provides an Iterator to help move through the columns.

Returns:
the columns as an Iterator
 o get
 public String get(int col) throws SQLException
Retrieves the specified column as a String.

Parameters:
col - the desired column
Returns:
the value of the column as a String
 o hasColumn
 public boolean hasColumn(int col)
Provides a quick method for determining if this row contains the specified column number.

Parameters:
col - the desired column
Returns:
true if the column exists, false otherwise
 o set
 public void set(int col,
                 String val) throws SQLException
This method always throws an exception since meta data result sets are most definitely not updatable.

Parameters:
col - unused
val - unused
 o size
 public int size()
Returns:
18

All Packages  Class Hierarchy  This Package  Previous  Next  Index