| Package | Description |
|---|---|
| org.jdbi.v3.core.array |
The
array package binds Java arrays and collections to SQL arrays, and
handles mapping array result types back to Java arrays and collections. |
| 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.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 |
|---|---|
Optional<ColumnMapper<?>> |
SqlArrayMapperFactory.build(Type type,
ConfigRegistry config) |
| Modifier and Type | Method and Description |
|---|---|
default This |
Configurable.registerColumnMapper(ColumnMapper<?> mapper)
Convenience method for
getConfig(ColumnMappers.class).register(mapper) |
default This |
Configurable.registerColumnMapper(Type type,
ColumnMapper<?> mapper)
Convenience method for
getConfig(ColumnMappers.class).register(type, mapper) |
| Modifier and Type | Class and Description |
|---|---|
class |
EnumMapper<E extends Enum<E>>
Column mapper for Java
enum types. |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Enum<E>> |
EnumMapper.byName(Class<E> type) |
static <E extends Enum<E>> |
EnumMapper.byOrdinal(Class<E> type) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ColumnMapper<?>> |
ColumnMapperFactory.build(Type type,
ConfigRegistry config)
Supplies a column mapper which will map columns to type if the factory supports it; empty otherwise.
|
Optional<ColumnMapper<?>> |
EnumByOrdinalMapperFactory.build(Type type,
ConfigRegistry config) |
Optional<ColumnMapper<?>> |
EnumByNameMapperFactory.build(Type type,
ConfigRegistry config) |
Optional<ColumnMapper<?>> |
BuiltInMapperFactory.build(Type type,
ConfigRegistry config) |
<T> Optional<ColumnMapper<T>> |
ColumnMappers.findFor(Class<T> type)
Obtain a column mapper for the given type.
|
<T> Optional<ColumnMapper<T>> |
ColumnMappers.findFor(GenericType<T> type)
Obtain a column mapper for the given type.
|
Optional<ColumnMapper<?>> |
ColumnMappers.findFor(Type type)
Obtain a column mapper for the given type.
|
| Modifier and Type | Method and Description |
|---|---|
static ColumnMapperFactory |
ColumnMapperFactory.of(Type type,
ColumnMapper<?> mapper)
Create a ColumnMapperFactory from a given
ColumnMapper that
matches a single Type exactly. |
ColumnMappers |
ColumnMappers.register(ColumnMapper<?> mapper)
Register a column mapper which will have its parameterized type inspected to determine what it maps to.
|
ColumnMappers |
ColumnMappers.register(Type type,
ColumnMapper<?> mapper)
|
| Constructor and Description |
|---|
SingleColumnMapper(ColumnMapper<T> mapper)
Constructs a row mapper which maps the first column.
|
SingleColumnMapper(ColumnMapper<T> mapper,
int columnNumber)
Constructs a row mapper which maps the given column number.
|
SingleColumnMapper(ColumnMapper<T> mapper,
String columnLabel)
Constructs a row mapper which maps the column with the given label.
|
| Modifier and Type | Method and Description |
|---|---|
default <T> ResultIterable<T> |
ResultBearing.map(ColumnMapper<T> mapper)
Maps this result set to a
ResultIterable, using the given column mapper. |
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<ColumnMapper<T>> |
StatementContext.findColumnMapperFor(Class<T> type)
Obtain a column mapper for the given type in this context.
|
<T> Optional<ColumnMapper<T>> |
StatementContext.findColumnMapperFor(GenericType<T> type)
Obtain a column mapper for the given type in this context.
|
Optional<ColumnMapper<?>> |
StatementContext.findColumnMapperFor(Type type)
Obtain a column mapper for the given type in this context.
|
Copyright © 2017. All rights reserved.