Enum FetchType

java.lang.Object
java.lang.Enum<FetchType>
com.codename1.annotations.db.FetchType
All Implemented Interfaces:
Comparable<FetchType>

public enum FetchType extends Enum<FetchType>
Controls when a mapped relationship is loaded.
  • Enum Constant Details

    • EAGER

      public static final FetchType EAGER
      Initializes the relationship when its owner is loaded.
    • LAZY

      public static final FetchType LAZY
      Defers loading until enhanced field access or explicit session initialization.
  • Method Details

    • values

      public static FetchType[] 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 FetchType 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