Package org.hibernate.query.criteria
Enum Class JpaJsonQueryNode.WrapMode
- All Implemented Interfaces:
Serializable
,Comparable<JpaJsonQueryNode.WrapMode>
,Constable
- Enclosing interface:
- JpaJsonQueryNode
The kind of wrapping to apply to the results of the query.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnspecified behavior i.e.Only use an array wrapper in the result if there is more than one result.Force the array wrapper in the result.Omit the array wrapper in the result. -
Method Summary
Modifier and TypeMethodDescriptionstatic JpaJsonQueryNode.WrapMode
Returns the enum constant of this class with the specified name.static JpaJsonQueryNode.WrapMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WITHOUT_WRAPPER
Omit the array wrapper in the result. -
WITH_WRAPPER
Force the array wrapper in the result. -
WITH_CONDITIONAL_WRAPPER
Only use an array wrapper in the result if there is more than one result. -
UNSPECIFIED
Unspecified behavior i.e. the default database behavior.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-