Uses of Class
org.jdbi.v3.core.qualifier.QualifiedType
Package
Description
The
argument
classes translate Java types into JDBC parameters.
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 QualifiedType in org.jdbi.v3.core.argument
Modifier and TypeMethodDescriptiondefault Collection<QualifiedType<?>>
QualifiedArgumentFactory.Preparable.prePreparedTypes()
Deprecated.no longer usedModifier and TypeMethodDescriptionQualifiedArgumentFactory.build
(QualifiedType<?> type, Object value, ConfigRegistry config) Returns anArgument
for the given value if the factory supports it; empty otherwise.Arguments.findFor
(QualifiedType<?> type, Object value) Obtain an argument for given value in the given context.QualifiedArgumentFactory.Preparable.prepare
(QualifiedType<?> type, ConfigRegistry config) Arguments.prepareFor
(QualifiedType<?> type) Obtain a prepared argument function for given type in the given context. -
Uses of QualifiedType in org.jdbi.v3.core.codec
Modifier and TypeMethodDescriptionfinal Collection<QualifiedType<?>>
CodecFactory.prePreparedTypes()
Modifier and TypeMethodDescriptionCodecFactory.Builder.addCodec
(QualifiedType<?> type, Codec<?> codec) Add a codec for aQualifiedType
.CodecFactory.build
(QualifiedType<?> type, Object value, ConfigRegistry config) final Optional<ColumnMapper<?>>
CodecFactory.build
(QualifiedType<?> type, ConfigRegistry config) static CodecFactory
CodecFactory.forSingleCodec
(QualifiedType<?> type, Codec<?> codec) CodecFactory.prepare
(QualifiedType<?> type, ConfigRegistry config) ModifierConstructorDescriptionBuilder
(Function<Map<QualifiedType<?>, Codec<?>>, CodecFactory> factory) CodecFactory
(Map<QualifiedType<?>, Codec<?>> codecMap) Create a new CodecFactory. -
Uses of QualifiedType in org.jdbi.v3.core.config
Modifier and TypeMethodDescriptiondefault <T> This
Configurable.registerColumnMapper
(QualifiedType<T> type, ColumnMapper<T> mapper) Convenience method forgetConfig(ColumnMappers.class).register(type, mapper)
-
Uses of QualifiedType in org.jdbi.v3.core.mapper
Modifier and TypeMethodDescriptionOptional<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.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 givenColumnMapper
that matches a singleQualifiedType
exactly.<T> ColumnMappers
ColumnMappers.register
(QualifiedType<T> type, ColumnMapper<T> mapper) Register a column mapper for a givenQualifiedType
Column mappers may be reused byRowMapper
to map individual columns. -
Uses of QualifiedType in org.jdbi.v3.core.qualifier
Modifier and TypeMethodDescriptionApply the provided mapping function to the type, and if non-empty is returned, return anOptional<QualifiedType<?>>
with the returned type, and the same qualifiers as this instance.static <T> QualifiedType<T>
Creates aQualifiedType<T>
for aClass<T>
with no qualifiers.static QualifiedType<?>
Creates a wildcardQualifiedType<?>
for aType
with no qualifiers.static <T> QualifiedType<T>
QualifiedType.of
(GenericType<T> type) Creates aQualifiedType<T>
for aGenericType<T>
with no qualifiers.<ELEM extends AnnotatedElement & Type>
QualifiedType<?>Qualifiers.qualifiedTypeOf
(ELEM type) QualifiedType.with
(Annotation... newQualifiers) Returns a QualifiedType that has the same type as this instance, but with only the given qualifiers.final QualifiedType<T>
QualifiedType.with
(Class<? extends Annotation>... newQualifiers) Returns a QualifiedType that has the same type as this instance, but with only the given qualifiers.QualifiedType.withAnnotationClasses
(Iterable<Class<? extends Annotation>> newQualifiers) Creates a QualifiedType with the same type as this instance and new qualifiers.QualifiedType.withAnnotations
(Iterable<? extends Annotation> newQualifiers) Creates a QualifiedType with the same type as this instance and new qualifiers.Modifier and TypeMethodDescriptionQualifiedType.flatMapType
(Function<Type, Optional<Type>> mapper) Apply the provided mapping function to the type, and if non-empty is returned, return anOptional<QualifiedType<?>>
with the returned type, and the same qualifiers as this instance. -
Uses of QualifiedType in org.jdbi.v3.core.result
Modifier and TypeMethodDescriptionabstract <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.<T> BatchResultIterable<T>
BatchResultBearing.mapTo
(QualifiedType<T> type) default <T> ResultIterable<T>
ResultBearing.mapTo
(QualifiedType<T> type) Maps this result set to aResultIterable
of the given qualified element type. -
Uses of QualifiedType in org.jdbi.v3.core.statement
Modifier and TypeMethodDescriptionvoid
Binding.addNamed
(String name, Object argument, QualifiedType<?> type) Bind a named parameter for the given name.void
Binding.addPositional
(int position, Object argument, QualifiedType<?> type) Bind a positional parameter at the given index (0-based).final This
SqlStatement.bindByType
(int position, Object value, QualifiedType<?> argumentType) Bind an argument dynamically by the qualified type passed in.final This
SqlStatement.bindByType
(String name, Object value, QualifiedType<?> argumentType) Bind an argument dynamically by the type passed in.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.StatementContext.findMapperFor
(QualifiedType<T> type) Obtain a mapper for the given qualified type in this context. -
Uses of QualifiedType in org.jdbi.v3.guava.codec
Modifier and TypeMethodDescriptionstatic CodecFactory
TypeResolvingCodecFactory.forSingleCodec
(QualifiedType<?> type, Codec<?> codec) ModifierConstructorDescriptionTypeResolvingCodecFactory
(Map<QualifiedType<?>, Codec<?>> codecMap) Create a new TypeResolvingCodecFactory. -
Uses of QualifiedType in org.jdbi.v3.guice
Modifier and TypeMethodDescriptiondefault LinkedBindingBuilder<Codec<?>>
JdbiBinder.bindCodec
(QualifiedType<?> qualifiedType) Creates a new binding for aCodec
using aQualifiedType
.default LinkedBindingBuilder<ColumnMapper<?>>
JdbiBinder.bindColumnMapper
(QualifiedType<?> qualifiedType) Creates a new binding for aColumnMapper
using aQualifiedType
.