Package org.jdbi.v3.core.mapper
package org.jdbi.v3.core.mapper
mappers take the JDBC ResultSet and produce Java results.
ColumnMappers inspect a single result column, and RowMappers inspect the
entire result row to build a compound type. Mappers are composeable and
often will feed results into the collector package to produce
the end result.
-
ClassDescriptionDeprecated.will be replaced by an opt-out plugin to give the core no hardwired behaviorStrategies for comparing case sensitive strings.ColumnGetter<T>ColumnMapper<T>Maps result set columns to objects.Factory interface used to produce column mappers.Configuration registry for
ColumnMapperFactoryinstances.Deprecated.UsegetConfig(Enums.class).setEnumStrategy(BY_NAME)instead.Deprecated.UsegetConfig(Enums.class).setEnumStrategy(BY_ORDINAL)instead.EnumMapper<E extends Enum<E>>Column mapper for Javaenumtypes.EnumMapper.EnumByNameColumnMapper<E extends Enum<E>>EnumMapper.EnumByOrdinalColumnMapper<E extends Enum<E>>Column mapper factory which knows how to map high-level essentials like String:BigDecimalStringbyte[]UUIDFactory for a RowMapper that can map resultset rows to column name/generic valueMaps.Factory that usesResultSet.getObject(int, Class)to fetch values.GetterMapper<T>A generic QualifiedColumnMapperFactory that reflectively inspects aColumnMapper<T>and maps only to columns of typeT, with type qualifiers equal to the qualifiers present on the mapper class.A generic RowMapperFactory that reflectively inspects aRowMapper<T>and maps only to columns of typeT.Column mapper factory which knows how to map JavaTime objects:InstantLocalDateLocalTimeLocalDateTimeOffsetDateTimeZonedDateTimeZoneIdHolder for a single joined row.ARowMapperimplementation to easily compose existing RowMappers.MapEntryConfig<This>MapEntryMapper<K,V> Maps rows toMap.Entry<K, V>, provided there are mappers registered for types K and V.Configuration class for MapEntryMapper.Yo dawg, I heard you like maps, so I made you a mapper that maps rows intoMap<String,Object>.Configuration class for obtaining row or column mappers.Thrown when a mapper fails to map the row to a result type.Signals that the annotated element is a nested mapped type.Thrown when you attempt to map a type thatJdbidoesn't have a registered mapper factory for.Column mapper for Java@NVarchar Stringqualified type.Column mapper factory which knows how to map Optionals:OptionalOptionalIntOptionalLongOptionalDoubleColumn mapper factory which knows how to map java primitives:booleanbytecharshortintlongfloatdoubleSignals that the annotated property signals the presence of the mapped type: reflective mappers should map a null bean if this property is null, rather than a present bean with a null property value.Factory interface used to produce column mappers.RowMapper<T>Maps result set rows to objects.Factory interface used to produce row mappers.Configuration registry forRowMapperFactoryinstances.Adapts aColumnMapperinto aRowMapperby mapping a single column.Column mapper factory which knows how to map java.sql timekeeping objects:Timestamp