| Package | Description |
|---|---|
| org.jdbi.v3.core.argument |
The
argument classes translate Java types into JDBC parameters. |
| org.jdbi.v3.core.argument.internal | |
| org.jdbi.v3.core.config |
The
config classes define a configuration registry starting from
each Jdbi instance. |
| org.jdbi.v3.core.enums.internal | |
| org.jdbi.v3.core.internal |
Utility classes used internally by Jdbi.
|
| org.jdbi.v3.core.mapper |
mappers take the JDBC ResultSet and produce Java results. |
| org.jdbi.v3.core.mapper.reflect.internal | |
| 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.result.internal | |
| 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<Argument> |
QualifiedArgumentFactory.build(QualifiedType<?> type,
Object value,
ConfigRegistry config)
Returns an
Argument for the given value if the factory supports it; empty otherwise. |
Optional<Argument> |
Arguments.findFor(QualifiedType<?> type,
Object value)
Obtain an argument for given value in the given context.
|
| Constructor and Description |
|---|
TypedValue(QualifiedType<?> qualifiedType,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
default <T> This |
Configurable.registerColumnMapper(QualifiedType<T> type,
ColumnMapper<T> mapper)
Convenience method for
getConfig(ColumnMappers.class).register(type, mapper) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ColumnMapper<?>> |
EnumMapperFactory.build(QualifiedType<?> givenType,
ConfigRegistry config) |
| Modifier and Type | Method and Description |
|---|---|
<E extends Enum<E>> |
EnumStrategies.findStrategy(QualifiedType<E> type)
Determines which strategy is to be used for a given
QualifiedType, falling back to
reading strategy annotations on the source class and/or using the configured default. |
| Modifier and Type | Method and Description |
|---|---|
Optional<ColumnMapper<?>> |
QualifiedColumnMapperFactory.build(QualifiedType<?> type,
ConfigRegistry config)
Supplies a column mapper which will map columns to type if the factory supports it; empty
otherwise.
|
<T> Optional<ColumnMapper<T>> |
ColumnMappers.findFor(QualifiedType<T> type)
Obtain a column mapper for the given qualified type.
|
<T> Optional<RowMapper<T>> |
Mappers.findFor(QualifiedType<T> type)
Obtain a mapper for the given qualified type.
|
static <T> QualifiedColumnMapperFactory |
QualifiedColumnMapperFactory.of(QualifiedType<T> type,
ColumnMapper<T> mapper)
Create a QualifiedColumnMapperFactory from a given
ColumnMapper that matches
a single QualifiedType exactly. |
<T> ColumnMappers |
ColumnMappers.register(QualifiedType<T> type,
ColumnMapper<T> mapper)
Register a column mapper for a given
QualifiedType
Column mappers may be reused by RowMapper to map individual columns. |
| Modifier and Type | Method and Description |
|---|---|
QualifiedType<?> |
PojoProperties.PojoProperty.getQualifiedType() |
QualifiedType<?> |
ImmutablesPropertiesFactory.ImmutablesPojoProperty.getQualifiedType() |
| Modifier and Type | Method and Description |
|---|---|
QualifiedType<?> |
QualifiedType.mapType(Function<Type,Type> mapper)
Apply the provided mapping function to the type, and if non-empty is returned,
return an
Optional<QualifiedType<?>> with the returned type, and the same
qualifiers as this instance. |
static <T> QualifiedType<T> |
QualifiedType.of(Class<T> clazz)
Creates a
QualifiedType<T> for a Class<T> with no qualifiers. |
static <T> QualifiedType<T> |
QualifiedType.of(GenericType<T> type)
Creates a
QualifiedType<T> for a GenericType<T> with no qualifiers. |
static QualifiedType<?> |
QualifiedType.of(Type type)
Creates a wildcard
QualifiedType<?> for a Type with no qualifiers. |
QualifiedType<T> |
QualifiedType.with(Annotation... qualifiers)
Returns a QualifiedType that has the same type as this instance, but with only the given qualifiers.
|
QualifiedType<T> |
QualifiedType.with(Class<? extends Annotation>... qualifiers)
Returns a QualifiedType that has the same type as this instance, but with only the given qualifiers.
|
QualifiedType<T> |
QualifiedType.withAnnotationClasses(Iterable<Class<? extends Annotation>> qualifiers) |
QualifiedType<T> |
QualifiedType.withAnnotations(Iterable<? extends Annotation> qualifiers) |
| Modifier and Type | Method and Description |
|---|---|
Optional<QualifiedType<?>> |
QualifiedType.flatMapType(Function<Type,Optional<Type>> mapper)
Apply the provided mapping function to the type, and if non-empty is returned,
return an
Optional<QualifiedType<?>> with the returned type, and the same
qualifiers as this instance. |
| Modifier and Type | Method and Description |
|---|---|
abstract <T> T |
RowView.getColumn(int column,
QualifiedType<T> type)
Use a qualified column mapper to extract a type from the current ResultSet row.
|
abstract <T> T |
RowView.getColumn(String column,
QualifiedType<T> type)
Use a qualified column mapper to extract a type from the current ResultSet row.
|
default <T> ResultIterable<T> |
ResultBearing.mapTo(QualifiedType<T> type)
Maps this result set to a
ResultIterable of the given qualified element type. |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
RowViewImpl.getColumn(int column,
QualifiedType<T> type)
Use a qualified column mapper to extract a type from the current ResultSet row.
|
<T> T |
RowViewImpl.getColumn(String column,
QualifiedType<T> type)
Use a qualified column mapper to extract a type from the current ResultSet row.
|
| Modifier and Type | Method and Description |
|---|---|
This |
SqlStatement.bindByType(int position,
Object value,
QualifiedType<?> argumentType)
Bind an argument dynamically by the qualified type passed in.
|
This |
SqlStatement.bindByType(String name,
Object value,
QualifiedType<?> argumentType)
Bind an argument dynamically by the type passed in.
|
Optional<Argument> |
StatementContext.findArgumentFor(QualifiedType<?> type,
Object value)
Obtain an argument for given value in this context
|
<T> Optional<ColumnMapper<T>> |
StatementContext.findColumnMapperFor(QualifiedType<T> type)
Obtain a column mapper for the given qualified type in this context.
|
<T> Optional<RowMapper<T>> |
StatementContext.findMapperFor(QualifiedType<T> type)
Obtain a mapper for the given qualified type in this context.
|
Copyright © 2019. All rights reserved.