Interface IResultSetRowProcessor
IResultSetProcessor- Author:
- Christopher Mindus
- Method SummaryModifier and TypeMethodDescription- default boolean- doContinueRowProcessing- (ResultSetProps rsProps, int rowIndex, ResultSet rs) Verifies if the row should be processed or if the processing operation should end.- default void- processRow- (RowInfo info) Method called for every row when the database transaction's result set is connected to a VirtualSpace table.- default boolean- processRow- (ResultSetProps rsProps, int rowIndex, ResultSet rs) Method called for every row when the database transaction's result set is not connected to a VirtualSpace table.
- Method Details- doContinueRowProcessingdefault boolean doContinueRowProcessing- (ResultSetProps rsProps, int rowIndex, ResultSet rs) throws SQLException Verifies if the row should be processed or if the processing operation should end.- Override this method to handle possible ending of operation. The default is to return - trueand thus all rows up to the maximum row count are processed. The maximum row count could be set to zero, i.e. unlimited, therefore all rows handled, unless this method returns- false.- This method is called once the cursor has been moved to the next row using - ResultSet.next()- trueindicating row presence.- Parameters:
- rsProps- The result set properties.
- rowIndex- The row index being processed, zero for first row.
- rs- The SQL ResultSet instance.
- Returns:
- falseto end row processing, or- trueto keep on processing (default value).
- Throws:
- SQLException- In case of SQL exceptions.
 
- processRowMethod called for every row when the database transaction's result set is not connected to a VirtualSpace table.- This method is called right after calling - doContinueRowProcessing(ResultSetProps, int, ResultSet)- Override to process, the default implementation returns - falseto stop processing.- Parameters:
- rsProps- The result set properties.
- rowIndex- The row index being processed, zero for first row.
- rs- The SQL ResultSet instance.
- Returns:
- trueto keep on processing rows, or- falseto stop (as the default implementation does unless overridden).
- Throws:
- SQLException- In case of SQL exceptions.
 
- processRowMethod called for every row when the database transaction's result set is connected to a VirtualSpace table.- This method is called right after calling - doContinueRowProcessing(ResultSetProps, int, ResultSet)- Value's.- Upon return of this method, the - Value's from the- RowInfo.vsValues- Parameters:
- info- The row information holder.
- Throws:
- SQLException- For SQL processing errors.