mappers take the JDBC ResultSet and produce Java results.See: Description
| Interface | Description |
|---|---|
| ColumnMapper<T> |
Maps result set columns to objects.
|
| ColumnMapperFactory |
Factory interface used to produce column mappers.
|
| RowMapper<T> |
Maps result set rows to objects.
|
| RowMapperFactory |
Factory interface used to produce row mappers.
|
| Class | Description |
|---|---|
| BuiltInMapperFactory |
Column mapper factory which knows how to map JDBC-recognized types, along with some other well-known types
from the JDK.
|
| ColumnMappers |
Configuration registry for
ColumnMapperFactory instances. |
| EnumByNameMapperFactory |
Produces enum column mappers, which map enums from varchar columns using
Enum.valueOf(Class, String). |
| EnumByOrdinalMapperFactory |
Produces enum column mappers, which map enums from numeric columns according to ordinal value.
|
| EnumMapper<E extends Enum<E>> |
Column mapper for Java
enum types. |
| JoinRow |
Holder for a single joined row.
|
| JoinRowMapper |
A
RowMapper implementation to easily compose existing
RowMappers. |
| MapEntryMapper<K,V> |
Maps rows to
Map.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 into
Map<String,Object>. |
| RowMappers |
Configuration registry for
RowMapperFactory instances. |
| SingleColumnMapper<T> |
Adapts a
ColumnMapper into a RowMapper by mapping a single column. |
| 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 that
Jdbi doesn't have a
registered mapper factory for. |
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.
Copyright © 2017. All rights reserved.