Uses of Interface
org.jdbi.v3.core.mapper.ColumnMapper
Package
Description
The
array
package binds Java arrays and collections to SQL arrays, and
handles mapping array result types back to Java arrays and collections.
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.joda-time
provides improved date and time types to pre-Java 8 applications.
The
postgres
plugin provides improved support for
java.time
, hstore
, uuid
, and enum
types when configured with a recent Postgres database server.-
Uses of ColumnMapper in org.jdbi.v3.core.array
Modifier and TypeMethodDescriptionOptional<ColumnMapper<?>>
SqlArrayMapperFactory.build
(Type type, ConfigRegistry config) -
Uses of ColumnMapper in org.jdbi.v3.core.codec
Modifier and TypeMethodDescriptiondefault ColumnMapper<T>
Codec.getColumnMapper()
Returns aColumnMapper
that creates an attribute value from a database column.default ColumnMapper<T>
Codec.getColumnMapper
(ConfigRegistry configRegistry) Returns aColumnMapper
that creates an attribute value from a database column.Modifier and TypeMethodDescriptionfinal Optional<ColumnMapper<?>>
CodecFactory.build
(QualifiedType<?> type, ConfigRegistry config) -
Uses of ColumnMapper in org.jdbi.v3.core.config
Modifier and TypeMethodDescriptiondefault This
Configurable.registerColumnMapper
(Type type, ColumnMapper<?> mapper) Convenience method forgetConfig(ColumnMappers.class).register(type, mapper)
default <T> This
Configurable.registerColumnMapper
(GenericType<T> type, ColumnMapper<T> mapper) Convenience method forgetConfig(ColumnMappers.class).register(type, mapper)
default This
Configurable.registerColumnMapper
(ColumnMapper<?> mapper) Convenience method forgetConfig(ColumnMappers.class).register(mapper)
default <T> This
Configurable.registerColumnMapper
(QualifiedType<T> type, ColumnMapper<T> mapper) Convenience method forgetConfig(ColumnMappers.class).register(type, mapper)
-
Uses of ColumnMapper in org.jdbi.v3.core.mapper
Modifier and TypeClassDescriptionclass
EnumMapper<E extends Enum<E>>
Column mapper for Javaenum
types.Modifier and TypeMethodDescriptionstatic <E extends Enum<E>>
ColumnMapper<E>Map database string values to enum names.static <E extends Enum<E>>
ColumnMapper<E>Map database integer values to enum ordinal values.static <U> ColumnMapper<U>
ColumnMapper.getDefaultColumnMapper()
Modifier and TypeMethodDescriptionOptional<ColumnMapper<?>>
BuiltInMapperFactory.build
(Type type, ConfigRegistry config) Deprecated.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<?>>
EnumByNameMapperFactory.build
(Type type, ConfigRegistry config) Deprecated.Optional<ColumnMapper<?>>
EnumByOrdinalMapperFactory.build
(Type type, ConfigRegistry config) Deprecated.Optional<ColumnMapper<?>>
GetObjectColumnMapperFactory.build
(Type type, ConfigRegistry config) 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>>
Obtain a column mapper for the given type.Optional<ColumnMapper<?>>
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.<T> Optional<ColumnMapper<T>>
ColumnMappers.findFor
(QualifiedType<T> type) Obtain a column mapper for the given qualified type.ColumnMappers.getInferenceInterceptors()
Returns theJdbiInterceptionChainHolder
for the ColumnMapper inference.Modifier and TypeMethodDescriptionstatic ColumnMapperFactory
ColumnMapperFactory.of
(Type type, ColumnMapper<?> mapper) Create a ColumnMapperFactory from a givenColumnMapper
that matches a single Type exactly.static <T> QualifiedColumnMapperFactory
QualifiedColumnMapperFactory.of
(QualifiedType<T> type, ColumnMapper<T> mapper) Create a QualifiedColumnMapperFactory from a givenColumnMapper
that matches a singleQualifiedType
exactly.ColumnMappers.register
(Type type, ColumnMapper<?> mapper) <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.ColumnMappers.register
(ColumnMapper<?> mapper) Register a column mapper which will have its parameterized type inspected to determine what it maps to.<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.ModifierConstructorDescriptionSingleColumnMapper
(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. -
Uses of ColumnMapper in org.jdbi.v3.core.result
Modifier and TypeMethodDescription<T> BatchResultIterable<T>
BatchResultBearing.map
(ColumnMapper<T> mapper) default <T> ResultIterable<T>
ResultBearing.map
(ColumnMapper<T> mapper) Maps this result set to aResultIterable
, using the given column mapper. -
Uses of ColumnMapper in org.jdbi.v3.core.statement
Modifier and TypeMethodDescription<T> Optional<ColumnMapper<T>>
StatementContext.findColumnMapperFor
(Class<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.<T> Optional<ColumnMapper<T>>
StatementContext.findColumnMapperFor
(GenericType<T> type) Obtain a column mapper for the given type in this context.<T> Optional<ColumnMapper<T>>
StatementContext.findColumnMapperFor
(QualifiedType<T> type) Obtain a column mapper for the given qualified type in this context. -
Uses of ColumnMapper in org.jdbi.v3.guice
Modifier and TypeMethodDescriptiondefault LinkedBindingBuilder<ColumnMapper<?>>
JdbiBinder.bindColumnMapper()
Creates a new binding for aColumnMapper
.default LinkedBindingBuilder<ColumnMapper<?>>
JdbiBinder.bindColumnMapper
(Type type) Creates a new binding for aColumnMapper
using aType
.default LinkedBindingBuilder<ColumnMapper<?>>
JdbiBinder.bindColumnMapper
(GenericType<?> genericType) Creates a new binding for aColumnMapper
using aGenericType
.default LinkedBindingBuilder<ColumnMapper<?>>
JdbiBinder.bindColumnMapper
(QualifiedType<?> qualifiedType) Creates a new binding for aColumnMapper
using aQualifiedType
. -
Uses of ColumnMapper in org.jdbi.v3.jodatime2
-
Uses of ColumnMapper in org.jdbi.v3.postgres
Modifier and TypeClassDescriptionclass
A column mapper which maps Postgres' hstore type to Java'sMap
.Modifier and TypeMethodDescriptionOptional<ColumnMapper<?>>
DurationColumnMapperFactory.build
(Type type, ConfigRegistry config) Optional<ColumnMapper<?>>
PeriodColumnMapperFactory.build
(Type type, ConfigRegistry config)