Package org.mybatis.dynamic.sql
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 Summary
Modifier and TypeMethodDescriptionReturns a new instance of the SortSpecification that should render as descending in an ORDER BY clause.renderForOrderBy(RenderingContext renderingContext) Return a fragment rendered for use in an ORDER BY clause.
-
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
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
-