Enhydra 5.1 API

com.lutris.dods.builder.generator.query
Class RDBRow

java.lang.Object
  |
  +--com.lutris.dods.builder.generator.query.RDBRow

public class RDBRow
extends java.lang.Object

An instance of RDBRow is returned by the QueryBuilder.getNextRow() method. An RDBRow contains RDBColumnValue objects corresponding to the RDBColumn objects used to construct the instance of QueryBuilder. in a particular table in the database.

Author:
Jay Gunter
See Also:
QueryBuilder

Constructor Summary
RDBRow(RDBColumnValue[] vals)
          Constructor used only by QueryBuilder, never the application developer.
 
Method Summary
 RDBColumnValue get(int i)
          Returns an RDBColumnValue object for a column in the current row.
 RDBColumnValue get(RDBColumn col)
          Returns an RDBColumnValue object for a column in the current row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBRow

public RDBRow(RDBColumnValue[] vals)
Constructor used only by QueryBuilder, never the application developer.

Parameters:
vals - the column values in the current row
See Also:
QueryBuilder
Method Detail

get

public RDBColumnValue get(int i)
                   throws InvalidRowColumnException
Returns an RDBColumnValue object for a column in the current row. Application developers are encouraged to use the RDBRow.get(RDBColumn) method instead because specifying the desired column value using RDBColumn is less error-prone than using an int offset into the columns.

Parameters:
i - the index into the row of the column value desired.
Returns:
the value of the ith column
Throws:
InvalidRowColumnException - If i is not a valid column number.
See Also:
QueryBuilder

get

public RDBColumnValue get(RDBColumn col)
                   throws InvalidRowColumnException
Returns an RDBColumnValue object for a column in the current row. This is the preferred method for use by application developers.

Parameters:
col - the column value desired.
Returns:
the value of the specified column
Throws:
InvalidRowColumnException - If col is not a valid column in the row.
See Also:
QueryBuilder

Enhydra 5.1 API