接口 MongoQuery
-
- 所有已知实现类:
SpringMongoQuery
public interface MongoQuery- 版本:
- v1.0, Date:2022年6月14日
- 作者:
- zhongxuchen
-
-
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 longcount(String query, String collectionName)<T> List<T>find(String query, Class<T> entityClass, String collectionName, Long skip, Integer limit)com.mongodb.client.MongoCollection<org.bson.Document>getCollection(String collectionName)default voidinitialize(SqlToyContext sqlToyContext)初始化
-
-
-
方法详细资料
-
getCollection
com.mongodb.client.MongoCollection<org.bson.Document> getCollection(String collectionName)
- 参数:
collectionName-- 返回:
-
find
<T> List<T> find(String query, Class<T> entityClass, String collectionName, Long skip, Integer limit)
- 类型参数:
T-- 参数:
query-entityClass-collectionName-skip- 分页skip,即开始行limit- 只取数据记录量- 返回:
-
initialize
default void initialize(SqlToyContext sqlToyContext)
初始化- 参数:
sqlToyContext-
-
-