public interface Folder2<AccumulatorType>
Modifier and Type | Method and Description |
---|---|
AccumulatorType |
fold(AccumulatorType accumulator,
ResultSet rs,
StatementContext ctx)
Invoked once per row in the result set from the query.
|
AccumulatorType fold(AccumulatorType accumulator, ResultSet rs, 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 actual result set from the query. It will already have been advanced to the
correct row. Callbacks should not call ResultSet.next()
ctx
- The statement context for executionQuery.fold(Object, Folder)
call.SQLException
- will be wrapped and rethrown as a CallbackFailedException
Copyright © 2018. All rights reserved.