Enum Class JpaJsonQueryNode.WrapMode

java.lang.Object
java.lang.Enum<JpaJsonQueryNode.WrapMode>
org.hibernate.query.criteria.JpaJsonQueryNode.WrapMode
All Implemented Interfaces:
Serializable, Comparable<JpaJsonQueryNode.WrapMode>, Constable
Enclosing interface:
JpaJsonQueryNode

public static enum JpaJsonQueryNode.WrapMode extends Enum<JpaJsonQueryNode.WrapMode>
The kind of wrapping to apply to the results of the query.
  • Enum Constant Details

    • WITHOUT_WRAPPER

      public static final JpaJsonQueryNode.WrapMode WITHOUT_WRAPPER
      Omit the array wrapper in the result.
    • WITH_WRAPPER

      public static final JpaJsonQueryNode.WrapMode WITH_WRAPPER
      Force the array wrapper in the result.
    • WITH_CONDITIONAL_WRAPPER

      public static final JpaJsonQueryNode.WrapMode WITH_CONDITIONAL_WRAPPER
      Only use an array wrapper in the result if there is more than one result.
    • UNSPECIFIED

      public static final JpaJsonQueryNode.WrapMode UNSPECIFIED
      Unspecified behavior i.e. the default database behavior.
  • Method Details

    • values

      public static JpaJsonQueryNode.WrapMode[] 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 JpaJsonQueryNode.WrapMode 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