public class MongoDbTemplate extends MongoAccessor
MongoAccessor}
Created by wuwenbin on 2017/4/23.LOG, mongoTemplate| 构造器和说明 |
|---|
MongoDbTemplate(org.springframework.data.mongodb.core.MongoTemplate mongoTemplate) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> Page<T> |
findPageListBeanByQuery(org.springframework.data.mongodb.core.query.Query query,
Page page,
Class<T> clazz)
根据查询条件来查找分页信息
|
<T> Page |
findPageListBeanBySort(String sortField,
org.springframework.data.domain.Sort.Direction direction,
Page page,
Class<T> clazz)
按某字段排序查出page分页信息
|
protected PageParam |
getPageParam(Page page)
获取分页分页信息
|
dropCollectionByName, findBeanByField, findBeanByFields, findBeanById, findBeanByMongoId, findBeanByQuery, findBeanByRegxPattern, findBeanByRegxTxt, findCountByQuery, findListBean, findListBeanByField, findListBeanByFields, findListBeanByQuery, findListBeanBySort, findListMapByCriteriaWithGroupBy, findListWithDistinct, findListWithDistinct, getMongoTemplate, insert, insertAll, removeBean, removeBeanByBeanAndCollectionName, removeBeanByQueryAndClass, removeBeanByQueryAndCollectionName, runCommand, update, updateAllByField, updateAllByField, updateAllById, updateAllByIdpublic MongoDbTemplate(org.springframework.data.mongodb.core.MongoTemplate mongoTemplate)
protected PageParam getPageParam(Page page)
MongoAccessorgetPageParam 在类中 MongoAccessorpublic <T> Page<T> findPageListBeanByQuery(org.springframework.data.mongodb.core.query.Query query, Page page, Class<T> clazz)
T - query - page - clazz - Copyright © 2017. All rights reserved.