Package org.jdbi.v3.core.mapper
Interface MapEntryConfig<This>
-
- All Known Implementing Classes:
MapEntryMappers,TupleMappers
public interface MapEntryConfig<This>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetKeyColumn()java.lang.StringgetValueColumn()ThissetKeyColumn(java.lang.String keyColumn)Sets the column that map entry keys are loaded from.ThissetValueColumn(java.lang.String valueColumn)Sets the column that map entry values are loaded from.
-
-
-
Method Detail
-
getKeyColumn
java.lang.String getKeyColumn()
-
setKeyColumn
This setKeyColumn(java.lang.String keyColumn)
Sets the column that map entry keys are loaded from. If set, keys will be loaded from the given column, using theColumnMapperregistered for the key type. If unset, keys will be loaded using theRowMapperregistered 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
java.lang.String getValueColumn()
-
setValueColumn
This setValueColumn(java.lang.String valueColumn)
Sets the column that map entry values are loaded from. If set, values will be loaded from the given column, using theColumnMapperregistered for the value type. If unset, values will be loaded using theRowMapperregistered 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
-
-