Package org.hibernate.query.internal
Class NullPrecedenceHelper
java.lang.Object
org.hibernate.query.internal.NullPrecedenceHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isDefaultOrdering
(Nulls precedence, SortDirection sortOrder, NullOrdering nullOrdering) Is this null precedence the default for the given sort order and null ordering.static Nulls
Interprets a string representation of a NullPrecedence, returningnull
by default.static Nulls
Interprets a string representation of a NullPrecedence, returning the specified default if not recognized.
-
Method Details
-
isDefaultOrdering
public static boolean isDefaultOrdering(Nulls precedence, SortDirection sortOrder, NullOrdering nullOrdering) Is this null precedence the default for the given sort order and null ordering. -
parse
Interprets a string representation of a NullPrecedence, returningnull
by default. For alternative default handling, seeparse(String, Nulls)
- Parameters:
name
- The String representation to interpret- Returns:
- The recognized NullPrecedence, or
null
-
parse
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
.
-