public class SqlExecute extends Object
| 构造器和说明 |
|---|
SqlExecute() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
createIndex(org.bson.conversions.Bson bson,
com.mongodb.client.model.IndexOptions indexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
String |
createIndex(org.bson.conversions.Bson bson,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
String |
createIndex(com.mongodb.client.ClientSession clientSession,
org.bson.conversions.Bson bson,
com.mongodb.client.model.IndexOptions indexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
String |
createIndex(com.mongodb.client.ClientSession clientSession,
org.bson.conversions.Bson bson,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
List<String> |
createIndexes(com.mongodb.client.ClientSession clientSession,
List<com.mongodb.client.model.IndexModel> indexes,
com.mongodb.client.model.CreateIndexOptions createIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
List<String> |
createIndexes(com.mongodb.client.ClientSession clientSession,
List<com.mongodb.client.model.IndexModel> indexes,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
List<String> |
createIndexes(List<com.mongodb.client.model.IndexModel> indexes,
com.mongodb.client.model.CreateIndexOptions createIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
List<String> |
createIndexes(List<com.mongodb.client.model.IndexModel> indexes,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
<T> List<T> |
doAggregateList(com.mongodb.client.ClientSession clientSession,
List<BaseAggregate> aggregateList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
com.mongodb.BasicDBObject optionsBasicDBObject,
Class<T> clazz) |
List<Map<String,Object>> |
doAggregateList(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<BaseAggregate> aggregateList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
com.mongodb.BasicDBObject optionsBasicDBObject) |
<E> List<E> |
doAggregateList(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<BaseAggregate> aggregateList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
com.mongodb.BasicDBObject optionsBasicDBObject,
Class<E> clazz) |
<T> List<T> |
doAggregateList(List<BaseAggregate> aggregateList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
com.mongodb.BasicDBObject optionsBasicDBObject,
Class<T> clazz) |
List<Map<String,Object>> |
doAggregateList(String collectionName,
List<BaseAggregate> aggregateList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
com.mongodb.BasicDBObject optionsBasicDBObject) |
<E> List<E> |
doAggregateList(String collectionName,
List<BaseAggregate> aggregateList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
com.mongodb.BasicDBObject optionsBasicDBObject,
Class<E> clazz) |
long |
doCount(Class<?> clazz) |
long |
doCount(com.mongodb.client.ClientSession clientSession,
Class<?> clazz) |
long |
doCount(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
Class<?> clazz) |
long |
doCount(com.mongodb.client.ClientSession clientSession,
String collectionName) |
long |
doCount(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<CompareCondition> compareConditionList) |
long |
doCount(List<CompareCondition> compareConditionList,
Class<?> clazz) |
long |
doCount(String collectionName) |
long |
doCount(String collectionName,
List<CompareCondition> compareConditionList) |
<T> List<T> |
doGetByColumn(com.mongodb.client.ClientSession clientSession,
String column,
Object value,
Class<T> clazz) |
List<Map<String,Object>> |
doGetByColumn(com.mongodb.client.ClientSession clientSession,
String collectionName,
String column,
Object value) |
<T> List<T> |
doGetByColumn(String column,
Object value,
Class<T> clazz) |
List<Map<String,Object>> |
doGetByColumn(String collectionName,
String column,
Object value) |
<T> T |
doGetById(com.mongodb.client.ClientSession clientSession,
Serializable id,
Class<T> clazz) |
Map<String,Object> |
doGetById(com.mongodb.client.ClientSession clientSession,
String collectionName,
Serializable id) |
<T> T |
doGetById(Serializable id,
Class<T> clazz) |
Map<String,Object> |
doGetById(String collectionName,
Serializable id) |
<T> List<T> |
doGetByIds(com.mongodb.client.ClientSession clientSession,
Collection<Serializable> ids,
Class<T> clazz) |
List<Map<String,Object>> |
doGetByIds(com.mongodb.client.ClientSession clientSession,
String collectionName,
Collection<Serializable> ids) |
<T> List<T> |
doGetByIds(Collection<Serializable> ids,
Class<T> clazz) |
List<Map<String,Object>> |
doGetByIds(String collectionName,
Collection<Serializable> ids) |
boolean |
doIsExist(com.mongodb.client.ClientSession clientSession,
Serializable id,
Class<?> clazz) |
boolean |
doIsExist(Serializable id,
Class<?> clazz) |
boolean |
doIsExistMap(com.mongodb.client.ClientSession clientSession,
String collectionName,
Serializable id) |
boolean |
doIsExistMap(String collectionName,
Serializable id) |
<T> T |
doLimitOne(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
List<Order> orderList,
Class<T> clazz) |
Map<String,Object> |
doLimitOne(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<CompareCondition> compareConditionList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
List<Order> orderList) |
<T> T |
doLimitOne(List<CompareCondition> compareConditionList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
List<Order> orderList,
Class<T> clazz) |
Map<String,Object> |
doLimitOne(String collectionName,
List<CompareCondition> compareConditionList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
List<Order> orderList) |
<T> List<T> |
doList(Class<T> clazz) |
<T> List<T> |
doList(com.mongodb.client.ClientSession clientSession,
Class<T> clazz) |
<T> List<T> |
doList(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
List<Order> orderList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
Class<T> clazz) |
List<Map<String,Object>> |
doList(com.mongodb.client.ClientSession clientSession,
String collectionName) |
List<Map<String,Object>> |
doList(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<CompareCondition> compareConditionList,
List<Order> orderList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList) |
<T> List<T> |
doList(List<CompareCondition> compareConditionList,
List<Order> orderList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
Class<T> clazz) |
List<Map<String,Object>> |
doList(String collectionName) |
List<Map<String,Object>> |
doList(String collectionName,
List<CompareCondition> compareConditionList,
List<Order> orderList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList) |
<T> T |
doOne(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
Class<T> clazz) |
Map<String,Object> |
doOne(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<CompareCondition> compareConditionList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList) |
<T> T |
doOne(List<CompareCondition> compareConditionList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
Class<T> clazz) |
Map<String,Object> |
doOne(String collectionName,
List<CompareCondition> compareConditionList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList) |
<T> PageResult<T> |
doPage(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
List<Order> orderList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
Integer pageNum,
Integer pageSize,
Class<T> clazz) |
PageResult<Map<String,Object>> |
doPage(com.mongodb.client.ClientSession clientSession,
String collectionName,
Integer pageNum,
Integer pageSize) |
PageResult<Map<String,Object>> |
doPage(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<CompareCondition> compareConditionList,
List<Order> orderList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
Integer pageNum,
Integer pageSize) |
<T> PageResult<T> |
doPage(List<CompareCondition> compareConditionList,
List<Order> orderList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
Integer pageNum,
Integer pageSize,
Class<T> clazz) |
PageResult<Map<String,Object>> |
doPage(String collectionName,
Integer pageNum,
Integer pageSize) |
PageResult<Map<String,Object>> |
doPage(String collectionName,
List<CompareCondition> compareConditionList,
List<Order> orderList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
Integer pageNum,
Integer pageSize) |
Boolean |
doRemove(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
Class<?> clazz) |
Boolean |
doRemove(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<CompareCondition> compareConditionList) |
Boolean |
doRemove(List<CompareCondition> compareConditionList,
Class<?> clazz) |
Boolean |
doRemove(String collectionName,
List<CompareCondition> compareConditionList) |
Boolean |
doRemoveBatchByIds(com.mongodb.client.ClientSession clientSession,
Collection<Serializable> idList,
Class<?> clazz) |
Boolean |
doRemoveBatchByIds(com.mongodb.client.ClientSession clientSession,
String collectionName,
Collection<Serializable> idList) |
Boolean |
doRemoveBatchByIds(Collection<Serializable> idList,
Class<?> clazz) |
Boolean |
doRemoveBatchByIds(String collectionName,
Collection<Serializable> idList) |
<T> Boolean |
doRemoveByColumn(com.mongodb.client.ClientSession clientSession,
SFunction<T,Object> column,
Object value,
Class<T> clazz) |
Boolean |
doRemoveByColumn(com.mongodb.client.ClientSession clientSession,
String column,
Object value,
Class<?> clazz) |
Boolean |
doRemoveByColumn(com.mongodb.client.ClientSession clientSession,
String collectionName,
String column,
Object value) |
<T> Boolean |
doRemoveByColumn(SFunction<T,Object> column,
Object value,
Class<T> clazz) |
Boolean |
doRemoveByColumn(String column,
Object value,
Class<?> clazz) |
Boolean |
doRemoveByColumn(String collectionName,
String column,
Object value) |
Boolean |
doRemoveById(com.mongodb.client.ClientSession clientSession,
Serializable id,
Class<?> clazz) |
Boolean |
doRemoveById(com.mongodb.client.ClientSession clientSession,
String collectionName,
Serializable id) |
Boolean |
doRemoveById(Serializable id,
Class<?> clazz) |
Boolean |
doRemoveById(String collectionName,
Serializable id) |
Boolean |
doSave(com.mongodb.client.ClientSession clientSession,
String collectionName,
Map<String,Object> entityMap) |
<T> Boolean |
doSave(com.mongodb.client.ClientSession clientSession,
T entity) |
Boolean |
doSave(String collectionName,
Map<String,Object> entityMap) |
<T> Boolean |
doSave(T entity) |
<T> Boolean |
doSaveBatch(com.mongodb.client.ClientSession clientSession,
Collection<T> entityList) |
Boolean |
doSaveBatch(com.mongodb.client.ClientSession clientSession,
String collectionName,
Collection<Map<String,Object>> entityList) |
<T> Boolean |
doSaveBatch(Collection<T> entityList) |
Boolean |
doSaveBatch(String collectionName,
Collection<Map<String,Object>> entityList) |
Boolean |
doSaveOrUpdate(com.mongodb.client.ClientSession clientSession,
String collectionName,
Map<String,Object> entityMap) |
<T> Boolean |
doSaveOrUpdate(com.mongodb.client.ClientSession clientSession,
T entity) |
Boolean |
doSaveOrUpdate(String collectionName,
Map<String,Object> entityMap) |
<T> Boolean |
doSaveOrUpdate(T entity) |
<T> Boolean |
doSaveOrUpdateBatch(com.mongodb.client.ClientSession clientSession,
Collection<T> entityList) |
Boolean |
doSaveOrUpdateBatch(com.mongodb.client.ClientSession clientSession,
String collectionName,
Collection<Map<String,Object>> entityList) |
<T> Boolean |
doSaveOrUpdateBatch(Collection<T> entityList) |
Boolean |
doSaveOrUpdateBatch(String collectionName,
Collection<Map<String,Object>> entityList) |
<T> List<T> |
doSql(com.mongodb.client.ClientSession clientSession,
String sql,
Class<T> clazz) |
List<Map<String,Object>> |
doSql(com.mongodb.client.ClientSession clientSession,
String collectionName,
String sql) |
<T> List<T> |
doSql(String sql,
Class<T> clazz) |
List<Map<String,Object>> |
doSql(String collectionName,
String sql) |
Boolean |
doUpdate(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
Class<?> clazz) |
Boolean |
doUpdate(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<CompareCondition> compareConditionList) |
Boolean |
doUpdate(List<CompareCondition> compareConditionList,
Class<?> clazz) |
Boolean |
doUpdate(String collectionName,
List<CompareCondition> compareConditionList) |
<T> Boolean |
doUpdateBatchByIds(com.mongodb.client.ClientSession clientSession,
Collection<T> entityList) |
Boolean |
doUpdateBatchByIds(com.mongodb.client.ClientSession clientSession,
String collectionName,
Collection<Map<String,Object>> entityList) |
<T> Boolean |
doUpdateBatchByIds(Collection<T> entityList) |
Boolean |
doUpdateBatchByIds(String collectionName,
Collection<Map<String,Object>> entityList) |
Boolean |
doUpdateByColumn(com.mongodb.client.ClientSession clientSession,
String collectionName,
Map<String,Object> entityMap,
String column) |
<T> Boolean |
doUpdateByColumn(com.mongodb.client.ClientSession clientSession,
T entity,
SFunction<T,Object> column) |
<T> Boolean |
doUpdateByColumn(com.mongodb.client.ClientSession clientSession,
T entity,
String column) |
Boolean |
doUpdateByColumn(String collectionName,
Map<String,Object> entityMap,
String column) |
<T> Boolean |
doUpdateByColumn(T entity,
SFunction<T,Object> column) |
<T> Boolean |
doUpdateByColumn(T entity,
String column) |
Boolean |
doUpdateById(com.mongodb.client.ClientSession clientSession,
String collectionName,
Map<String,Object> entityMap) |
<T> Boolean |
doUpdateById(com.mongodb.client.ClientSession clientSession,
T entity) |
Boolean |
doUpdateById(String collectionName,
Map<String,Object> entityMap) |
<T> Boolean |
doUpdateById(T entity) |
void |
dropIndex(org.bson.conversions.Bson keys,
com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndex(org.bson.conversions.Bson keys,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndex(com.mongodb.client.ClientSession clientSession,
org.bson.conversions.Bson keys,
com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndex(com.mongodb.client.ClientSession clientSession,
org.bson.conversions.Bson keys,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndex(com.mongodb.client.ClientSession clientSession,
String indexName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndex(com.mongodb.client.ClientSession clientSession,
String indexName,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndex(String indexName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndex(String indexName,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndexes(com.mongodb.client.ClientSession clientSession,
com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndexes(com.mongodb.client.ClientSession clientSession,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndexes(com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
dropIndexes(com.mongodb.client.MongoCollection<org.bson.Document> collection) |
long |
executeCount(com.mongodb.client.ClientSession clientSession,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
long |
executeCountByCondition(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
Boolean |
executeRemove(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
Boolean |
executeRemoveBatchByIds(com.mongodb.client.ClientSession clientSession,
Collection<Serializable> idList,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
Boolean |
executeRemoveByColumn(com.mongodb.client.ClientSession clientSession,
String column,
Object value,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
Boolean |
executeUpdate(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
BaseProperty |
getBaseProperty() |
com.mongodb.client.MongoCollection<org.bson.Document> |
getCollection(Class<?> clazz) |
com.mongodb.client.MongoCollection<org.bson.Document> |
getCollection(String collectionName) |
Map<String,com.mongodb.client.MongoCollection<org.bson.Document>> |
getCollectionMap() |
CollectionNameConvert |
getCollectionNameConvert() |
ConnectMongoDB |
getConnectMongoDB() |
String |
getCreateIndex() |
com.mongodb.client.MongoClient |
getMongoClient() |
List<SlaveDataSource> |
getSlaveDataSources() |
void |
init(Class<?> clazz) |
List<org.bson.Document> |
listIndexes(com.mongodb.client.ClientSession clientSession,
com.mongodb.client.MongoCollection<org.bson.Document> collection) |
List<org.bson.Document> |
listIndexes(com.mongodb.client.MongoCollection<org.bson.Document> collection) |
void |
setBaseProperty(BaseProperty baseProperty) |
void |
setCollectionMap(Map<String,com.mongodb.client.MongoCollection<org.bson.Document>> collectionMap) |
void |
setCollectionNameConvert(CollectionNameConvert collectionNameConvert) |
void |
setConnectMongoDB(ConnectMongoDB connectMongoDB) |
void |
setCreateIndex(String createIndex) |
void |
setMongoClient(com.mongodb.client.MongoClient mongoClient) |
void |
setSlaveDataSources(List<SlaveDataSource> slaveDataSources) |
public void init(Class<?> clazz)
public <T> Boolean doSave(T entity)
public <T> Boolean doSave(com.mongodb.client.ClientSession clientSession, T entity)
public Boolean doSave(com.mongodb.client.ClientSession clientSession, String collectionName, Map<String,Object> entityMap)
public <T> Boolean doSaveBatch(Collection<T> entityList)
public <T> Boolean doSaveBatch(com.mongodb.client.ClientSession clientSession, Collection<T> entityList)
public Boolean doSaveBatch(String collectionName, Collection<Map<String,Object>> entityList)
public Boolean doSaveBatch(com.mongodb.client.ClientSession clientSession, String collectionName, Collection<Map<String,Object>> entityList)
public <T> Boolean doSaveOrUpdate(T entity)
public <T> Boolean doSaveOrUpdate(com.mongodb.client.ClientSession clientSession, T entity)
public Boolean doSaveOrUpdate(com.mongodb.client.ClientSession clientSession, String collectionName, Map<String,Object> entityMap)
public <T> Boolean doSaveOrUpdateBatch(Collection<T> entityList)
public <T> Boolean doSaveOrUpdateBatch(com.mongodb.client.ClientSession clientSession, Collection<T> entityList)
public Boolean doSaveOrUpdateBatch(String collectionName, Collection<Map<String,Object>> entityList)
public Boolean doSaveOrUpdateBatch(com.mongodb.client.ClientSession clientSession, String collectionName, Collection<Map<String,Object>> entityList)
public <T> Boolean doUpdateById(T entity)
public <T> Boolean doUpdateById(com.mongodb.client.ClientSession clientSession, T entity)
public Boolean doUpdateById(com.mongodb.client.ClientSession clientSession, String collectionName, Map<String,Object> entityMap)
public <T> Boolean doUpdateBatchByIds(Collection<T> entityList)
public <T> Boolean doUpdateBatchByIds(com.mongodb.client.ClientSession clientSession, Collection<T> entityList)
public Boolean doUpdateBatchByIds(String collectionName, Collection<Map<String,Object>> entityList)
public Boolean doUpdateBatchByIds(com.mongodb.client.ClientSession clientSession, String collectionName, Collection<Map<String,Object>> entityList)
public <T> Boolean doUpdateByColumn(com.mongodb.client.ClientSession clientSession, T entity, SFunction<T,Object> column)
public <T> Boolean doUpdateByColumn(com.mongodb.client.ClientSession clientSession, T entity, String column)
public Boolean doUpdateByColumn(String collectionName, Map<String,Object> entityMap, String column)
public Boolean doUpdateByColumn(com.mongodb.client.ClientSession clientSession, String collectionName, Map<String,Object> entityMap, String column)
public Boolean doRemoveById(Serializable id, Class<?> clazz)
public Boolean doRemoveById(com.mongodb.client.ClientSession clientSession, Serializable id, Class<?> clazz)
public Boolean doRemoveById(String collectionName, Serializable id)
public Boolean doRemoveById(com.mongodb.client.ClientSession clientSession, String collectionName, Serializable id)
public <T> Boolean doRemoveByColumn(SFunction<T,Object> column, Object value, Class<T> clazz)
public <T> Boolean doRemoveByColumn(com.mongodb.client.ClientSession clientSession, SFunction<T,Object> column, Object value, Class<T> clazz)
public Boolean doRemoveByColumn(com.mongodb.client.ClientSession clientSession, String column, Object value, Class<?> clazz)
public Boolean doRemoveByColumn(String collectionName, String column, Object value)
public Boolean doRemoveByColumn(com.mongodb.client.ClientSession clientSession, String collectionName, String column, Object value)
public Boolean executeRemoveByColumn(com.mongodb.client.ClientSession clientSession, String column, Object value, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public Boolean doRemoveBatchByIds(Collection<Serializable> idList, Class<?> clazz)
public Boolean doRemoveBatchByIds(com.mongodb.client.ClientSession clientSession, Collection<Serializable> idList, Class<?> clazz)
public Boolean doRemoveBatchByIds(String collectionName, Collection<Serializable> idList)
public Boolean doRemoveBatchByIds(com.mongodb.client.ClientSession clientSession, String collectionName, Collection<Serializable> idList)
public Boolean executeRemoveBatchByIds(com.mongodb.client.ClientSession clientSession, Collection<Serializable> idList, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public List<Map<String,Object>> doList(com.mongodb.client.ClientSession clientSession, String collectionName)
public List<Map<String,Object>> doList(String collectionName, List<CompareCondition> compareConditionList, List<Order> orderList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList)
public List<Map<String,Object>> doList(com.mongodb.client.ClientSession clientSession, String collectionName, List<CompareCondition> compareConditionList, List<Order> orderList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList)
public PageResult<Map<String,Object>> doPage(String collectionName, List<CompareCondition> compareConditionList, List<Order> orderList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList, Integer pageNum, Integer pageSize)
public PageResult<Map<String,Object>> doPage(com.mongodb.client.ClientSession clientSession, String collectionName, List<CompareCondition> compareConditionList, List<Order> orderList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList, Integer pageNum, Integer pageSize)
public PageResult<Map<String,Object>> doPage(String collectionName, Integer pageNum, Integer pageSize)
public PageResult<Map<String,Object>> doPage(com.mongodb.client.ClientSession clientSession, String collectionName, Integer pageNum, Integer pageSize)
public Map<String,Object> doOne(String collectionName, List<CompareCondition> compareConditionList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList)
public Map<String,Object> doOne(com.mongodb.client.ClientSession clientSession, String collectionName, List<CompareCondition> compareConditionList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList)
public Map<String,Object> doLimitOne(String collectionName, List<CompareCondition> compareConditionList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList, List<Order> orderList)
public Map<String,Object> doLimitOne(com.mongodb.client.ClientSession clientSession, String collectionName, List<CompareCondition> compareConditionList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList, List<Order> orderList)
public Map<String,Object> doGetById(String collectionName, Serializable id)
public Map<String,Object> doGetById(com.mongodb.client.ClientSession clientSession, String collectionName, Serializable id)
public List<Map<String,Object>> doGetByIds(String collectionName, Collection<Serializable> ids)
public List<Map<String,Object>> doGetByIds(com.mongodb.client.ClientSession clientSession, String collectionName, Collection<Serializable> ids)
public <T> List<T> doList(List<CompareCondition> compareConditionList, List<Order> orderList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList, Class<T> clazz)
public <T> List<T> doList(com.mongodb.client.ClientSession clientSession, List<CompareCondition> compareConditionList, List<Order> orderList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList, Class<T> clazz)
public <T> T doOne(List<CompareCondition> compareConditionList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList, Class<T> clazz)
public <T> T doOne(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
Class<T> clazz)
public <T> T doLimitOne(List<CompareCondition> compareConditionList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList, List<Order> orderList, Class<T> clazz)
public <T> T doLimitOne(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
List<Projection> projectionList,
List<com.mongodb.BasicDBObject> basicDBObjectList,
List<Order> orderList,
Class<T> clazz)
public <T> PageResult<T> doPage(List<CompareCondition> compareConditionList, List<Order> orderList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList, Integer pageNum, Integer pageSize, Class<T> clazz)
public <T> PageResult<T> doPage(com.mongodb.client.ClientSession clientSession, List<CompareCondition> compareConditionList, List<Order> orderList, List<Projection> projectionList, List<com.mongodb.BasicDBObject> basicDBObjectList, Integer pageNum, Integer pageSize, Class<T> clazz)
public <T> T doGetById(Serializable id, Class<T> clazz)
public <T> T doGetById(com.mongodb.client.ClientSession clientSession,
Serializable id,
Class<T> clazz)
public boolean doIsExist(Serializable id, Class<?> clazz)
public boolean doIsExist(com.mongodb.client.ClientSession clientSession,
Serializable id,
Class<?> clazz)
public boolean doIsExistMap(String collectionName, Serializable id)
public boolean doIsExistMap(com.mongodb.client.ClientSession clientSession,
String collectionName,
Serializable id)
public <T> List<T> doGetByIds(Collection<Serializable> ids, Class<T> clazz)
public <T> List<T> doGetByIds(com.mongodb.client.ClientSession clientSession, Collection<Serializable> ids, Class<T> clazz)
public <T> List<T> doGetByColumn(com.mongodb.client.ClientSession clientSession, String column, Object value, Class<T> clazz)
public List<Map<String,Object>> doGetByColumn(String collectionName, String column, Object value)
public List<Map<String,Object>> doGetByColumn(com.mongodb.client.ClientSession clientSession, String collectionName, String column, Object value)
public <T> List<T> doSql(com.mongodb.client.ClientSession clientSession, String sql, Class<T> clazz)
public List<Map<String,Object>> doSql(com.mongodb.client.ClientSession clientSession, String collectionName, String sql)
public Boolean doUpdate(List<CompareCondition> compareConditionList, Class<?> clazz)
public Boolean doUpdate(com.mongodb.client.ClientSession clientSession, List<CompareCondition> compareConditionList, Class<?> clazz)
public Boolean doUpdate(String collectionName, List<CompareCondition> compareConditionList)
public Boolean doUpdate(com.mongodb.client.ClientSession clientSession, String collectionName, List<CompareCondition> compareConditionList)
public Boolean executeUpdate(com.mongodb.client.ClientSession clientSession, List<CompareCondition> compareConditionList, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public Boolean doRemove(List<CompareCondition> compareConditionList, Class<?> clazz)
public Boolean doRemove(com.mongodb.client.ClientSession clientSession, List<CompareCondition> compareConditionList, Class<?> clazz)
public Boolean doRemove(String collectionName, List<CompareCondition> compareConditionList)
public Boolean doRemove(com.mongodb.client.ClientSession clientSession, String collectionName, List<CompareCondition> compareConditionList)
public Boolean executeRemove(com.mongodb.client.ClientSession clientSession, List<CompareCondition> compareConditionList, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public long doCount(String collectionName, List<CompareCondition> compareConditionList)
public long doCount(com.mongodb.client.ClientSession clientSession,
String collectionName,
List<CompareCondition> compareConditionList)
public long doCount(List<CompareCondition> compareConditionList, Class<?> clazz)
public long doCount(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
Class<?> clazz)
public long executeCountByCondition(com.mongodb.client.ClientSession clientSession,
List<CompareCondition> compareConditionList,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public long doCount(String collectionName)
public long doCount(com.mongodb.client.ClientSession clientSession,
String collectionName)
public long doCount(Class<?> clazz)
public long doCount(com.mongodb.client.ClientSession clientSession,
Class<?> clazz)
public long executeCount(com.mongodb.client.ClientSession clientSession,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public String createIndex(org.bson.conversions.Bson bson, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public String createIndex(com.mongodb.client.ClientSession clientSession, org.bson.conversions.Bson bson, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public String createIndex(org.bson.conversions.Bson bson, com.mongodb.client.model.IndexOptions indexOptions, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public String createIndex(com.mongodb.client.ClientSession clientSession, org.bson.conversions.Bson bson, com.mongodb.client.model.IndexOptions indexOptions, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public List<String> createIndexes(List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public List<String> createIndexes(com.mongodb.client.ClientSession clientSession, List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public List<String> createIndexes(List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public List<String> createIndexes(com.mongodb.client.ClientSession clientSession, List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public List<org.bson.Document> listIndexes(com.mongodb.client.MongoCollection<org.bson.Document> collection)
public List<org.bson.Document> listIndexes(com.mongodb.client.ClientSession clientSession, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndex(String indexName, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndex(com.mongodb.client.ClientSession clientSession,
String indexName,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndex(String indexName, com.mongodb.client.model.DropIndexOptions dropIndexOptions, com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndex(com.mongodb.client.ClientSession clientSession,
String indexName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndex(org.bson.conversions.Bson keys,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndex(com.mongodb.client.ClientSession clientSession,
org.bson.conversions.Bson keys,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndex(org.bson.conversions.Bson keys,
com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndex(com.mongodb.client.ClientSession clientSession,
org.bson.conversions.Bson keys,
com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndexes(com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndexes(com.mongodb.client.ClientSession clientSession,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndexes(com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public void dropIndexes(com.mongodb.client.ClientSession clientSession,
com.mongodb.client.model.DropIndexOptions dropIndexOptions,
com.mongodb.client.MongoCollection<org.bson.Document> collection)
public <T> List<T> doAggregateList(List<BaseAggregate> aggregateList, List<com.mongodb.BasicDBObject> basicDBObjectList, com.mongodb.BasicDBObject optionsBasicDBObject, Class<T> clazz)
public <T> List<T> doAggregateList(com.mongodb.client.ClientSession clientSession, List<BaseAggregate> aggregateList, List<com.mongodb.BasicDBObject> basicDBObjectList, com.mongodb.BasicDBObject optionsBasicDBObject, Class<T> clazz)
public List<Map<String,Object>> doAggregateList(String collectionName, List<BaseAggregate> aggregateList, List<com.mongodb.BasicDBObject> basicDBObjectList, com.mongodb.BasicDBObject optionsBasicDBObject)
public List<Map<String,Object>> doAggregateList(com.mongodb.client.ClientSession clientSession, String collectionName, List<BaseAggregate> aggregateList, List<com.mongodb.BasicDBObject> basicDBObjectList, com.mongodb.BasicDBObject optionsBasicDBObject)
public <E> List<E> doAggregateList(String collectionName, List<BaseAggregate> aggregateList, List<com.mongodb.BasicDBObject> basicDBObjectList, com.mongodb.BasicDBObject optionsBasicDBObject, Class<E> clazz)
public <E> List<E> doAggregateList(com.mongodb.client.ClientSession clientSession, String collectionName, List<BaseAggregate> aggregateList, List<com.mongodb.BasicDBObject> basicDBObjectList, com.mongodb.BasicDBObject optionsBasicDBObject, Class<E> clazz)
public com.mongodb.client.MongoCollection<org.bson.Document> getCollection(Class<?> clazz)
public com.mongodb.client.MongoCollection<org.bson.Document> getCollection(String collectionName)
public Map<String,com.mongodb.client.MongoCollection<org.bson.Document>> getCollectionMap()
public void setCollectionMap(Map<String,com.mongodb.client.MongoCollection<org.bson.Document>> collectionMap)
public List<SlaveDataSource> getSlaveDataSources()
public void setSlaveDataSources(List<SlaveDataSource> slaveDataSources)
public BaseProperty getBaseProperty()
public void setBaseProperty(BaseProperty baseProperty)
public com.mongodb.client.MongoClient getMongoClient()
public CollectionNameConvert getCollectionNameConvert()
public void setCollectionNameConvert(CollectionNameConvert collectionNameConvert)
public void setMongoClient(com.mongodb.client.MongoClient mongoClient)
public ConnectMongoDB getConnectMongoDB()
public void setConnectMongoDB(ConnectMongoDB connectMongoDB)
public String getCreateIndex()
public void setCreateIndex(String createIndex)
Copyright © 2023. All rights reserved.