public class LambdaQueryChainWrapper<T> extends QueryChainWrapper<T,LambdaQueryChainWrapper<T>> implements ChainQuery<T>
typedThis| 构造器和说明 |
|---|
LambdaQueryChainWrapper(SqlExecute sqlExecute,
Class<T> clazz) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
count() |
long |
count(com.mongodb.client.ClientSession clientSession) |
T |
limitOne()
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会取第一条返回
|
T |
limitOne(com.mongodb.client.ClientSession clientSession)
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会取第一条返回
|
List<T> |
list()
获取列表 返回T类型的List
|
List<T> |
list(com.mongodb.client.ClientSession clientSession)
获取列表 返回T类型的List
|
T |
one()
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会抛出
MongoQueryException异常 |
T |
one(com.mongodb.client.ClientSession clientSession)
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会抛出
MongoQueryException异常 |
PageResult<T> |
page(com.mongodb.client.ClientSession clientSession,
Integer pageNum,
Integer pageSize)
分页
|
PageResult<T> |
page(com.mongodb.client.ClientSession clientSession,
PageParam pageParam)
分页
|
PageResult<T> |
page(Integer pageNum,
Integer pageSize)
分页
|
PageResult<T> |
page(PageParam pageParam)
分页
|
orderByAsc, orderByAsc, orderByDesc, orderByDesc, project, project, project, projectDisplay, projectDisplay, projectDisplay, projectDisplay, projectNone, projectNone, projectNone, projectNoneall, all, all, all, and, and, between, between, between, between, custom, custom, custom, elemMatch, elemMatch, elemMatch, elemMatch, eq, eq, eq, eq, exists, exists, exists, exists, expr, expr, getBaseAndCondition, getBaseCondition, getBaseCondition, getBaseConditionBetween, getBaseOrCondition, getBaseOrder, getBaseOrder, getBaseProject, getBaseProject, getBaseProjectDisplay, getBaseProjectDisplay, getBaseProjectNone, getBaseProjectNone, getBasicDBObjectList, getChildBaseCondition, getChildBaseCondition, getChildBaseCondition, getChildBaseCondition, getCompareList, getOrderList, getProjectionList, getTypedThis, gt, gt, gt, gt, gte, gte, gte, gte, in, in, in, in, like, like, like, like, lt, lt, lt, lt, lte, lte, lte, lte, mod, mod, mod, mod, mod, mod, mod, mod, ne, ne, ne, ne, nin, nin, nin, nin, nor, nor, nor, nor, nor, nor, not, not, or, or, or, or, or, or, regex, regex, regex, regex, setProjectNoneId, text, text, text, text, type, type, type, type, type, typepublic LambdaQueryChainWrapper(SqlExecute sqlExecute, Class<T> clazz)
public List<T> list()
ChainQuerylist 在接口中 ChainQuery<T>Listpublic List<T> list(com.mongodb.client.ClientSession clientSession)
ChainQuerylist 在接口中 ChainQuery<T>Listpublic T one()
ChainQuery注:如果查询到大于一条数据,会抛出MongoQueryException异常
one 在接口中 ChainQuery<T>public T one(com.mongodb.client.ClientSession clientSession)
ChainQuery注:如果查询到大于一条数据,会抛出MongoQueryException异常
one 在接口中 ChainQuery<T>public T limitOne()
ChainQuery注:如果查询到大于一条数据,会取第一条返回
limitOne 在接口中 ChainQuery<T>public T limitOne(com.mongodb.client.ClientSession clientSession)
ChainQuery注:如果查询到大于一条数据,会取第一条返回
limitOne 在接口中 ChainQuery<T>public PageResult<T> page(PageParam pageParam)
ChainQuerypage 在接口中 ChainQuery<T>pageParam - 分页参数对象PageResultpublic PageResult<T> page(com.mongodb.client.ClientSession clientSession, PageParam pageParam)
ChainQuerypage 在接口中 ChainQuery<T>pageParam - 分页参数对象PageResultpublic PageResult<T> page(Integer pageNum, Integer pageSize)
ChainQuerypage 在接口中 ChainQuery<T>pageNum - 当前页pageSize - 每页显示行数PageResultpublic PageResult<T> page(com.mongodb.client.ClientSession clientSession, Integer pageNum, Integer pageSize)
ChainQuerypage 在接口中 ChainQuery<T>pageNum - 当前页pageSize - 每页显示行数PageResultpublic long count()
count 在接口中 ChainQuery<T>public long count(com.mongodb.client.ClientSession clientSession)
count 在接口中 ChainQuery<T>Copyright © 2023. All rights reserved.