Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Interface com.imaginary.sql.msql.ParsedRow

Implementing Classes:
TableResultsRow, RowTokenizer, ColumnResultsRow

public abstract 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/06 05:56:15 $

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

Method Summary
java.util.Iterator columns()
          Provides an iterator that lets a class run through each of the column values.
java.lang.String get(int col)
          Provides a specific column value.
boolean hasColumn(int col)
          Lets you know if the specified column exists.
void set(int col, java.lang.String val)
          Assigns a new value to the specified column.
int size()
           
 

Method Detail

columns

public java.util.Iterator columns()
                          throws java.sql.SQLException
Provides an iterator that lets a class run through each of the column values.
Returns:
the iterator of column values
Throws:
java.sql.SQLException - the columns could not be properly parsed

get

public java.lang.String get(int col)
                    throws java.sql.SQLException
Provides a specific column value.
Parameters:
col - the desired column
Returns:
the value for the specified column
Throws:
java.sql.SQLException - the columns could not be properly parsed

hasColumn

public boolean hasColumn(int col)
                 throws java.sql.SQLException
Lets you know if the specified column exists.
Parameters:
col - the desired column number
Returns:
true if the column exists, false otherwise
Throws:
java.sql.SQLException - the columns could not be properly parsed

set

public void set(int col,
                java.lang.String val)
        throws java.sql.SQLException
Assigns a new value to the specified column.
Parameters:
col - the col to be modified
val - the new value for the column
Throws:
java.sql.SQLException - the columns could not be properly parsed

size

public int size()
        throws java.sql.SQLException
Returns:
the number of columns in the row
Throws:
java.sql.SQLException - the columns could not be properly parsed

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD