T - The mapped type@FunctionalInterface public interface ColumnMapper<T>
| Modifier and Type | Method and Description |
|---|---|
T |
map(ResultSet r,
int columnNumber,
StatementContext ctx)
Map the given column of the current row of the result set to an Object.
|
default T |
map(ResultSet r,
String columnLabel,
StatementContext ctx)
Map the given column of the current row of the result set to an Object.
|
T map(ResultSet r, int columnNumber, StatementContext ctx) throws SQLException
r - the result set being iteratedcolumnNumber - the column number to map (starts at 1)ctx - the statement contextSQLException - if anything goes wrong go ahead and let this percolate; Jdbi will handle itdefault T map(ResultSet r, String columnLabel, StatementContext ctx) throws SQLException
r - the result set being iteratedcolumnLabel - the column label to mapctx - the statement contextSQLException - if anything goes wrong go ahead and let this percolate; Jdbi will handle itCopyright © 2017. All rights reserved.