public interface QueryFunc<T,R>
| 限定符和类型 | 方法和说明 |
|---|---|
R |
asc(net.hasor.cobble.reflect.SFunction<T>... properties)
排序(升序),类似:order by xxx desc
|
R |
desc(net.hasor.cobble.reflect.SFunction<T>... properties)
排序(降序),类似:order by xxx desc
|
R |
groupBy(net.hasor.cobble.reflect.SFunction<T>... properties)
分组,类似:group by xxx
|
R |
initPage(int pageSize,
int pageNumber)
生成分页对象
|
R |
orderBy(net.hasor.cobble.reflect.SFunction<T>... properties)
排序,类似:order by xxx
|
Page |
pageInfo()
获取对应的分页对象
|
R |
select(net.hasor.cobble.reflect.SFunction<T>... properties)
查询属性
在分组查询下:设置参数中,只有 group by 列才会被查询。
|
R |
select(String... columns)
查询属性
在分组查询下:设置参数中,只有 group by 列才会被查询。
|
R |
selectAll()
查询所有列
在分组查询下:返回所有分组列
|
R |
usePage(Page pageInfo)
设置分页信息
|
Copyright © 2021. All rights reserved.