Class Enums

java.lang.Object
org.jdbi.v3.core.enums.Enums
All Implemented Interfaces:
JdbiConfig<Enums>

public class Enums extends Object implements JdbiConfig<Enums>
Configuration for behavior related to Enums.
  • Constructor Details

    • Enums

      public Enums()
  • Method Details

    • getDefaultStrategy

      public EnumStrategy getDefaultStrategy()
      Returns the default strategy to use for mapping and binding enums, in the absence of a EnumByName or EnumByOrdinal qualifying annotation. The default default is EnumStrategy.BY_NAME.
    • setEnumStrategy

      public Enums setEnumStrategy(EnumStrategy enumStrategy)
      Sets the default strategy for mapping and binding enums.
      Parameters:
      enumStrategy - the new strategy
      Returns:
      this Enums instance, for chaining
    • createCopy

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