Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.sqlmap.client.event
Interface RowHandler  view RowHandler download RowHandler.java


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
 void handleRow(java.lang.Object valueObject)
          Handles a single row of a result set.
 

Method Detail

handleRow

public 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.