Class RSet
- java.lang.Object
-
- org.apache.manifoldcf.core.database.RSet
-
- All Implemented Interfaces:
IResultSet
public class RSet extends java.lang.Object implements IResultSet
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
_rcsid
protected java.util.List<IResultRow>
rows
-
Constructor Summary
Constructors Constructor Description RSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
rows
protected java.util.List<IResultRow> rows
-
-
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 interfaceIResultSet
- 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 interfaceIResultSet
- 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 interfaceIResultSet
- Returns:
- the array.
-
-