com.northgateis.reality.realsql
Interface RealRowParser

All Known Implementing Classes:
RealRowTokenizer

public abstract interface RealRowParser

Interface for parsing a row returned from the Reality SQL Server.

See Also:
ResultSet, RealRowTokenizer

Method Summary
 java.util.Iterator columns()
          Returns an iterator that enables a class to run through each of the column values.
 boolean exists(int index)
          Checks if the specified column exists.
 java.lang.String getValue(int index)
          Returns a specific column value.
 int size()
          Gets the total number of columns in the row.
 

Method Detail

columns

public java.util.Iterator columns()
 throws RealSQLException
Returns an iterator that enables a class to run through each of the column values.

Returns:
the iterator of column values
Throws:
RealSQLException - if an error occurs during parsing.


getValue

public java.lang.String getValue(int index)
 throws RealSQLException
Returns a specific column value.

Parameters:
index - the desired column index.
Returns:
the value for the specified column
Throws:
RealSQLException - if an error occurs during parsing.


exists

public boolean exists(int index)
 throws RealSQLException
Checks if the specified column exists.

Parameters:
index - the desired column index.
Returns:
true if the column index exists, false otherwise
Throws:
RealSQLException - if an error occurs during parsing.


size

public int size()
 throws RealSQLException
Gets the total number of columns in the row.

Returns:
the number of columns in the row
Throws:
RealSQLExceptionif - an error occurs during parsing.