Class NullPrecedenceHelper

java.lang.Object
org.hibernate.query.internal.NullPrecedenceHelper

public class NullPrecedenceHelper extends Object
  • 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

      public static Nulls parse(String name)
      Interprets a string representation of a NullPrecedence, returning null by default. For alternative default handling, see parse(String, Nulls)
      Parameters:
      name - The String representation to interpret
      Returns:
      The recognized NullPrecedence, or null
    • parse

      public static Nulls parse(String name, Nulls defaultValue)
      Interprets a string representation of a NullPrecedence, returning the specified default if not recognized.
      Parameters:
      name - The String representation to interpret
      defaultValue - The default value to use
      Returns:
      The recognized NullPrecedence, or defaultValue.