Package org.jdbi.v3.core.mapper
Class MapEntryMappers
java.lang.Object
org.jdbi.v3.core.mapper.MapEntryMappers
- All Implemented Interfaces:
JdbiConfig<MapEntryMappers>
,MapEntryConfig<MapEntryMappers>
public class MapEntryMappers
extends Object
implements JdbiConfig<MapEntryMappers>, MapEntryConfig<MapEntryMappers>
Configuration class for MapEntryMapper.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of this configuration object.setKeyColumn
(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.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
Constructor Details
-
MapEntryMappers
public MapEntryMappers()
-
-
Method Details
-
getKeyColumn
- Specified by:
getKeyColumn
in interfaceMapEntryConfig<MapEntryMappers>
-
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.- Specified by:
setKeyColumn
in interfaceMapEntryConfig<MapEntryMappers>
- Parameters:
keyColumn
- the key column name.- Returns:
- this config object, for call chaining
-
getValueColumn
- Specified by:
getValueColumn
in interfaceMapEntryConfig<MapEntryMappers>
-
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.- Specified by:
setValueColumn
in interfaceMapEntryConfig<MapEntryMappers>
- Parameters:
valueColumn
- the value column name.- Returns:
- this config object, for call chaining
-
createCopy
Description copied from interface:JdbiConfig
Returns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
createCopy
in interfaceJdbiConfig<MapEntryMappers>
- Returns:
- a copy of this configuration object.
-