com.ibatis.sqlmap.client.event

Interface RowHandler

public interface RowHandler

Event handler for row by row processing.

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()));
 
Method Summary
voidhandleRow(Object valueObject)
Handles a single row of a result set.

Method Detail

handleRow

public void handleRow(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.

Parameters: valueObject The object representing a single row from the query.

See Also: SqlMapSession

Copyright © 2011. All Rights Reserved.