Package org.hibernate.query
Enum Class NullPrecedence
- All Implemented Interfaces:
Serializable
,Comparable<NullPrecedence>
,Constable
Deprecated.
Use Jakarta Persistence Nulls instead.
Enumerates the possibilities for the precedence of null values within
query result sets sorted by an
ORDER BY
clause.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic NullPrecedence
fromJpaValue
(Nulls jpaValue) Deprecated.Deprecated.boolean
isDefaultOrdering
(SortDirection sortOrder, NullOrdering nullOrdering) Deprecated, for removal: This API element is subject to removal in a future version.No longer calledstatic NullPrecedence
Deprecated.Interprets a string representation of a NullPrecedence, returningnull
by default.static NullPrecedence
parse
(String name, NullPrecedence defaultValue) Deprecated.Interprets a string representation of a NullPrecedence, returning the specified default if not recognized.static NullPrecedence
Deprecated.Returns the enum constant of this class with the specified name.static NullPrecedence[]
values()
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Deprecated.Null precedence not specified. Relies on the RDBMS implementation. -
FIRST
Deprecated.Null values appear at the beginning of the sorted collection. -
LAST
Deprecated.Null values appear at the end of the sorted collection.
-
-
Method Details
-
values
Deprecated.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
Deprecated.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
-
isDefaultOrdering
@Deprecated(since="7.0", forRemoval=true) public boolean isDefaultOrdering(SortDirection sortOrder, NullOrdering nullOrdering) Deprecated, for removal: This API element is subject to removal in a future version.No longer calledIs this null precedence the default for the given sort order and null ordering. -
parse
Deprecated.Interprets a string representation of a NullPrecedence, returningnull
by default. For alternative default handling, seeparse(String, NullPrecedence)
- Parameters:
name
- The String representation to interpret- Returns:
- The recognized NullPrecedence, or
null
-
parse
Deprecated.Interprets a string representation of a NullPrecedence, returning the specified default if not recognized.- Parameters:
name
- The String representation to interpretdefaultValue
- The default value to use- Returns:
- The recognized NullPrecedence, or
defaultValue
.
-
getJpaValue
Deprecated. -
fromJpaValue
Deprecated.
-