Interface SortSpecification

  • All Known Implementing Classes:
    SimpleSortSpecification, SqlColumn

    public interface SortSpecification
    Defines attributes of columns that are necessary for rendering an order by expression.
    Author:
    Jeff Butler
    • Method Detail

      • descending

        SortSpecification descending()
        Returns a new instance of the SortSpecification that should render as descending in an ORDER BY clause.
        Returns:
        new instance of SortSpecification
      • aliasOrName

        java.lang.String aliasOrName()
        Return the column alias or column name.
        Returns:
        the column alias if one has been specified by the user, or else the column name
      • isDescending

        boolean isDescending()
        Return true if the sort order is descending.
        Returns:
        true if the SortSpecification should render as descending