public interface Folder3<AccumulatorType,MappedType>
Modifier and Type | Method and Description |
---|---|
AccumulatorType |
fold(AccumulatorType accumulator,
MappedType rs,
FoldController control,
StatementContext ctx)
Invoked once per row in the result set from the query.
|
AccumulatorType fold(AccumulatorType accumulator, MappedType rs, FoldController control, StatementContext ctx) throws SQLException
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 executionQuery.fold(Object, Folder)
call.SQLException
- will be wrapped and rethrown as a CallbackFailedException
Copyright © 2018. All rights reserved.