Uses of Class
org.jdbi.v3.core.generic.GenericType
Package
Description
The
collector
package reduces the mapped rows of the result set
into a Stream Collector to produce the final aggregated result.
The
config
classes define a configuration registry starting from
each Jdbi
instance.mapper
s take the JDBC ResultSet and produce Java results.result
provides the streaming interface that reads rows from JDBC
and drives the mapper
and collector
processes to
produce results.
The
statement
package provides most of the Fluent API
to drive statement execution.Google Guice
integration.-
Uses of GenericType in org.jdbi.v3.core.codec
Modifier and TypeMethodDescriptionCodecFactory.Builder.addCodec
(GenericType<?> type, Codec<?> codec) Add a codec for aGenericType
. -
Uses of GenericType in org.jdbi.v3.core.collector
Modifier and TypeMethodDescriptionstatic CollectorFactory
CollectorFactory.collectorFactory
(GenericType<?> containerType, Collector<?, ?, ?> collector) Creates aCollectorFactory
from a parameterized container type and a collector. -
Uses of GenericType in org.jdbi.v3.core.config
Modifier and TypeMethodDescriptiondefault <T> This
Configurable.registerColumnMapper
(GenericType<T> type, ColumnMapper<T> mapper) Convenience method forgetConfig(ColumnMappers.class).register(type, mapper)
default <T> This
Configurable.registerRowMapper
(GenericType<T> type, RowMapper<T> mapper) Convenience method forgetConfig(RowMappers.class).register(type, mapper)
-
Uses of GenericType in org.jdbi.v3.core.mapper
Modifier and TypeMethodDescription<T> Optional
<ColumnMapper<T>> ColumnMappers.findFor
(GenericType<T> type) Obtain a column mapper for the given type.Mappers.findFor
(GenericType<T> type) Obtain a mapper for the given type.RowMappers.findFor
(GenericType<T> type) Obtain a row mapper for the given type in the given context.GenericMapMapperFactory.getMapperForValueType
(GenericType<T> valueType, ConfigRegistry config) Returns aRowMapper
for a map with the given value type.<T> ColumnMappers
ColumnMappers.register
(GenericType<T> type, ColumnMapper<T> mapper) Register a column mapper for a given explicitGenericType
Column mappers may be reused byRowMapper
to map individual columns.<T> RowMappers
RowMappers.register
(GenericType<T> type, RowMapper<T> mapper) Register a row mapper for a given type. -
Uses of GenericType in org.jdbi.v3.core.qualifier
Modifier and TypeMethodDescriptionstatic <T> QualifiedType
<T> QualifiedType.of
(GenericType<T> type) Creates aQualifiedType<T>
for aGenericType<T>
with no qualifiers. -
Uses of GenericType in org.jdbi.v3.core.result
Modifier and TypeMethodDescription<R> R
BatchResultBearing.collectInto
(GenericType<R> containerType) default <R> R
ResultBearing.collectInto
(GenericType<R> containerType) Collect the results into a container of the given generic type.default <R extends Collection<? super T>>
RResultIterable.collectInto
(GenericType<R> containerType) Collect the results into a collection 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.<T> BatchResultIterable
<T> BatchResultBearing.mapTo
(GenericType<T> type) default <T> ResultIterable
<T> ResultBearing.mapTo
(GenericType<T> type) Maps this result set to aResultIterable
of the given element type.<T> BatchResultIterable
<Map<String, T>> BatchResultBearing.mapToMap
(GenericType<T> valueType) default <T> ResultIterable
<Map<String, T>> ResultBearing.mapToMap
(GenericType<T> valueType) -
Uses of GenericType in org.jdbi.v3.core.statement
Modifier and TypeMethodDescriptionfinal This
SqlStatement.bindByType
(int position, Object value, GenericType<?> argumentType) Bind an argument dynamically by the generic type passed in.final This
SqlStatement.bindByType
(String name, Object value, GenericType<?> argumentType) Bind an argument dynamically by the generic type passed in.SqlStatement.bindPojo
(Object pojo, GenericType<?> type) Binds named parameters from object properties on the argument.SqlStatement.bindPojo
(String prefix, Object pojo, GenericType<?> type) Binds named parameters from object properties on the bean argument, with the given prefix.<T> Optional
<ColumnMapper<T>> StatementContext.findColumnMapperFor
(GenericType<T> type) Obtain a column mapper for the given type in this context.StatementContext.findMapperFor
(GenericType<T> type) Obtain a mapper for the given type in this context.StatementContext.findRowMapperFor
(GenericType<T> type) Obtain a row mapper for the given type in this context. -
Uses of GenericType in org.jdbi.v3.guice
Modifier and TypeMethodDescriptiondefault LinkedBindingBuilder
<Codec<?>> JdbiBinder.bindCodec
(GenericType<?> genericType) Creates a new binding for aCodec
using aGenericType
.default LinkedBindingBuilder
<ColumnMapper<?>> JdbiBinder.bindColumnMapper
(GenericType<?> genericType) Creates a new binding for aColumnMapper
using aGenericType
.default LinkedBindingBuilder
<RowMapper<?>> JdbiBinder.bindRowMapper
(GenericType<?> genericType) Creates a new binding for aRowMapper
using aGenericType
.