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 java.lang.Object implements JdbiConfig<MapEntryMappers>, MapEntryConfig<MapEntryMappers>
Configuration class for MapEntryMapper.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringkeyColumnprivate java.lang.StringvalueColumn
-
Constructor Summary
Constructors Modifier Constructor Description MapEntryMappers()privateMapEntryMappers(MapEntryMappers that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapEntryMapperscreateCopy()Returns a copy of this configuration object.java.lang.StringgetKeyColumn()java.lang.StringgetValueColumn()MapEntryMapperssetKeyColumn(java.lang.String keyColumn)Sets the column that map entry keys are loaded from.MapEntryMapperssetValueColumn(java.lang.String valueColumn)Sets the column that map entry values are loaded from.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdbi.v3.core.config.JdbiConfig
setRegistry
-
-
-
-
Constructor Detail
-
MapEntryMappers
public MapEntryMappers()
-
MapEntryMappers
private MapEntryMappers(MapEntryMappers that)
-
-
Method Detail
-
getKeyColumn
public java.lang.String getKeyColumn()
- Specified by:
getKeyColumnin interfaceMapEntryConfig<MapEntryMappers>
-
setKeyColumn
public MapEntryMappers 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.- Specified by:
setKeyColumnin interfaceMapEntryConfig<MapEntryMappers>- Parameters:
keyColumn- the key column name.- Returns:
- this config object, for call chaining
-
getValueColumn
public java.lang.String getValueColumn()
- Specified by:
getValueColumnin interfaceMapEntryConfig<MapEntryMappers>
-
setValueColumn
public MapEntryMappers 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.- Specified by:
setValueColumnin interfaceMapEntryConfig<MapEntryMappers>- Parameters:
valueColumn- the value column name.- Returns:
- this config object, for call chaining
-
createCopy
public MapEntryMappers createCopy()
Description 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 interfaceJdbiConfig<MapEntryMappers>- Returns:
- a copy of this configuration object.
-
-