Package org.mybatis.dynamic.sql.select
Class SimpleSortSpecification
java.lang.Object
org.mybatis.dynamic.sql.select.SimpleSortSpecification
- All Implemented Interfaces:
SortSpecification
This class is used for an order by phrase where there is no suitable column name
to use (for example a calculated column or an aggregate column).
- Author:
- Jeff Butler
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new instance of the SortSpecification that should render as descending in an ORDER BY clause.static SimpleSortSpecificationrenderForOrderBy(RenderingContext renderingContext) Return a fragment rendered for use in an ORDER BY clause.
-
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
-
of
-