Package org.mybatis.dynamic.sql
Interface SortSpecification
-
- All Known Implementing Classes:
SimpleSortSpecification
,SqlColumn
public interface SortSpecification
Defines attributes of columns that are necessary for rendering an order by expression.- Author:
- Jeff Butler
-
-
Method Summary
Modifier and Type Method Description java.lang.String
aliasOrName()
Return the column alias or column name.SortSpecification
descending()
Returns a new instance of the SortSpecification that should render as descending in an ORDER BY clause.boolean
isDescending()
Return true if the sort order is descending.
-
-
-
Method Detail
-
descending
SortSpecification descending()
Returns a new instance of the SortSpecification that should render as descending in an ORDER BY clause.- Returns:
- new instance of SortSpecification
-
aliasOrName
java.lang.String aliasOrName()
Return the column alias or column name.- Returns:
- the column alias if one has been specified by the user, or else the column name
-
isDescending
boolean isDescending()
Return true if the sort order is descending.- Returns:
- true if the SortSpcification should render as descending
-
-