|
SAP J2EE Engine Version 6.40 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Represents tabular data, which is usually generated by executing a query in
the EIS. A RecordSet object maintains a cursor pointing to its current row
of data. Initially the cursor is positioned before the first row. The
next() method moves the cursor to the next row, and because it
returns false when there are no more rows in the ResultSet object, it can
be used in a while loop to iterate through the record set.
| Field Summary | |
static int |
RECORD_TYPE_FORWARD_ONLY
Indicates that the record set cursor can only iterate with next() |
static int |
RECORD_TYPE_SCROLLABLE
Indicates that the record set cursor can handle all iterating operations |
| Method Summary | |
boolean |
absolute(int row)
Moves the cursor to the given row number in this RecordSet object. |
void |
afterLast()
Moves the cursor to the end of this RecordSet object, just after the last row. |
void |
beforeFirst()
Moves the cursor to the front of this RecordSet object, just before the first row. |
void |
deleteRow()
Deletes the current row from this ResultSet object. |
boolean |
first()
Moves the cursor to the first row in this ResultSet object. |
java.util.Enumeration |
getRecords()
Return an Enueration of IRecord objects for going over this RecordSet's records. |
void |
insertRow()
Inserts the contents of the insert row into this RecordSet object. |
boolean |
isAfterLast()
Indicates whether the cursor is after the last row in this RecordSet object. |
boolean |
isBeforeFirst()
Indicates whether the cursor is before the first row in this RecordSet object. |
boolean |
isFirst()
Indicates whether the cursor is on the first row of this RecordSet object. |
boolean |
isLast()
Indicates whether the cursor is on the last row of this RecordSet object. |
boolean |
last()
Moves the cursor to the last row in this RecordSet object. |
void |
moveToCurrentRow()
Moves the cursor to the insert row. |
void |
moveToInsertRow()
Moves the cursor to the remembered cursor position, usually the current row. |
boolean |
next()
Moves the cursor down one row from its current position. |
boolean |
previous()
Moves the cursor to the previous row in this RecordSet object. |
void |
refreshRow()
Refreshes the current row with its most recent value in the database. |
boolean |
relative(int rows)
Moves the cursor a relative number of rows, either positive or negative. |
int |
retrieveRow()
Retrieves the current row number. |
int |
retrieveType()
Return the type of the record set FORWARD_ONLY indicates that the only possible iterating operation is next() SCROLLABLE indicates that other iterating operations can be used |
void |
updateRow()
Updates the underlying database with the new contents of the current row of this RecordSet object. |
| Methods inherited from interface com.sapportals.connector.execution.structures.IAbstractRecord |
close, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getChar, getChar, getColumnIndex, getColumnName, getDate, getDate, getDouble, getDouble, getEnumeration, getEnumeration, getFloat, getFloat, getInt, getInt, getLong, getLong, getNumber, getNumber, getObject, getObject, getShort, getShort, getString, getString, getTime, getTime, retrieveMetaData, setBigDecimal, setBigDecimal, setBoolean, setBoolean, setByte, setByte, setBytes, setBytes, setChar, setChar, setDate, setDate, setDouble, setDouble, setEnumeration, setEnumeration, setFloat, setFloat, setInt, setInt, setLong, setLong, setNull, setNull, setNumber, setNumber, setObject, setObject, setShort, setShort, setString, setString, setTime, setTime |
| Field Detail |
public static final int RECORD_TYPE_FORWARD_ONLY
next()public static final int RECORD_TYPE_SCROLLABLE
| Method Detail |
public boolean first()
throws ConnectorException
true if the cursor is on a valid row.
false if there are no rows in the record setConnectorException -
public boolean isFirst()
throws ConnectorException
true if the cursor is on the first row. false otherwiseConnectorException -
public boolean last()
throws ConnectorException
ConnectorException -
public boolean isLast()
throws ConnectorException
true if the cursor is on the last row. false otherwiseConnectorException -
public int retrieveRow()
throws ConnectorException
ConnectorException -
public boolean next()
throws ConnectorException
ConnectorException -
public boolean previous()
throws ConnectorException
ConnectorException -
public boolean absolute(int row)
throws ConnectorException
ConnectorException -
public boolean relative(int rows)
throws ConnectorException
ConnectorException -
public void beforeFirst()
throws ConnectorException
ConnectorException -
public void afterLast()
throws ConnectorException
ConnectorException -
public boolean isBeforeFirst()
throws ConnectorException
ConnectorException -
public boolean isAfterLast()
throws ConnectorException
ConnectorException -
public void insertRow()
throws ConnectorException
ConnectorException -
public void updateRow()
throws ConnectorException
ConnectorException -
public void deleteRow()
throws ConnectorException
ConnectorException -
public void refreshRow()
throws ConnectorException
ConnectorException -
public void moveToInsertRow()
throws ConnectorException
ConnectorException -
public void moveToCurrentRow()
throws ConnectorException
ConnectorException -
public java.util.Enumeration getRecords()
throws ConnectorException
public int retrieveType()
throws ConnectorException
|
SAP J2EE Engine Version 6.40 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||