Package org.jdbi.v3.vavr
Class VavrTupleRowMapperFactory
java.lang.Object
org.jdbi.v3.vavr.VavrTupleRowMapperFactory
- All Implemented Interfaces:
RowMapperFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(Type type, ConfigRegistry config) Supplies a row mapper which will map result set rows to type if the factory supports it; empty otherwise.buildMapper(Class<? extends io.vavr.Tuple> tupleClass, io.vavr.collection.Array<Optional<RowMapper<?>>> colMappers) private io.vavr.TuplebuildTuple(Class<? extends io.vavr.Tuple> tupleClass, VavrTupleRowMapperFactory.MapperValueResolver r) getColumnMapper(Type type, int tupleIndex, ConfigRegistry config) getColumnMapperForDefinedColumn(Type type, String col, ConfigRegistry config) (package private) io.vavr.control.Option<String>getConfiguredColumnName(int tupleIndex, ConfigRegistry config) getRowMapper(Type type, ConfigRegistry config) (package private) io.vavr.collection.Array<io.vavr.Tuple3<Type,Integer, io.vavr.control.Option<String>>> resolveKeyValueColumns(ConfigRegistry config, io.vavr.collection.Array<io.vavr.Tuple2<Type, Integer>> tupleTypes)
-
Constructor Details
-
VavrTupleRowMapperFactory
VavrTupleRowMapperFactory()
-
-
Method Details
-
build
Description copied from interface:RowMapperFactorySupplies a row mapper which will map result set rows to type if the factory supports it; empty otherwise.- Specified by:
buildin interfaceRowMapperFactory- Parameters:
type- the target type to map toconfig- the config registry, for composition- Returns:
- a row mapper for the given type if this factory supports it;
Optional.empty()otherwise. - See Also:
-
resolveKeyValueColumns
-
buildMapper
-
buildTuple
private io.vavr.Tuple buildTuple(Class<? extends io.vavr.Tuple> tupleClass, VavrTupleRowMapperFactory.MapperValueResolver r) throws SQLException - Throws:
SQLException
-
getColumnMapper
-
getRowMapper
-
getColumnMapperForDefinedColumn
private Optional<RowMapper<?>> getColumnMapperForDefinedColumn(Type type, String col, ConfigRegistry config) -
getConfiguredColumnName
-