@FunctionalInterface public interface ResultSetAccumulator<T>
ResultSetAccumulator repeatedly combines rows
from the given ResultSet to produce a single
result. jdbi will advance the ResultSet between
each method invocation, so don't call ResultSet.next() please.| Modifier and Type | Method and Description |
|---|---|
T |
apply(T in,
ResultSet rs,
StatementContext ctx)
Extract a single row from the result set, and combine it with the
accumulator to produce a result.
|
T apply(T in, ResultSet rs, StatementContext ctx) throws SQLException
in - the previous objectrs - the ResultSet, please do not advance itctx - the statement contextSQLException - in the face of grave dangerCopyright © 2017. All rights reserved.