The RowHandler interface is used by the SqlMapSession.queryWithRowHandler() method.
Generally a RowHandler implementation will perform some row-by-row processing logic
in cases where there are too many rows to efficiently load into memory.
Example:
sqlMap.queryWithRowHandler ("findAllEmployees", null, new MyRowHandler()));
方法摘要
void
handleRow(java.lang.Object valueObject)
Handles a single row of a result set.
方法详细信息
handleRow
void handleRow(java.lang.Object valueObject)
Handles a single row of a result set.
This method will be called for each row in a result set. For each row the result map
will be applied to build the value object, which is then passed in as the valueObject
parameter.
参数:
valueObject - The object representing a single row from the query.