org.sqlproc.engine
Interface SqlQuery.SqlQueryRowProcessor

Enclosing interface:
SqlQuery

@Beta
public static interface SqlQuery.SqlQueryRowProcessor

A low level callback to be used with the cursor based queries.

processRow(java.lang.Object, int) will be called for each database row that is read, and should return false when you want to stop processing. It is utilized by SqlQuery.query(SqlRuntimeContext, SqlQueryRowProcessor).

For more info please see the Tutorials.

Author:
Vladimir Hudec

Method Summary
 boolean processRow(Object resultRow, int rownum)
          This method will be called once for database row.
 

Method Detail

processRow

boolean processRow(Object resultRow,
                   int rownum)
                   throws SqlRuntimeException
This method will be called once for database row.

Parameters:
resultRow - The object representation of the database row.
rownum - The database row number starting from 1.
Returns:
True to continue processing, false to stop.
Throws:
SqlRuntimeException


Copyright © 2015. All rights reserved.