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.booleanReturn true if the sort order is descending.static SimpleSortSpecificationReturn the phrase that should be written into a rendered 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
-
orderByName
Description copied from interface:SortSpecificationReturn the phrase that should be written into a rendered order by clause. This should NOT include the "DESC" word for descending sort specifications.- Specified by:
orderByNamein interfaceSortSpecification- Returns:
- the order by phrase
-
isDescending
public boolean isDescending()Description copied from interface:SortSpecificationReturn true if the sort order is descending.- Specified by:
isDescendingin interfaceSortSpecification- Returns:
- true if the SortSpecification should render as descending
-
of
-