Class EnumStrategies

java.lang.Object
org.jdbi.v3.core.internal.EnumStrategies
All Implemented Interfaces:
JdbiConfig<EnumStrategies>

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>
      Parameters:
      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
      Parameters:
      type - qualified type to derive a strategy from
      Returns:
      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>
      Returns:
      a copy of this configuration object.