Package cool.scx.data.query
Class QueryImpl
java.lang.Object
cool.scx.data.query.QueryImpl
- All Implemented Interfaces:
Query
查询参数类
针对 GroupBy , OrderBy , Limit , Where 等进行的简单封装
同时附带一些简单的参数校验
只是 为了方便传递参数使用
针对 GroupBy , OrderBy , Limit , Where 等进行的简单封装
同时附带一些简单的参数校验
只是 为了方便传递参数使用
- Version:
- 0.1.3
- Author:
- scx567888
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGroupBy(Object... groupByClauses) addOrderBy(Object... orderByClauses) getLimit()getWhere()limit(long numberOfRows) 设置分页参数offset(long limitOffset)
-
Constructor Details
-
QueryImpl
public QueryImpl()创建 Query 对象 -
QueryImpl
-
QueryImpl
-
QueryImpl
-
QueryImpl
-
QueryImpl
-
QueryImpl
-
-
Method Details
-
where
-
groupBy
-
orderBy
-
addWhere
-
addGroupBy
- Specified by:
addGroupByin interfaceQuery
-
addOrderBy
- Specified by:
addOrderByin interfaceQuery
-
offset
-
limit
设置分页参数 -
getWhere
-
getGroupBy
- Specified by:
getGroupByin interfaceQuery
-
getOrderBy
- Specified by:
getOrderByin interfaceQuery
-
getOffset
-
getLimit
-
getLimitInfo
- Specified by:
getLimitInfoin interfaceQuery
-
clearWhere
- Specified by:
clearWherein interfaceQuery
-
clearGroupBy
- Specified by:
clearGroupByin interfaceQuery
-
clearOrderBy
- Specified by:
clearOrderByin interfaceQuery
-
clearOffset
- Specified by:
clearOffsetin interfaceQuery
-
clearLimit
- Specified by:
clearLimitin interfaceQuery
-