org.apache.manifoldcf.core.database
Class RSet

java.lang.Object
  extended by org.apache.manifoldcf.core.database.RSet
All Implemented Interfaces:
IResultSet

public class RSet
extends java.lang.Object
implements IResultSet


Field Summary
static java.lang.String _rcsid
           
protected  java.util.ArrayList _rows
           
 
Constructor Summary
RSet()
           
 
Method Summary
 void addRow(IResultRow m)
          Add a row of data to the resultset.
 IResultRow getRow(int rowNumber)
          Get a specific row in the resultset.
 int getRowCount()
          Get the number of rows in this resultset.
 IResultRow[] getRows()
          Get an array of all the rows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values

_rows

protected java.util.ArrayList _rows
Constructor Detail

RSet

public RSet()
Method Detail

addRow

public void addRow(IResultRow m)
Add a row of data to the resultset.


getRow

public IResultRow getRow(int rowNumber)
Get a specific row in the resultset.

Specified by:
getRow in interface IResultSet
Parameters:
rowNumber - is the number of the row.
Returns:
the immutable row description, or null if there is no such row.

getRowCount

public int getRowCount()
Get the number of rows in this resultset.

Specified by:
getRowCount in interface IResultSet
Returns:
the number of rows the resultset contains.

getRows

public IResultRow[] getRows()
Get an array of all the rows. This method is NOT preferred because it requires a new array object to be constructed.

Specified by:
getRows in interface IResultSet
Returns:
the array.