Class MapEntryMappers

    • Field Detail

      • keyColumn

        private java.lang.String keyColumn
      • valueColumn

        private java.lang.String valueColumn
    • Constructor Detail

      • MapEntryMappers

        public MapEntryMappers()
    • Method Detail

      • 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 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
      • 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 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.