Package org.jdbi.v3.core.mapper
Interface MapEntryConfig<This>
- All Known Implementing Classes:
MapEntryMappers
,TupleMappers
public interface MapEntryConfig<This>
-
Method Summary
Modifier and TypeMethodDescriptionsetKeyColumn
(String keyColumn) Sets the column that map entry keys are loaded from.setValueColumn
(String valueColumn) Sets the column that map entry values are loaded from.
-
Method Details
-
getKeyColumn
String getKeyColumn() -
setKeyColumn
Sets the column that map entry keys are loaded from. If set, keys will be loaded from the given column, using theColumnMapper
registered for the key type. If unset, keys will be loaded using theRowMapper
registered for the key type, from whichever columns that row mapper uses.- Parameters:
keyColumn
- the key column name. not null- Returns:
- this config object, for call chaining
-
getValueColumn
String getValueColumn() -
setValueColumn
Sets the column that map entry values are loaded from. If set, values will be loaded from the given column, using theColumnMapper
registered for the value type. If unset, values will be loaded using theRowMapper
registered for the value type, from whichever columns that row mapper uses.- Parameters:
valueColumn
- the value column name. not null- Returns:
- this config object, for call chaining
-