| java.lang.Object net.sourceforge.squirrel_sql.fw.sql.ResultSetReader
ResultSetReader | public class ResultSetReader (Code) | | |
Method Summary | |
public boolean | getColumnErrorInPreviousRow() Retrieve whether an error occured reading a column in the previous row. | public boolean | isStopExecution() | public Object[] | readRow() Read the next row from the ResultSet. | public Object[] | readRow(ColumnDisplayDefinition colDefs) Read the next row from the ResultSet for use in the ContentTab.
This is different from readRow() in that data is put into the Object array
in a form controlled by the DataType objects, and may be used for editing
the data and updating the DB. | public void | setStopExecution(boolean _stopExecution) |
getColumnErrorInPreviousRow | public boolean getColumnErrorInPreviousRow()(Code) | | Retrieve whether an error occured reading a column in the previous row.
true if error occured. |
isStopExecution | public boolean isStopExecution()(Code) | | Returns the _stopExecution. |
readRow | public Object[] readRow() throws SQLException(Code) | | Read the next row from the ResultSet. If no more rows then
null will be returned, otherwise an Object[] will be
returned where each element of the array is an object representing
the contents of the column. These objects could be of type String,
BigDecimal etc.
If an error occurs calling next() on the ResultSet
then an SQLException will be thrown, however if an error occurs
retrieving the data for a column an error msg will be placed in that
element of the array, but no exception will be thrown. To see if an
error occured retrieving column data you can call
getColumnErrorInPreviousRow after the call to readRow().
throws: SQLException - Error occured on ResultSet.next(). |
readRow | public Object[] readRow(ColumnDisplayDefinition colDefs) throws SQLException(Code) | | Read the next row from the ResultSet for use in the ContentTab.
This is different from readRow() in that data is put into the Object array
in a form controlled by the DataType objects, and may be used for editing
the data and updating the DB. If no more rows then
null will be returned, otherwise an Object[] will be
returned where each element of the array is an object representing
the contents of the column. These objects could be of type String,
BigDecimal etc.
If an error occurs calling next() on the ResultSet
then an SQLException will be thrown, however if an error occurs
retrieving the data for a column an error msg will be placed in that
element of the array, but no exception will be thrown. To see if an
error occured retrieving column data you can call
getColumnErrorInPreviousRow after the call to readRow().
throws: SQLException - Error occured on ResultSet.next(). |
setStopExecution | public void setStopExecution(boolean _stopExecution)(Code) | | Parameters: _stopExecution - The _stopExecution to set. |
|
|