public class MongoPlusMapMapper extends Object implements InjectQuery
| 构造器和说明 |
|---|
MongoPlusMapMapper(SqlExecute sqlExecute) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<Map<String,Object>> |
aggregateList(com.mongodb.client.ClientSession clientSession,
String collectionName,
AggregateChainWrapper<Map<String,Object>,?> queryChainWrapper) |
List<Map<String,Object>> |
aggregateList(String collectionName,
AggregateChainWrapper<Map<String,Object>,?> queryChainWrapper) |
long |
count(com.mongodb.client.ClientSession clientSession,
String collectionName)
获取总行数
|
long |
count(com.mongodb.client.ClientSession clientSession,
String collectionName,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
获取总行数
|
long |
count(String collectionName)
获取总行数
|
long |
count(String collectionName,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
获取总行数
|
String |
createIndex(com.mongodb.client.ClientSession clientSession,
String collectionName,
org.bson.conversions.Bson bson)
创建索引,携带事务
|
String |
createIndex(com.mongodb.client.ClientSession clientSession,
String collectionName,
org.bson.conversions.Bson bson,
com.mongodb.client.model.IndexOptions indexOptions)
使用给定的键和选项创建索引。
|
String |
createIndex(String collectionName,
org.bson.conversions.Bson bson)
创建索引
|
String |
createIndex(String collectionName,
org.bson.conversions.Bson bson,
com.mongodb.client.model.IndexOptions indexOptions)
使用给定的键和选项创建索引。
|
List<String> |
createIndexes(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<com.mongodb.client.model.IndexModel> indexes)
创建多个索引
|
List<String> |
createIndexes(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<com.mongodb.client.model.IndexModel> indexes,
com.mongodb.client.model.CreateIndexOptions createIndexOptions)
创建多个索引
|
List<String> |
createIndexes(String collectionName,
List<com.mongodb.client.model.IndexModel> indexes)
创建多个索引
|
List<String> |
createIndexes(String collectionName,
List<com.mongodb.client.model.IndexModel> indexes,
com.mongodb.client.model.CreateIndexOptions createIndexOptions)
创建多个索引
|
void |
dropIndex(com.mongodb.client.ClientSession clientSession,
String collectionName,
org.bson.conversions.Bson keys)
在给定用于创建索引的键的情况下删除索引。
|
void |
dropIndex(com.mongodb.client.ClientSession clientSession,
String collectionName,
org.bson.conversions.Bson keys,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
在给定用于创建索引的键的情况下删除索引。
|
void |
dropIndex(com.mongodb.client.ClientSession clientSession,
String collectionName,
String indexName)
删除给定其名称的索引。
|
void |
dropIndex(com.mongodb.client.ClientSession clientSession,
String collectionName,
String indexName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
删除给定其名称的索引。
|
void |
dropIndex(String collectionName,
org.bson.conversions.Bson keys)
在给定用于创建索引的键的情况下删除索引。
|
void |
dropIndex(String collectionName,
org.bson.conversions.Bson keys,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
在给定用于创建索引的键的情况下删除索引。
|
void |
dropIndex(String collectionName,
String indexName)
删除给定其名称的索引。
|
void |
dropIndex(String collectionName,
String indexName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
删除给定其名称的索引。
|
void |
dropIndexes(com.mongodb.client.ClientSession clientSession,
String collectionName)
删除此集合上的所有索引,但 _id 上的默认值除外。
|
void |
dropIndexes(com.mongodb.client.ClientSession clientSession,
String collectionName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
删除此集合上的所有索引,但 _id 上的默认值除外。
|
void |
dropIndexes(String collectionName)
删除此集合上的所有索引,但 _id 上的默认值除外。
|
void |
dropIndexes(String collectionName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
删除此集合上的所有索引,但 _id 上的默认值除外。
|
List<Map<String,Object>> |
getByColumn(com.mongodb.client.ClientSession clientSession,
String collection,
String field,
Object fieldValue) |
List<Map<String,Object>> |
getByColumn(String collectionName,
String field,
Object fieldValue)
根据某一列查询
|
Map<String,Object> |
getById(com.mongodb.client.ClientSession clientSession,
String collectionName,
Serializable id) |
Map<String,Object> |
getById(String collectionName,
Serializable id) |
List<Map<String,Object>> |
getByIds(com.mongodb.client.ClientSession clientSession,
String collectionName,
Collection<Serializable> ids) |
List<Map<String,Object>> |
getByIds(String collectionName,
Collection<Serializable> ids) |
com.mongodb.client.MongoCollection<org.bson.Document> |
getMongoCollection(String collectionName)
获取当前操作对象的连接,以便使用MongoDriver的语法
|
LambdaAggregateChainInjectWrapper |
lambdaAggregate() |
LambdaQueryChainInjectWrapper |
lambdaQuery() |
LambdaUpdateChainInjectWrapper |
lambdaUpdate() |
Map<String,Object> |
limitOne(com.mongodb.client.ClientSession clientSession,
String collectionName,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会取第一条返回 |
Map<String,Object> |
limitOne(String collectionName,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会取第一条返回 |
List<Map<String,Object>> |
list(com.mongodb.client.ClientSession clientSession,
String collectionName)
获取列表 返回Map
|
List<Map<String,Object>> |
list(com.mongodb.client.ClientSession clientSession,
String collectionName,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper) |
List<Map<String,Object>> |
list(String collectionName)
获取列表 返回Map
|
List<Map<String,Object>> |
list(String collectionName,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper) |
List<org.bson.Document> |
listIndexes(com.mongodb.client.ClientSession clientSession,
String collectionName)
获取此集合中的所有索引。
|
List<org.bson.Document> |
listIndexes(String collectionName)
获取此集合中的所有索引。
|
Map<String,Object> |
one(com.mongodb.client.ClientSession clientSession,
String collectionName,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
获取单个,返回T类型的对象
注:如果查询到大于一条数据,会抛出 |
Map<String,Object> |
one(String collectionName,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
获取单个,返回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,
Integer pageNum,
Integer pageSize,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper) |
PageResult<Map<String,Object>> |
page(com.mongodb.client.ClientSession clientSession,
String collectionName,
PageParam pageParam)
分页
|
PageResult<Map<String,Object>> |
page(com.mongodb.client.ClientSession clientSession,
String collectionName,
PageParam pageParam,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper) |
PageResult<Map<String,Object>> |
page(String collectionName,
Integer pageNum,
Integer pageSize)
分页
|
PageResult<Map<String,Object>> |
page(String collectionName,
Integer pageNum,
Integer pageSize,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper) |
PageResult<Map<String,Object>> |
page(String collectionName,
PageParam pageParam)
分页
|
PageResult<Map<String,Object>> |
page(String collectionName,
PageParam pageParam,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper) |
Boolean |
remove(com.mongodb.client.ClientSession clientSession,
String collectionName,
UpdateChainWrapper<Map<String,Object>,?> updateChainWrapper)
根据条件删除
|
Boolean |
remove(String collectionName,
UpdateChainWrapper<Map<String,Object>,?> updateChainWrapper)
根据条件删除
|
Boolean |
removeBatchByIds(com.mongodb.client.ClientSession clientSession,
String collectionName,
Collection<Serializable> idList)
根据id批量删除
|
Boolean |
removeBatchByIds(String collectionName,
Collection<Serializable> idList)
根据id批量删除
|
Boolean |
removeByColumn(com.mongodb.client.ClientSession clientSession,
String collectionName,
String column,
String value)
根据字段删除
|
Boolean |
removeByColumn(String collectionName,
String column,
String value)
根据字段删除
|
Boolean |
removeById(com.mongodb.client.ClientSession clientSession,
String collectionName,
Serializable id)
根据id删除
|
Boolean |
removeById(String collectionName,
Serializable id)
根据id删除
|
Boolean |
save(com.mongodb.client.ClientSession clientSession,
String collectionName,
Map<String,Object> entityMap)
添加
|
Boolean |
save(String collectionName,
Map<String,Object> entityMap)
添加
|
Boolean |
saveBatch(com.mongodb.client.ClientSession clientSession,
String collectionName,
Collection<Map<String,Object>> entityMapList)
添加多个
|
Boolean |
saveBatch(String collectionName,
Collection<Map<String,Object>> entityMapList)
添加多个
|
Boolean |
saveOrUpdate(com.mongodb.client.ClientSession clientSession,
String collectionName,
Map<String,Object> entityMap)
添加或修改
|
Boolean |
saveOrUpdate(String collectionName,
Map<String,Object> entityMap)
添加或修改
|
Boolean |
saveOrUpdateBatch(com.mongodb.client.ClientSession clientSession,
String collectionName,
Collection<Map<String,Object>> entityMapList)
批量添加或修改
|
Boolean |
saveOrUpdateBatch(String collectionName,
Collection<Map<String,Object>> entityMapList)
批量添加或修改
|
List<Map<String,Object>> |
sql(com.mongodb.client.ClientSession clientSession,
String collectionName,
String sql) |
List<Map<String,Object>> |
sql(String collectionName,
String sql) |
Boolean |
update(com.mongodb.client.ClientSession clientSession,
String collectionName,
UpdateChainWrapper<Map<String,Object>,?> updateChainWrapper)
根据条件修改
|
Boolean |
update(String collectionName,
UpdateChainWrapper<Map<String,Object>,?> updateChainWrapper)
根据条件修改
|
Boolean |
updateBatchByIds(com.mongodb.client.ClientSession clientSession,
String collectionName,
Collection<Map<String,Object>> entityMapList)
修改多个,根据id
|
Boolean |
updateBatchByIds(String collectionName,
Collection<Map<String,Object>> entityMapList)
修改多个,根据id
|
Boolean |
updateByColumn(com.mongodb.client.ClientSession clientSession,
String collectionName,
Map<String,Object> entityMap,
String column)
通过列进行修改
|
Boolean |
updateByColumn(String collectionName,
Map<String,Object> entityMap,
String column)
通过列进行修改
|
Boolean |
updateById(com.mongodb.client.ClientSession clientSession,
String collectionName,
Map<String,Object> entityMap)
修改根据id
|
Boolean |
updateById(String collectionName,
Map<String,Object> entityMap)
修改根据id
|
public MongoPlusMapMapper(SqlExecute sqlExecute)
public com.mongodb.client.MongoCollection<org.bson.Document> getMongoCollection(String collectionName)
public LambdaQueryChainInjectWrapper lambdaQuery()
public LambdaAggregateChainInjectWrapper lambdaAggregate()
public LambdaUpdateChainInjectWrapper lambdaUpdate()
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 List<Map<String,Object>> list(String collectionName, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
list 在接口中 InjectQuerypublic List<Map<String,Object>> list(com.mongodb.client.ClientSession clientSession, String collectionName, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
list 在接口中 InjectQuerypublic List<Map<String,Object>> aggregateList(String collectionName, AggregateChainWrapper<Map<String,Object>,?> queryChainWrapper)
aggregateList 在接口中 InjectQuerypublic List<Map<String,Object>> aggregateList(com.mongodb.client.ClientSession clientSession, String collectionName, AggregateChainWrapper<Map<String,Object>,?> queryChainWrapper)
aggregateList 在接口中 InjectQuerypublic Map<String,Object> one(String collectionName, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
InjectQuery注:如果查询到大于一条数据,会抛出MongoQueryException异常
one 在接口中 InjectQuerycollectionName - 集合名public Map<String,Object> one(com.mongodb.client.ClientSession clientSession, String collectionName, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
InjectQuery注:如果查询到大于一条数据,会抛出MongoQueryException异常
one 在接口中 InjectQuerycollectionName - 集合名public Map<String,Object> limitOne(String collectionName, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
InjectQuery注:如果查询到大于一条数据,会取第一条返回
limitOne 在接口中 InjectQuerycollectionName - 集合名public Map<String,Object> limitOne(com.mongodb.client.ClientSession clientSession, String collectionName, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
InjectQuery注:如果查询到大于一条数据,会取第一条返回
limitOne 在接口中 InjectQuerycollectionName - 集合名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, PageParam pageParam, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
page 在接口中 InjectQuerypublic PageResult<Map<String,Object>> page(com.mongodb.client.ClientSession clientSession, String collectionName, PageParam pageParam, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
page 在接口中 InjectQuerypublic 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 PageResult<Map<String,Object>> page(String collectionName, Integer pageNum, Integer pageSize, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
page 在接口中 InjectQuerypublic PageResult<Map<String,Object>> page(com.mongodb.client.ClientSession clientSession, String collectionName, Integer pageNum, Integer pageSize, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
page 在接口中 InjectQuerypublic Map<String,Object> getById(String collectionName, Serializable id)
getById 在接口中 InjectQuerypublic Map<String,Object> getById(com.mongodb.client.ClientSession clientSession, String collectionName, Serializable id)
getById 在接口中 InjectQuerypublic List<Map<String,Object>> getByIds(String collectionName, Collection<Serializable> ids)
getByIds 在接口中 InjectQuerypublic List<Map<String,Object>> getByIds(com.mongodb.client.ClientSession clientSession, String collectionName, Collection<Serializable> ids)
getByIds 在接口中 InjectQuerypublic Boolean save(String collectionName, Map<String,Object> entityMap)
InjectQuerysave 在接口中 InjectQuerycollectionName - 集合名entityMap - 添加的Mappublic Boolean save(com.mongodb.client.ClientSession clientSession, String collectionName, Map<String,Object> entityMap)
InjectQuerysave 在接口中 InjectQuerycollectionName - 集合名entityMap - 添加的Mappublic Boolean saveBatch(String collectionName, Collection<Map<String,Object>> entityMapList)
InjectQuerysaveBatch 在接口中 InjectQuerycollectionName - 集合名entityMapList - map对象集合public Boolean saveBatch(com.mongodb.client.ClientSession clientSession, String collectionName, Collection<Map<String,Object>> entityMapList)
InjectQuerysaveBatch 在接口中 InjectQuerycollectionName - 集合名entityMapList - map对象集合public Boolean saveOrUpdate(String collectionName, Map<String,Object> entityMap)
InjectQuerysaveOrUpdate 在接口中 InjectQuerycollectionName - 集合名entityMap - map对象public Boolean saveOrUpdate(com.mongodb.client.ClientSession clientSession, String collectionName, Map<String,Object> entityMap)
InjectQuerysaveOrUpdate 在接口中 InjectQuerycollectionName - 集合名entityMap - map对象public Boolean saveOrUpdateBatch(String collectionName, Collection<Map<String,Object>> entityMapList)
InjectQuerysaveOrUpdateBatch 在接口中 InjectQuerycollectionName - 集合名entityMapList - map对象集合public Boolean saveOrUpdateBatch(com.mongodb.client.ClientSession clientSession, String collectionName, Collection<Map<String,Object>> entityMapList)
InjectQuerysaveOrUpdateBatch 在接口中 InjectQuerycollectionName - 集合名entityMapList - map对象集合public Boolean updateById(String collectionName, Map<String,Object> entityMap)
InjectQueryupdateById 在接口中 InjectQuerycollectionName - 集合名entityMap - 修改的对象,需要包含idpublic Boolean updateById(com.mongodb.client.ClientSession clientSession, String collectionName, Map<String,Object> entityMap)
InjectQueryupdateById 在接口中 InjectQuerycollectionName - 集合名entityMap - 修改的对象,需要包含idpublic Boolean updateBatchByIds(String collectionName, Collection<Map<String,Object>> entityMapList)
InjectQueryupdateBatchByIds 在接口中 InjectQuerycollectionName - 集合名Booleanpublic Boolean updateBatchByIds(com.mongodb.client.ClientSession clientSession, String collectionName, Collection<Map<String,Object>> entityMapList)
InjectQueryupdateBatchByIds 在接口中 InjectQuerycollectionName - 集合名Booleanpublic Boolean updateByColumn(String collectionName, Map<String,Object> entityMap, String column)
InjectQueryupdateByColumn 在接口中 InjectQuerycollectionName - 集合名entityMap - 修改的实体column - 根据什么列修改public Boolean updateByColumn(com.mongodb.client.ClientSession clientSession, String collectionName, Map<String,Object> entityMap, String column)
InjectQueryupdateByColumn 在接口中 InjectQuerycollectionName - 集合名entityMap - 修改的实体column - 根据什么列修改public Boolean removeById(String collectionName, Serializable id)
InjectQueryremoveById 在接口中 InjectQuerycollectionName - 集合名id - 数据idpublic Boolean removeById(com.mongodb.client.ClientSession clientSession, String collectionName, Serializable id)
InjectQueryremoveById 在接口中 InjectQuerycollectionName - 集合名id - 数据idpublic Boolean removeByColumn(String collectionName, String column, String value)
InjectQueryremoveByColumn 在接口中 InjectQuerycollectionName - 集合名column - 字段value - 值public Boolean removeByColumn(com.mongodb.client.ClientSession clientSession, String collectionName, String column, String value)
InjectQueryremoveByColumn 在接口中 InjectQuerycollectionName - 集合名column - 字段value - 值public Boolean removeBatchByIds(String collectionName, Collection<Serializable> idList)
InjectQueryremoveBatchByIds 在接口中 InjectQuerycollectionName - 集合名idList - id集合public Boolean removeBatchByIds(com.mongodb.client.ClientSession clientSession, String collectionName, Collection<Serializable> idList)
InjectQueryremoveBatchByIds 在接口中 InjectQuerycollectionName - 集合名idList - id集合public long count(String collectionName, QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
InjectQuerycount 在接口中 InjectQuerycollectionName - 集合名queryChainWrapper - 条件构造器longpublic long count(com.mongodb.client.ClientSession clientSession,
String collectionName,
QueryChainWrapper<Map<String,Object>,?> queryChainWrapper)
InjectQuerycount 在接口中 InjectQuerycollectionName - 集合名queryChainWrapper - 条件构造器longpublic List<Map<String,Object>> getByColumn(String collectionName, String field, Object fieldValue)
InjectQuerygetByColumn 在接口中 InjectQueryfield - 字段fieldValue - 字段值public List<Map<String,Object>> getByColumn(com.mongodb.client.ClientSession clientSession, String collection, String field, Object fieldValue)
getByColumn 在接口中 InjectQuerypublic Boolean remove(String collectionName, UpdateChainWrapper<Map<String,Object>,?> updateChainWrapper)
InjectQueryremove 在接口中 InjectQueryupdateChainWrapper - 条件public Boolean remove(com.mongodb.client.ClientSession clientSession, String collectionName, UpdateChainWrapper<Map<String,Object>,?> updateChainWrapper)
InjectQueryremove 在接口中 InjectQueryclientSession - 事务接口updateChainWrapper - 条件public Boolean update(String collectionName, UpdateChainWrapper<Map<String,Object>,?> updateChainWrapper)
InjectQueryupdate 在接口中 InjectQueryupdateChainWrapper - 条件public Boolean update(com.mongodb.client.ClientSession clientSession, String collectionName, UpdateChainWrapper<Map<String,Object>,?> updateChainWrapper)
InjectQueryupdate 在接口中 InjectQueryclientSession - 事务接口updateChainWrapper - 条件public List<Map<String,Object>> sql(String collectionName, String sql)
sql 在接口中 InjectQuerypublic List<Map<String,Object>> sql(com.mongodb.client.ClientSession clientSession, String collectionName, String sql)
sql 在接口中 InjectQuerypublic String createIndex(com.mongodb.client.ClientSession clientSession, String collectionName, org.bson.conversions.Bson bson)
InjectQuerycreateIndex 在接口中 InjectQuerybson - 描述索引键的对象,该对象不能为 nullpublic String createIndex(String collectionName, org.bson.conversions.Bson bson)
InjectQuerycreateIndex 在接口中 InjectQuerybson - 描述索引键的对象,该对象不能为 nullpublic String createIndex(com.mongodb.client.ClientSession clientSession, String collectionName, org.bson.conversions.Bson bson, com.mongodb.client.model.IndexOptions indexOptions)
InjectQuerycreateIndex 在接口中 InjectQueryclientSession - 要与此操作关联的客户端会话bson - 描述索引键的对象,该对象不能为 nullindexOptions - 指数的选项public String createIndex(String collectionName, org.bson.conversions.Bson bson, com.mongodb.client.model.IndexOptions indexOptions)
InjectQuerycreateIndex 在接口中 InjectQuerybson - 描述索引键的对象,该对象不能为 nullindexOptions - 指数的选项public List<String> createIndexes(String collectionName, List<com.mongodb.client.model.IndexModel> indexes)
InjectQuerycreateIndexes 在接口中 InjectQueryindexes - 索引列表public List<String> createIndexes(String collectionName, List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions)
InjectQuerycreateIndexes 在接口中 InjectQueryindexes - 索引列表createIndexOptions - 创建索引时要使用的选项public List<String> createIndexes(com.mongodb.client.ClientSession clientSession, String collectionName, List<com.mongodb.client.model.IndexModel> indexes)
InjectQuerycreateIndexes 在接口中 InjectQueryclientSession - 要与此操作关联的客户端会话indexes - 索引列表public List<String> createIndexes(com.mongodb.client.ClientSession clientSession, String collectionName, List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions)
InjectQuerycreateIndexes 在接口中 InjectQueryclientSession - 要与此操作关联的客户端会话indexes - 索引列表createIndexOptions - 创建索引时要使用的选项public List<org.bson.Document> listIndexes(String collectionName)
InjectQuerylistIndexes 在接口中 InjectQuerypublic List<org.bson.Document> listIndexes(com.mongodb.client.ClientSession clientSession, String collectionName)
InjectQuerylistIndexes 在接口中 InjectQueryclientSession - 要与此操作关联的客户端会话public void dropIndex(String collectionName, String indexName)
InjectQuerydropIndex 在接口中 InjectQueryindexName - 要删除的索引的名称public void dropIndex(String collectionName, String indexName, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
InjectQuerydropIndex 在接口中 InjectQueryindexName - 要删除的索引的名称dropIndexOptions - 删除索引时要使用的选项public void dropIndex(String collectionName, org.bson.conversions.Bson keys)
InjectQuerydropIndex 在接口中 InjectQuerykeys - 要删除的索引的键public void dropIndex(String collectionName, org.bson.conversions.Bson keys, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
InjectQuerydropIndex 在接口中 InjectQuerykeys - 要删除的索引的键dropIndexOptions - 删除索引时要使用的选项public void dropIndex(com.mongodb.client.ClientSession clientSession,
String collectionName,
String indexName)
InjectQuerydropIndex 在接口中 InjectQueryclientSession - 要与此操作关联的客户端会话indexName - 要删除的索引的名称public void dropIndex(com.mongodb.client.ClientSession clientSession,
String collectionName,
org.bson.conversions.Bson keys)
InjectQuerydropIndex 在接口中 InjectQueryclientSession - 要与此操作关联的客户端会话keys - 要删除的索引的键public void dropIndex(com.mongodb.client.ClientSession clientSession,
String collectionName,
String indexName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
InjectQuerydropIndex 在接口中 InjectQueryclientSession - 要与此操作关联的客户端会话indexName - 要删除的索引的名称dropIndexOptions - 删除索引时要使用的选项public void dropIndex(com.mongodb.client.ClientSession clientSession,
String collectionName,
org.bson.conversions.Bson keys,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
InjectQuerydropIndex 在接口中 InjectQueryclientSession - 要与此操作关联的客户端会话keys - 要删除的索引的键dropIndexOptions - 删除索引时要使用的选项public void dropIndexes(String collectionName)
InjectQuerydropIndexes 在接口中 InjectQuerypublic void dropIndexes(com.mongodb.client.ClientSession clientSession,
String collectionName)
InjectQuerydropIndexes 在接口中 InjectQueryclientSession - 要与此操作关联的客户端会话public void dropIndexes(String collectionName, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
InjectQuerydropIndexes 在接口中 InjectQuerydropIndexOptions - 删除索引时要使用的选项public void dropIndexes(com.mongodb.client.ClientSession clientSession,
String collectionName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
InjectQuerydropIndexes 在接口中 InjectQueryclientSession - 要与此操作关联的客户端会话dropIndexOptions - 删除索引时要使用的选项public long count(String collectionName)
CommInjectQuerycount 在接口中 CommInjectQuerycollectionName - 集合名longpublic long count(com.mongodb.client.ClientSession clientSession,
String collectionName)
CommInjectQuerycount 在接口中 CommInjectQuerycollectionName - 集合名longCopyright © 2023. All rights reserved.