org.skife.jdbi.v2
Interface Folder3<AccumulatorType,MappedType>


public interface Folder3<AccumulatorType,MappedType>


Method Summary
 AccumulatorType fold(AccumulatorType accumulator, MappedType rs, FoldController control, StatementContext ctx)
          Invoked once per row in the result set from the query.
 

Method Detail

fold

AccumulatorType fold(AccumulatorType accumulator,
                     MappedType rs,
                     FoldController control,
                     StatementContext ctx)
                     throws SQLException
Invoked once per row in the result set from the query.

Parameters:
accumulator - The initial value passed to Query.fold(Object, Folder) for the first call, the return value from the previous call thereafter.
rs - The mapped result set row to fold across
ctx - The statement context for execution
Returns:
A value which will be passed to the next invocation of this function. The final invocation will be returned from the Query.fold(Object, Folder) call.
Throws:
SQLException - will be wrapped and rethrown as a CallbackFailedException


Copyright © 2013. All Rights Reserved.