Interface IResultSetRowProcessor
- public interface IResultSetRowProcessorInterface used by a Result Set Row Processor. The interface should be implemented by a class that is allocated by the- IResultSetProcessor- Author:
- Christopher Mindus
 
- Method Summary- All Methods Instance Methods Default Methods - Modifier and Type - Method - Description - default boolean- doContinueRowProcessing(ResultSetProps rsProps, int rowIndex, java.sql.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, java.sql.ResultSet rs)Method called for every row when the database transaction's result set is not connected to a VirtualSpace table.
 
- Method Detail- doContinueRowProcessing- default boolean doContinueRowProcessing(ResultSetProps rsProps, int rowIndex, java.sql.ResultSet rs) throws java.sql.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:
- java.sql.SQLException- In case of SQL exceptions.
 
 - processRow- default boolean processRow(ResultSetProps rsProps, int rowIndex, java.sql.ResultSet rs) throws java.sql.SQLException Method 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:
- java.sql.SQLException- In case of SQL exceptions.
 
 - processRow- default void processRow(RowInfo info) throws java.sql.SQLException Method 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:
- java.sql.SQLException- For SQL processing errors.