public class LambdaQueryChainInjectWrapper extends QueryChainWrapper<Map<String,Object>,LambdaQueryChainInjectWrapper> implements ChainInject
typedThis| 构造器和说明 |
|---|
LambdaQueryChainInjectWrapper(SqlExecute sqlExecute) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
count(com.mongodb.client.ClientSession clientSession,
String collectionName)
获取总行数
|
long |
count(String collectionName)
获取总行数
|
Map<String,Object> |
limitOne(com.mongodb.client.ClientSession clientSession,
String collectionName)
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会取第一条返回 |
Map<String,Object> |
limitOne(String collectionName)
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会取第一条返回 |
List<Map<String,Object>> |
list(com.mongodb.client.ClientSession clientSession,
String collectionName)
获取列表 返回Map
|
List<Map<String,Object>> |
list(String collectionName)
获取列表 返回Map
|
Map<String,Object> |
one(com.mongodb.client.ClientSession clientSession,
String collectionName)
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会抛出 |
Map<String,Object> |
one(String collectionName)
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会抛出 |
PageResult<Map<String,Object>> |
page(com.mongodb.client.ClientSession clientSession,
String collectionName,
Integer pageNum,
Integer pageSize)
分页
|
PageResult<Map<String,Object>> |
page(com.mongodb.client.ClientSession clientSession,
String collectionName,
PageParam pageParam)
分页
|
PageResult<Map<String,Object>> |
page(String collectionName,
Integer pageNum,
Integer pageSize)
分页
|
PageResult<Map<String,Object>> |
page(String collectionName,
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 LambdaQueryChainInjectWrapper(SqlExecute sqlExecute)
public List<Map<String,Object>> list(String collectionName)
CommInjectQuerylist 在接口中 CommInjectQuerycollectionName - 集合名< Map > public List<Map<String,Object>> list(com.mongodb.client.ClientSession clientSession, String collectionName)
CommInjectQuerylist 在接口中 CommInjectQuerycollectionName - 集合名< Map > public Map<String,Object> limitOne(String collectionName)
ChainInject注:如果查询到大于一条数据,会取第一条返回
limitOne 在接口中 ChainInjectcollectionName - 集合名public Map<String,Object> limitOne(com.mongodb.client.ClientSession clientSession, String collectionName)
ChainInject注:如果查询到大于一条数据,会取第一条返回
limitOne 在接口中 ChainInjectcollectionName - 集合名public PageResult<Map<String,Object>> page(String collectionName, PageParam pageParam)
CommInjectQuerypage 在接口中 CommInjectQuerycollectionName - 集合名pageParam - 分页参数对象< Map< String, Object>>public PageResult<Map<String,Object>> page(com.mongodb.client.ClientSession clientSession, String collectionName, PageParam pageParam)
CommInjectQuerypage 在接口中 CommInjectQuerycollectionName - 集合名pageParam - 分页参数对象< Map< String, Object>>public PageResult<Map<String,Object>> page(String collectionName, Integer pageNum, Integer pageSize)
CommInjectQuerypage 在接口中 CommInjectQuerycollectionName - 集合名pageNum - 当前页pageSize - 每页显示行数Map< String, Object>>public PageResult<Map<String,Object>> page(com.mongodb.client.ClientSession clientSession, String collectionName, Integer pageNum, Integer pageSize)
CommInjectQuerypage 在接口中 CommInjectQuerycollectionName - 集合名pageNum - 当前页pageSize - 每页显示行数Map< String, Object>>public Map<String,Object> one(String collectionName)
ChainInject注:如果查询到大于一条数据,会抛出MongoQueryException异常
one 在接口中 ChainInjectcollectionName - 集合名public Map<String,Object> one(com.mongodb.client.ClientSession clientSession, String collectionName)
ChainInject注:如果查询到大于一条数据,会抛出MongoQueryException异常
one 在接口中 ChainInjectcollectionName - 集合名public long count(String collectionName)
CommInjectQuerycount 在接口中 CommInjectQuerycollectionName - 集合名longpublic long count(com.mongodb.client.ClientSession clientSession,
String collectionName)
CommInjectQuerycount 在接口中 CommInjectQuerycollectionName - 集合名longCopyright © 2023. All rights reserved.