Package org.jdbi.v3.vavr
Class TupleMappers
java.lang.Object
org.jdbi.v3.vavr.TupleMappers
- All Implemented Interfaces:
JdbiConfig<TupleMappers>,MapEntryConfig<TupleMappers>
public class TupleMappers
extends Object
implements JdbiConfig<TupleMappers>, MapEntryConfig<TupleMappers>
Mappers similar to
MapEntryMappers but map entries in vavr are in fact
of type Tuple2.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColumn(int tupleIndex) Returns the name for a column.Names a specific column in the mapper.setKeyColumn(String keyColumn) voidsetRegistry(ConfigRegistry registry) setValueColumn(String valueColumn)
-
Constructor Details
-
TupleMappers
public TupleMappers()
-
-
Method Details
-
getKeyColumn
- Specified by:
getKeyColumnin interfaceMapEntryConfig<TupleMappers>
-
setKeyColumn
- Specified by:
setKeyColumnin interfaceMapEntryConfig<TupleMappers>
-
getValueColumn
- Specified by:
getValueColumnin interfaceMapEntryConfig<TupleMappers>
-
setValueColumn
- Specified by:
setValueColumnin interfaceMapEntryConfig<TupleMappers>
-
setColumn
Names a specific column in the mapper.- Parameters:
tupleIndex- the 1 based index of the TupleX. as in _1, _2 etc.name- the column name to be mapped explicitly- Returns:
- Config object for chaining
-
getColumn
Returns the name for a column.- Parameters:
tupleIndex- the 1 based index of the TupleX. as in _1, _2 etc.- Returns:
- the column name to be mapped explicitly
-
createCopy
- Specified by:
createCopyin interfaceJdbiConfig<TupleMappers>
-
setRegistry
- Specified by:
setRegistryin interfaceJdbiConfig<TupleMappers>
-