Uses of Interface
org.jdbi.v3.core.mapper.RowMapper
Package
Description
The
config
classes define a configuration registry starting from
each Jdbi
instance.mapper
s take the JDBC ResultSet and produce Java results.mapper.reflect
provides RowMappers that reflectively
construct result types using techniques like constructor injection
or JavaBeans setters.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.Internal classes for the Guice integration, do not use directly outside Jdbi.
The
jpa
plugin provides minimal support for discovering JPA
annotations like Column
.-
Uses of RowMapper in org.jdbi.v3.core.config
Modifier and TypeMethodDescriptiondefault This
Configurable.registerRowMapper
(Type type, RowMapper<?> mapper) Convenience method forgetConfig(RowMappers.class).register(type, mapper)
default <T> This
Configurable.registerRowMapper
(GenericType<T> type, RowMapper<T> mapper) Convenience method forgetConfig(RowMappers.class).register(type, mapper)
default This
Configurable.registerRowMapper
(RowMapper<?> mapper) Convenience method forgetConfig(RowMappers.class).register(mapper)
-
Uses of RowMapper in org.jdbi.v3.core.mapper
Modifier and TypeInterfaceDescriptioninterface
Modifier and TypeClassDescriptionclass
ARowMapper
implementation to easily compose existing RowMappers.class
MapEntryMapper<K,
V> Maps rows toMap.Entry<K, V>
, provided there are mappers registered for types K and V.class
Yo dawg, I heard you like maps, so I made you a mapper that maps rows intoMap<String,Object>
.class
Adapts aColumnMapper
into aRowMapper
by mapping a single column.Modifier and TypeMethodDescriptionGenericMapMapperFactory.getMapperForValueType
(Class<T> valueType, ConfigRegistry config) GenericMapMapperFactory.getMapperForValueType
(GenericType<T> valueType, ConfigRegistry config) JoinRowMapper.specialize
(ResultSet r, StatementContext ctx) MapEntryMapper.specialize
(ResultSet rs, StatementContext ctx) MapMapper.specialize
(ResultSet rs, StatementContext ctx) RowMapper.specialize
(ResultSet rs, StatementContext ctx) Returns a specialized row mapper, optimized for the given result set.RowViewMapper.specialize
(ResultSet rs, StatementContext ctx) Modifier and TypeMethodDescriptionGenericMapMapperFactory.build
(Type mapType, ConfigRegistry config) RowMapperFactory.build
(Type type, ConfigRegistry config) Supplies a row mapper which will map result set rows to type if the factory supports it; empty otherwise.Obtain a mapper for the given type.Obtain a mapper for the given type.Mappers.findFor
(GenericType<T> type) Obtain a mapper for the given type.Mappers.findFor
(QualifiedType<T> type) Obtain a mapper for the given qualified type.Obtain a row mapper for the given type in the given context.Obtain a row mapper for the given type in the given context.RowMappers.findFor
(GenericType<T> type) Obtain a row mapper for the given type in the given context.RowMappers.getInferenceInterceptors()
Returns theJdbiInterceptionChainHolder
for the RowMapper inference.Modifier and TypeMethodDescriptionstatic RowMapperFactory
Register a row mapper for a given type.<T> RowMappers
RowMappers.register
(GenericType<T> type, RowMapper<T> mapper) Register a row mapper for a given type.Register a row mapper which will have its parameterized type inspected to determine what it maps to. -
Uses of RowMapper in org.jdbi.v3.core.mapper.reflect
Modifier and TypeClassDescriptionclass
BeanMapper<T>
A row mapper which maps the columns in a statement into a JavaBean.class
A row mapper which maps the fields in a result set into a constructor.class
FieldMapper<T>
A row mapper which maps the columns in a statement into an object, using reflection to set fields on the object.Modifier and TypeMethodDescriptionstatic <T> RowMapper<T>
Returns a mapper for the given bean classstatic <T> RowMapper<T>
Returns a mapper for the given bean classstatic <T> RowMapper<T>
Return a ConstructorMapper for the given type.static <T> RowMapper<T>
Return a ConstructorMapper for the given type and prefix.static <T> RowMapper<T>
ConstructorMapper.of
(Constructor<T> constructor) Return a ConstructorMapper using the given constructorstatic <T> RowMapper<T>
ConstructorMapper.of
(Constructor<T> constructor, String prefix) Instantiate a ConstructorMapper using the given constructor and prefixstatic <T> RowMapper<T>
Returns a mapper for the given bean classstatic <T> RowMapper<T>
Returns a mapper for the given bean classConstructorMapper.specialize
(ResultSet rs, StatementContext ctx) FieldMapper.specialize
(ResultSet rs, StatementContext ctx) -
Uses of RowMapper in org.jdbi.v3.core.mapper.reflect.internal
Modifier and TypeClassDescriptionclass
PojoMapper<T>
This class is the future home of BeanMapper functionality. -
Uses of RowMapper in org.jdbi.v3.core.result
Modifier and TypeMethodDescriptiondefault <T> ResultIterable<T>
Maps this result set to aResultIterable
, using the given row mapper.static <T> ResultIterable<T>
ResultIterable.of
(Supplier<ResultSet> supplier, RowMapper<T> mapper, StatementContext ctx) Returns a ResultIterable backed by the given result set supplier, mapper, and context. -
Uses of RowMapper in org.jdbi.v3.core.statement
Modifier and TypeMethodDescriptionStatementContext.findMapperFor
(Class<T> type) Obtain a mapper for the given type in this context.StatementContext.findMapperFor
(Type type) Obtain a mapper for the given type in this context.StatementContext.findMapperFor
(GenericType<T> type) Obtain a mapper for the given type in this context.StatementContext.findMapperFor
(QualifiedType<T> type) Obtain a mapper for the given qualified type in this context.StatementContext.findRowMapperFor
(Class<T> type) Obtain a row mapper for the given type in this context.StatementContext.findRowMapperFor
(Type type) Obtain a row 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 RowMapper in org.jdbi.v3.guice
Modifier and TypeMethodDescriptiondefault LinkedBindingBuilder<RowMapper<?>>
JdbiBinder.bindRowMapper()
Creates a new binding for aRowMapper
.default LinkedBindingBuilder<RowMapper<?>>
JdbiBinder.bindRowMapper
(Type type) default LinkedBindingBuilder<RowMapper<?>>
JdbiBinder.bindRowMapper
(GenericType<?> genericType) Creates a new binding for aRowMapper
using aGenericType
. -
Uses of RowMapper in org.jdbi.v3.guice.internal
Modifier and TypeMethodDescriptionInternalJdbiBinder.bindRowMapper()
InternalJdbiBinder.bindRowMapper
(Type type) InternalJdbiBinder.bindRowMapper
(GenericType<?> genericType) -
Uses of RowMapper in org.jdbi.v3.jpa
Modifier and TypeClassDescriptionclass
JpaMapper<C>
Row mapper for a JPA-annotated type as a result.