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 Details

    • MapEntryMappers

      public MapEntryMappers()
  • Method Details

    • getKeyColumn

      public String getKeyColumn()
      Specified by:
      getKeyColumn in interface MapEntryConfig<MapEntryMappers>
    • setKeyColumn

      public MapEntryMappers setKeyColumn(String keyColumn)
      Sets the column that map entry keys are loaded from. If set, keys will be loaded from the given column, using the ColumnMapper registered for the key type. If unset, keys will be loaded using the RowMapper registered for the key type, from whichever columns that row mapper uses.
      Specified by:
      setKeyColumn in interface MapEntryConfig<MapEntryMappers>
      Parameters:
      keyColumn - the key column name.
      Returns:
      this config object, for call chaining
    • getValueColumn

      public String getValueColumn()
      Specified by:
      getValueColumn in interface MapEntryConfig<MapEntryMappers>
    • setValueColumn

      public MapEntryMappers setValueColumn(String valueColumn)
      Sets the column that map entry values are loaded from. If set, values will be loaded from the given column, using the ColumnMapper registered for the value type. If unset, values will be loaded using the RowMapper registered for the value type, from whichever columns that row mapper uses.
      Specified by:
      setValueColumn in interface MapEntryConfig<MapEntryMappers>
      Parameters:
      valueColumn - the value column name.
      Returns:
      this config object, for call chaining
    • createCopy

      public MapEntryMappers 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 interface JdbiConfig<MapEntryMappers>
      Returns:
      a copy of this configuration object.