All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.imaginary.sql.msql.ParsedRow

public interface ParsedRow
Uniform interface for any object representing a row parsed from the database. Other classes in the package concretely define actual rows by implementing this interface.
Last modified $Date: 1999/07/09 23:16:40 $

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

Method Index

 o columns()
Provides an iterator that lets a class run through each of the column values.
 o get(int)
Provides a specific column value.
 o hasColumn(int)
Lets you know if the specified column exists.
 o set(int, String)
Assigns a new value to the specified column.
 o size()

Methods

 o columns
 public abstract Iterator columns() throws SQLException
Provides an iterator that lets a class run through each of the column values.

Returns:
the iterator of column values
 o get
 public abstract String get(int col) throws SQLException
Provides a specific column value.

Parameters:
col - the desired column
Returns:
the value for the specified column
 o hasColumn
 public abstract boolean hasColumn(int col) throws SQLException
Lets you know if the specified column exists.

Parameters:
col - the desired column number
Returns:
true if the column exists, false otherwise
 o set
 public abstract void set(int col,
                          String val) throws SQLException
Assigns a new value to the specified column.

Parameters:
col - the col to be modified
val - the new value for the column
 o size
 public abstract int size() throws SQLException
Returns:
the number of columns in the row

All Packages  Class Hierarchy  This Package  Previous  Next  Index