com.businessobjects.rebean.wi
Interface Recordset


public interface Recordset

The Recordset interface defines a collection of DataProvider results


Method Summary
 void first()
          Moves to the first line of the recordset.
 java.lang.Object getCellObject(int columnIndex)
          Returns an object at the specified column index.
 int getColumnCount()
          Returns the number of columns of the recordset.
 java.lang.String getColumnDataSourceObjectID(int columnIndex)
          Returns the DataSourceObject identifier at the specified index.
 java.lang.String getColumnName(int columnIndex)
          Returns the column name at the specified index.
 java.lang.Class getColumnType(int columnIndex)
          Returns the column type at the specified index.
 int getDirection()
          Returns the current direction.
 int getRow()
          Returns the current row.
 int getRowCount()
          Gets the number of rows in the Recordset.
 boolean isFirst()
          Returns a boolean which determines whether the current position is at the beginning of a recordset.
 boolean isLast()
          Returns a boolean which determines whether the current position is at the end of a recordset.
 void last()
          Moves to the last line of the recordset.
 boolean next()
          Moves to the next line of the recordset.
 boolean previous()
          Moves to the previous line of the recordset.
 void setDirection(int direction)
          Sets the current direction.
 void setRow(int rowIndex)
          Moves to the specified row.
 

Method Detail

getColumnCount

int getColumnCount()
Returns the number of columns of the recordset.


getColumnName

java.lang.String getColumnName(int columnIndex)
                               throws REException
Returns the column name at the specified index.

Throws:
REException

getColumnType

java.lang.Class getColumnType(int columnIndex)
                              throws REException
Returns the column type at the specified index.

Returns:
Double.class, String.class, or Date.class
Throws:
REException

getColumnDataSourceObjectID

java.lang.String getColumnDataSourceObjectID(int columnIndex)
Returns the DataSourceObject identifier at the specified index.

Parameters:
columnIndex - the column index
Returns:
the DataSourceObject identifier

getDirection

int getDirection()
Returns the current direction.

Returns:
FORWARD = 0, REVERSE = 1

setDirection

void setDirection(int direction)
Sets the current direction.


isFirst

boolean isFirst()
Returns a boolean which determines whether the current position is at the beginning of a recordset.


isLast

boolean isLast()
Returns a boolean which determines whether the current position is at the end of a recordset.


first

void first()
Moves to the first line of the recordset.


next

boolean next()
Moves to the next line of the recordset.


previous

boolean previous()
Moves to the previous line of the recordset.


last

void last()
Moves to the last line of the recordset.


getRow

int getRow()
Returns the current row.


setRow

void setRow(int rowIndex)
Moves to the specified row.


getCellObject

java.lang.Object getCellObject(int columnIndex)
                               throws REException
Returns an object at the specified column index.

Throws:
REException

getRowCount

int getRowCount()
Gets the number of rows in the Recordset.

Returns:
The number of rows in the Recordset.