Package org.sqlproc.engine
Interface SqlRowProcessor<E>
-
@Beta public interface SqlRowProcessor<E>
A callback to be used with the cursor based queries.processRow(E, int)
will be called for each database row that is read, and should returnfalse
when you want to stop processing. It is utilized bySqlQueryEngine.query(SqlSession, Class, Object, SqlControl, SqlRowProcessor)
.For more info please see the Tutorials.
- Author:
- Vladimir Hudec
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
processRow(E result, int rownum)
This method will be called once for database row.
-
-
-
Method Detail
-
processRow
boolean processRow(E result, int rownum) throws SqlRuntimeException
This method will be called once for database row.- Parameters:
result
- The result class instance. 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
-
-