Package cool.scx.data.query
Class OrderByBody
- All Implemented Interfaces:
Query
OrderBy 封装体
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
ConstructorsConstructorDescriptionOrderByBody(String name, OrderByType orderByType, OrderByOption... options) 添加一个排序字段OrderByBody(String name, OrderByType orderByType, OrderByOption.Info info) -
Method Summary
Methods inherited from class cool.scx.data.query.QueryLike
addGroupBy, addOrderBy, addWhere, clearGroupBy, clearLimit, clearOffset, clearOrderBy, clearWhere, getGroupBy, getLimit, getLimitInfo, getOffset, getOrderBy, getWhere, groupBy, limit, offset, orderBy, where
-
Constructor Details
-
OrderByBody
-
OrderByBody
添加一个排序字段- Parameters:
name- 排序字段的名称 (默认是实体类的字段名 , 不是数据库中的字段名)orderByType- 排序类型 正序或倒序options- 配置
-
-
Method Details
-
name
-
orderByType
-
info
-
toQuery
- Specified by:
toQueryin classQueryLike<OrderByBody>
-