org.skife.jdbi.v2
Interface Folder3<AccumulatorType,MappedType>
public interface Folder3<AccumulatorType,MappedType>
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 acrossctx
- 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.