All Packages Class Hierarchy This Package Previous Next Index
Class com.imaginary.sql.msql.TableResultsRow
com.imaginary.sql.msql.TableResultsRow
- public class TableResultsRow
- implements ParsedRow
This class represents the odd unification of JDBC table meta-data
requirements and the format in which mSQL presents them via the
mSQL socket protocol.
Last modified $Date: 1999/07/09 23:16:43 $
- Version:
- $Revision: 1.1.2.1 $
- Author:
- George Reese (borg@imaginary.com)
-
TableResultsRow(String, ParsedRow)
- Constructs a new table results row using the specified
ParsedRow
to represent the data coming from mSQL
about the specified table.
-
columns()
- Provides an
Iterator
to help move through the columns.
-
get(int)
- Retrieves the specified column as a
String
.
-
hasColumn(int)
- Provides a quick method for determining if this row contains
the specified column number.
-
set(int, String)
- This method always throws an exception since meta data result
sets are most definitely not updatable.
-
size()
-
TableResultsRow
public TableResultsRow(String cat,
ParsedRow pr)
- Constructs a new table 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
columns
public Iterator columns() throws SQLException
- Provides an
Iterator
to help move through the columns.
- Returns:
- the columns as an
Iterator
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
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
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
size
public int size()
- Returns:
- 18
All Packages Class Hierarchy This Package Previous Next Index