Enum Class LoadState

java.lang.Object
java.lang.Enum<LoadState>
jakarta.persistence.spi.LoadState
All Implemented Interfaces:
Serializable, Comparable<LoadState>, Constable

public enum LoadState extends Enum<LoadState>
Load states returned by the ProviderUtil SPI methods.
Since:
2.0
  • Enum Constant Details

    • LOADED

      public static final LoadState LOADED
      The state of the element is known to have been loaded.
    • NOT_LOADED

      public static final LoadState NOT_LOADED
      The state of the element is known not to have been loaded.
    • UNKNOWN

      public static final LoadState UNKNOWN
      The load state of the element cannot be determined.
  • Method Details

    • values

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

      public static LoadState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null