| Package | Description |
|---|---|
| org.jdbi.v3.core.config |
The
config classes define a configuration registry starting from
each Jdbi instance. |
| org.jdbi.v3.core.mapper |
mappers take the JDBC ResultSet and produce Java results. |
| org.jdbi.v3.core.qualifier | |
| org.jdbi.v3.core.result |
result provides the streaming interface that reads rows from JDBC
and drives the mapper and collector processes to
produce results. |
| org.jdbi.v3.core.statement |
The
statement package provides most of the Fluent API
to drive statement execution. |
| Modifier and Type | Method and Description |
|---|---|
default <T> This |
Configurable.registerColumnMapper(GenericType<T> type,
ColumnMapper<T> mapper)
Convenience method for
getConfig(ColumnMappers.class).register(type, mapper) |
default <T> This |
Configurable.registerRowMapper(GenericType<T> type,
RowMapper<T> mapper)
Convenience method for
getConfig(RowMappers.class).register(type, mapper) |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<RowMapper<T>> |
RowMappers.findFor(GenericType<T> type)
Obtain a row mapper for the given type in the given context.
|
<T> Optional<ColumnMapper<T>> |
ColumnMappers.findFor(GenericType<T> type)
Obtain a column mapper for the given type.
|
<T> Optional<RowMapper<T>> |
Mappers.findFor(GenericType<T> type)
Obtain a mapper for the given type.
|
static <T> RowMapper<Map<String,T>> |
GenericMapMapperFactory.getMapperForValueType(GenericType<T> valueType,
ConfigRegistry config) |
<T> ColumnMappers |
ColumnMappers.register(GenericType<T> type,
ColumnMapper<T> mapper)
Register a column mapper for a given explicit
GenericType
Column mappers may be reused by RowMapper to map individual columns. |
<T> RowMappers |
RowMappers.register(GenericType<T> type,
RowMapper<T> mapper)
Register a row mapper for a given type.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> QualifiedType<T> |
QualifiedType.of(GenericType<T> type)
Creates a
QualifiedType<T> for a GenericType<T> with no qualifiers. |
| Modifier and Type | Method and Description |
|---|---|
default <R> R |
ResultBearing.collectInto(GenericType<R> containerType)
Collect the results into a container of the given generic type.
|
<T> T |
RowView.getColumn(int column,
GenericType<T> type)
Use a column mapper to extract a type from the current ResultSet row.
|
<T> T |
RowView.getColumn(String column,
GenericType<T> type)
Use a column mapper to extract a type from the current ResultSet row.
|
<T> T |
RowView.getRow(GenericType<T> rowType)
Use a row mapper to extract a type from the current ResultSet row.
|
default <T> ResultIterable<T> |
ResultBearing.mapTo(GenericType<T> type)
Maps this result set to a
ResultIterable of the given element type. |
default <T> ResultIterable<Map<String,T>> |
ResultBearing.mapToMap(GenericType<T> valueType)
|
| Modifier and Type | Method and Description |
|---|---|
This |
SqlStatement.bindByType(int position,
Object value,
GenericType<?> argumentType)
Bind an argument dynamically by the generic type passed in.
|
This |
SqlStatement.bindByType(String name,
Object value,
GenericType<?> argumentType)
Bind an argument dynamically by the generic type passed in.
|
<T> Optional<ColumnMapper<T>> |
StatementContext.findColumnMapperFor(GenericType<T> type)
Obtain a column mapper for the given type in this context.
|
<T> Optional<RowMapper<T>> |
StatementContext.findMapperFor(GenericType<T> type)
Obtain a mapper for the given type in this context.
|
<T> Optional<RowMapper<T>> |
StatementContext.findRowMapperFor(GenericType<T> type)
Obtain a row mapper for the given type in this context.
|
Copyright © 2019. All rights reserved.