Package org.hibernate.query.internal
Class NullPrecedenceHelper
java.lang.Object
org.hibernate.query.internal.NullPrecedenceHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisDefaultOrdering(Nulls precedence, SortDirection sortOrder, NullOrdering nullOrdering) Is this null precedence the default for the given sort order and null ordering.static NullsInterprets a string representation of a NullPrecedence, returningnullby default.static NullsInterprets 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, returningnullby 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.
-