Interface IResultSetRowProcessor
public interface IResultSetRowProcessorInterface used by a Result Set Row Processor. The interface should be implemented by a class that is allocated by theand enables controlling the end of row processing as well as to be a part of the processing of each row, perhaps with a VirtualSpace table.IResultSetProcessor- Author:
 - Christopher Mindus
 
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default booleandoContinueRowProcessing(ResultSetProps rsProps, int rowIndex, java.sql.ResultSet rs)Verifies if the row should be processed or if the processing operation should end.default voidprocessRow(RowInfo info)Method called for every row when the database transaction's result set is connected to a VirtualSpace table.default booleanprocessRow(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 returnsfalse.This method is called once the cursor has been moved to the next row using
and that method returnedResultSet.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, ortrueto 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
in order to have similar processing as when a VirtualSpace table is present.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, orfalseto 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
, but after the SQL values for the columns are retrieved and converted to the appropriate VirtualSpacedoContinueRowProcessing(ResultSetProps, int, ResultSet)Value's.Upon return of this method, the
Value's from thewill populate the row to overwrite or insert into the VirtualSpace table.RowInfo.vsValues- Parameters:
 info- The row information holder.- Throws:
 java.sql.SQLException- For SQL processing errors.