Package org.mybatis.dynamic.sql.select
Class ColumnSortSpecification
java.lang.Object
org.mybatis.dynamic.sql.select.ColumnSortSpecification
- All Implemented Interfaces:
SortSpecification
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
ColumnSortSpecification
-
-
Method Details
-
descending
Description copied from interface:SortSpecificationReturns a new instance of the SortSpecification that should render as descending in an ORDER BY clause.- Specified by:
descendingin interfaceSortSpecification- Returns:
- new instance of SortSpecification
-
renderForOrderBy
Description copied from interface:SortSpecificationReturn a fragment rendered for use in an ORDER BY clause. The fragment should include "DESC" if a descending order is desired.- Specified by:
renderForOrderByin interfaceSortSpecification- Parameters:
renderingContext- the current rendering context- Returns:
- a rendered fragment and parameters if applicable
-