Package org.pentaho.commons.connection
Interface IPentahoResultSet
-
- All Superinterfaces:
IDisposable
- All Known Implementing Classes:
MemoryResultSet
public interface IPentahoResultSet extends IDisposable
Defines a set of result data, typically with definable rows and columns. Supports multi-dimensional data sets.- Author:
- wseyler
- See Also:
IDisposable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbeforeFirst()Moves the cursor to before the first rowvoidclose()Close the queryvoidcloseConnection()Close the connection used by this result setintgetColumnCount()Returns the rowCount from the result set.Object[]getDataColumn(int column)Get a column of data.Object[]getDataRow(int row)Get a specified row of dataIPentahoMetaDatagetMetaData()intgetRowCount()Get a rowCount from the resultset.ObjectgetValueAt(int row, int column)Returns the value of the specified row and the specified column from within the resultset.booleanisScrollable()Indicates whether the result set is scrollableIPentahoResultSetmemoryCopy()Returns a memory copy of the resultsObject[]next()-
Methods inherited from interface org.pentaho.commons.connection.IDisposable
dispose
-
-
-
-
Method Detail
-
getMetaData
IPentahoMetaData getMetaData()
- Returns:
- the Metadata object that resulted from the most recent query.
-
next
Object[] next()
- Returns:
- an object array that represents the data in each column of the next row.
-
beforeFirst
void beforeFirst()
Moves the cursor to before the first row
-
close
void close()
Close the query
-
closeConnection
void closeConnection()
Close the connection used by this result set
-
isScrollable
boolean isScrollable()
Indicates whether the result set is scrollable- Returns:
- true if the resultset can be scrolled through.
-
getValueAt
Object getValueAt(int row, int column)
Returns the value of the specified row and the specified column from within the resultset.- Parameters:
row- the row index.column- the column index.- Returns:
- the value.
-
getRowCount
int getRowCount()
Get a rowCount from the resultset.- Returns:
- the row count.
-
getColumnCount
int getColumnCount()
Returns the rowCount from the result set.- Returns:
-
memoryCopy
IPentahoResultSet memoryCopy()
Returns a memory copy of the results- Returns:
- memory copy of the results
-
getDataColumn
Object[] getDataColumn(int column)
Get a column of data.- Parameters:
column- the zero based column number- Returns:
- array represeting a column of data. 0th element is the first column
-
getDataRow
Object[] getDataRow(int row)
Get a specified row of data- Parameters:
row- the zero base row number- Returns:
- array representing a row of data. 0th element is the top row
-
-