Interface SortSpecification

All Known Implementing Classes:
ColumnSortSpecification, SearchedCaseModel, SimpleCaseModel, SimpleSortSpecification, SqlColumn

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

    • 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
    • renderForOrderBy

      FragmentAndParameters renderForOrderBy(RenderingContext renderingContext)
      Return a fragment rendered for use in an ORDER BY clause. The fragment should include "DESC" if a descending order is desired.
      Parameters:
      renderingContext - the current rendering context
      Returns:
      a rendered fragment and parameters if applicable
      Since:
      2.0.0