Class Order

    • Method Detail

      • asc

        public static Order asc​(String propertyName)
        Ascending order
        Parameters:
        propertyName - The property to order on
        Returns:
        The build Order instance
      • desc

        public static Order desc​(String propertyName)
        Descending order.
        Parameters:
        propertyName - The property to order on
        Returns:
        The build Order instance
      • ignoreCase

        public Order ignoreCase()
        Should this ordering ignore case? Has no effect on non-character properties.
        Returns:
        this, for method chaining
      • nulls

        public Order nulls​(NullPrecedence nullPrecedence)
        Defines precedence for nulls.
        Parameters:
        nullPrecedence - The null precedence to use
        Returns:
        this, for method chaining
      • getPropertyName

        public String getPropertyName()
      • isAscending

        public boolean isAscending()
      • isIgnoreCase

        public boolean isIgnoreCase()
      • toSqlString

        public String toSqlString​(Criteria criteria,
                                  CriteriaQuery criteriaQuery)
        Render the SQL fragment
        Parameters:
        criteria - The criteria
        criteriaQuery - The overall query
        Returns:
        The ORDER BY fragment for this ordering