Package org.jdbi.v3.core.array
Class CollectorColumnMapper<T,A,R>
java.lang.Object
org.jdbi.v3.core.array.CollectorColumnMapper<T,A,R>
- All Implemented Interfaces:
ColumnMapper<R>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCollectorColumnMapper(ColumnMapper<T> elementMapper, Collector<T, A, R> collector) -
Method Summary
Modifier and TypeMethodDescriptionprivate RbuildFromResultSet(Array array, StatementContext ctx) map(ResultSet r, int columnNumber, StatementContext ctx) Map the given column of the current row of the result set to an Object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.mapper.ColumnMapper
init, map
-
Field Details
-
elementMapper
-
collector
-
-
Constructor Details
-
CollectorColumnMapper
-
-
Method Details
-
map
Description copied from interface:ColumnMapperMap the given column of the current row of the result set to an Object. This method should not cause the result set to advance; allow Jdbi to do that, please.- Specified by:
mapin interfaceColumnMapper<T>- Parameters:
r- the result set being iteratedcolumnNumber- the column number to map (starts at 1)ctx- the statement context- Returns:
- the value to return for this column
- Throws:
SQLException- if anything goes wrong go ahead and let this percolate; Jdbi will handle it
-
buildFromResultSet
- Throws:
SQLException
-