Package org.springframework.data.mongodb.core.query

Examples of org.springframework.data.mongodb.core.query.Query.skip()


    Query query = new Query();
    if (!StringUtils.isEmpty(queryParam.getQuery())) {
      query.addCriteria(Criteria.where(queryParam.getQtype()).is(
          queryParam.getQuery()));
    }
    query.skip(queryParam.getSkip()).limit(queryParam.getLimit()).sort()
        .on(queryParam.getSortname(), queryParam.getSortorder());

    List<T> list = baseDao.getMongoTemplate().find(query, getBeanClass());
    List<Map<String, Object>> mapList = new LinkedList<Map<String, Object>>();
    for (T bean : list) {
View Full Code Here


    Query query = new Query();
    if (!StringUtils.isEmpty(queryParam.getQuery())) {
      query.addCriteria(Criteria.where(queryParam.getQtype()).is(
          queryParam.getQuery()));
    }
    query.skip(queryParam.getSkip()).limit(queryParam.getLimit()).sort()
        .on(queryParam.getSortname(), queryParam.getSortorder());

    List<OmAreaBean> list = omAreaService.getOmAreaDao().getMongoTemplate()
        .find(query, OmAreaBean.class);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.