Enum DtoMapping.Builder

java.lang.Object
java.lang.Enum<DtoMapping.Builder>
io.ebean.annotation.DtoMapping.Builder
All Implemented Interfaces:
Serializable, Comparable<DtoMapping.Builder>
Enclosing class:
DtoMapping

public static enum DtoMapping.Builder extends Enum<DtoMapping.Builder>
Target construction strategy - see DtoMapping.builder().
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Always use the detected builder - a codegen-time error if the target has no builder matching the required shape.
    Use a detected builder when the target has more than a threshold number of properties (default 5), falling back to a positional constructor otherwise.
    Always use a positional constructor, even when the target has a usable builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • AUTO

      public static final DtoMapping.Builder AUTO
      Use a detected builder when the target has more than a threshold number of properties (default 5), falling back to a positional constructor otherwise.
    • ALWAYS

      public static final DtoMapping.Builder ALWAYS
      Always use the detected builder - a codegen-time error if the target has no builder matching the required shape.
    • NEVER

      public static final DtoMapping.Builder NEVER
      Always use a positional constructor, even when the target has a usable builder.
  • Method Details

    • values

      public static DtoMapping.Builder[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DtoMapping.Builder valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null