org.skife.jdbi
Interface RowCallback


public interface RowCallback

Callback interface for use with queries. Each row will be passed into the eachRow method in the order returned by the query.


Method Summary
 void eachRow(Handle handle, java.util.Map row)
          Will be called for each row returned by a query.
 

Method Detail

eachRow

void eachRow(Handle handle,
             java.util.Map row)
             throws java.lang.Exception
Will be called for each row returned by a query. Throwing and exception will abort the result set traversal, rollback the transaction, and cause the calling method to throw an exception wrapping the exception thrown by this method.

Parameters:
handle - database handle query was issued to
row - an individual row from the resultset
Throws:
java.lang.Exception