Package org.mybatis.dynamic.sql.select
Class ColumnSortSpecification
java.lang.Object
org.mybatis.dynamic.sql.select.ColumnSortSpecification
- All Implemented Interfaces:
SortSpecification
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new instance of the SortSpecification that should render as descending in an ORDER BY clause.boolean
Return true if the sort order is descending.Return the phrase that should be written into a rendered order by clause.
-
Constructor Details
-
ColumnSortSpecification
-
-
Method Details
-
descending
Description copied from interface:SortSpecification
Returns a new instance of the SortSpecification that should render as descending in an ORDER BY clause.- Specified by:
descending
in interfaceSortSpecification
- Returns:
- new instance of SortSpecification
-
orderByName
Description copied from interface:SortSpecification
Return 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:
orderByName
in interfaceSortSpecification
- Returns:
- the order by phrase
-
isDescending
public boolean isDescending()Description copied from interface:SortSpecification
Return true if the sort order is descending.- Specified by:
isDescending
in interfaceSortSpecification
- Returns:
- true if the SortSpecification should render as descending
-