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.
-
Interface Summary Interface Description ColumnGetter<T> ColumnMapper<T> Maps result set columns to objects.ColumnMapperFactory Factory interface used to produce column mappers.MapEntryConfig<This> QualifiedColumnMapperFactory Factory interface used to produce column mappers.RowMapper<T> Maps result set rows to objects.RowMapperFactory Factory interface used to produce row mappers.RowViewMapper<T> -
Class Summary Class Description BoxedMapperFactory Column mapper factory which knows how to map boxed java primitives:BooleanByteCharacterShortIntegerLongFloatDoubleBuiltInMapperFactory Deprecated. will be replaced by an opt-out plugin to give the core no hardwired behaviorColumnMappers Configuration registry forColumnMapperFactoryinstances.EnumByNameMapperFactory Deprecated. UsegetConfig(Enums.class).setEnumStrategy(BY_NAME)instead.EnumByOrdinalMapperFactory Deprecated. UsegetConfig(Enums.class).setEnumStrategy(BY_ORDINAL)instead.EnumMapper<E extends java.lang.Enum<E>> Column mapper for Javaenumtypes.EnumMapper.EnumByNameColumnMapper<E extends java.lang.Enum<E>> EnumMapper.EnumByOrdinalColumnMapper<E extends java.lang.Enum<E>> EssentialsMapperFactory Column mapper factory which knows how to map high-level essentials like String:BigDecimalStringbyte[]UUIDGenericMapMapperFactory Factory for a RowMapper that can map resultset rows to column name/generic valueMaps.GenericMapMapperFactory.GenericMapMapper<T> GetObjectColumnMapperFactory Factory that usesResultSet.getObject(int, Class)to fetch values.GetObjectColumnMapperFactory.GetObjectColumnMapper<T> GetterMapper<T> InferredColumnMapperFactory 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.InferredRowMapperFactory A generic RowMapperFactory that reflectively inspects aRowMapper<T>and maps only to columns of typeT.InternetMapperFactory Column mapper factory which knows how to map networking related objects:InetAddressURLURIJavaTimeMapperFactory Column mapper factory which knows how to map JavaTime objects:InstantLocalDateLocalTimeLocalDateTimeOffsetDateTimeZonedDateTimeZoneIdJoinRow Holder for a single joined row.JoinRowMapper ARowMapperimplementation to easily compose existing RowMappers.MapEntryMapper<K,V> Maps rows toMap.Entry<K, V>, provided there are mappers registered for types K and V.MapEntryMappers Configuration class for MapEntryMapper.MapMapper Yo dawg, I heard you like maps, so I made you a mapper that maps rows intoMap<String,Object>.MapMappers Mappers Configuration class for obtaining row or column mappers.NVarcharMapper Column mapper for Java@NVarchar Stringqualified type.OptionalMapperFactory Column mapper factory which knows how to map Optionals:OptionalOptionalIntOptionalLongOptionalDoublePrimitiveMapperFactory Column mapper factory which knows how to map java primitives:booleanbytecharshortintlongfloatdoubleRowMappers Configuration registry forRowMapperFactoryinstances.SingleColumnMapper<T> Adapts aColumnMapperinto aRowMapperby mapping a single column.SqlTimeMapperFactory Column mapper factory which knows how to map java.sql timekeeping objects:Timestamp -
Enum Summary Enum Description CaseStrategy Strategies for comparing case sensitive strings. -
Exception Summary Exception Description MappingException Thrown when a mapper fails to map the row to a result type.NoSuchMapperException Thrown when you attempt to map a type thatJdbidoesn't have a registered mapper factory for. -
Annotation Types Summary Annotation Type Description Nested Signals that the annotated element is a nested mapped type.PropagateNull Signals 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.