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 SummaryConstructors
- 
Method SummaryModifier 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.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jdbi.v3.core.config.JdbiConfigsetRegistry
- 
Constructor Details- 
MapEntryMapperspublic MapEntryMappers()
 
- 
- 
Method Details- 
getKeyColumn- Specified by:
- getKeyColumnin interface- MapEntryConfig<MapEntryMappers>
 
- 
setKeyColumnSets 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.- Specified by:
- setKeyColumnin interface- MapEntryConfig<MapEntryMappers>
- Parameters:
- keyColumn- the key column name.
- Returns:
- this config object, for call chaining
 
- 
getValueColumn- Specified by:
- getValueColumnin interface- MapEntryConfig<MapEntryMappers>
 
- 
setValueColumnSets 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.- Specified by:
- setValueColumnin interface- MapEntryConfig<MapEntryMappers>
- Parameters:
- valueColumn- the value column name.
- Returns:
- this config object, for call chaining
 
- 
createCopyDescription copied from interface:JdbiConfigReturns a copy of this configuration object. Changes to the copy should not modify the original, and vice-versa.- Specified by:
- createCopyin interface- JdbiConfig<MapEntryMappers>
- Returns:
- a copy of this configuration object.
 
 
-