Class EnumStrategies

All Implemented Interfaces:

public class EnumStrategies extends Object implements JdbiConfig<EnumStrategies>
  • Constructor Details

    • EnumStrategies

      public EnumStrategies()
  • Method Details

    • setRegistry

      public void setRegistry(ConfigRegistry registry)
      Description copied from interface: JdbiConfig
      The registry will inject itself into the configuration object. This can be useful if you need to look up dependencies. You will get a new registry after being copied.
      Specified by:
      setRegistry in interface JdbiConfig<EnumStrategies>
      registry - the registry that owns this configuration object
    • findStrategy

      public <E extends Enum<E>> EnumStrategy findStrategy(QualifiedType<E> type)
      Determines which strategy is to be used for a given QualifiedType, falling back to reading strategy annotations on the source class and/or using the configured default.
      Type Parameters:
      E - the Enum type
      type - qualified type to derive a strategy from
      the strategy by which this enum should be handled
    • createCopy

      public EnumStrategies 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<EnumStrategies>
      a copy of this configuration object.