- java.lang.Object
-
- org.mybatis.dynamic.sql.select.ColumnSortSpecification
-
- All Implemented Interfaces:
SortSpecification
public class ColumnSortSpecification extends Object implements SortSpecification
-
-
Constructor Summary
Constructors Constructor Description ColumnSortSpecification(String tableAlias, SqlColumn<?> column)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortSpecificationdescending()Returns a new instance of the SortSpecification that should render as descending in an ORDER BY clause.booleanisDescending()Return true if the sort order is descending.StringorderByName()Return the phrase that should be written into a rendered order by clause.
-
-
-
Method Detail
-
descending
public SortSpecification 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
public String 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
-
-