Examples of PageInfo


Examples of com.fins.gt.model.PageInfo

   
    return info;
  }

  public static PageInfo createPageInfo(JSONObject modelJS){
    PageInfo info=new PageInfo();
   
    info.setEndRowNum(modelJS.getInt("endRowNum",Const.nullInt));
    info.setPageNum(modelJS.getInt("pageNum",Const.nullInt));
    info.setPageSize(modelJS.getInt("pageSize",Const.nullInt));
    info.setStartRowNum(modelJS.getInt("startRowNum",Const.nullInt));
    info.setTotalPageNum(modelJS.getInt("totalPageNum",Const.nullInt));
    info.setTotalRowNum(modelJS.getInt("totalRowNum",Const.nullInt));
   
    return info;
  }
View Full Code Here

Examples of com.jeecms.core.web.front.URLHelper.PageInfo

    // 尽量不要携带太多参数,多使用标签获取数据。
    // 目前已知的需要携带翻页信息。
    // 获得页号和翻页信息吧。
    int pageNo = URLHelper.getPageNo(request);
    String[] params = URLHelper.getParams(request);
    PageInfo info = URLHelper.getPageInfo(request);
    String[] paths = URLHelper.getPaths(request);
    int len = paths.length;
    if (len == 1) {
      // 单页
      return channel(paths[0], pageNo, params, info, request, response,
View Full Code Here

Examples of com.ponxu.blog4j.model.PageInfo

  }

  public List<Post> queryPublishLatestPost(int count) {
    String condition = PUBLISH_POST;
    String order = "id desc";
    PageInfo page = new PageInfo(1, count);

    return query(condition, order, page, false);
  }
View Full Code Here

Examples of grails.plugin.cache.web.PageInfo

          updates.putAll(status.updates);
        }
        // render cached response
        else {
          logRequestDetails(request, getContext(), "Caching enabled for request");
          PageInfo pageInfo = buildCachedPageInfo(request, response, status);
          writeResponse(request, response, pageInfo);
          return;
        }
      }

      logRequestDetails(request, getContext(), "Caching enabled for request");
      PageInfo pageInfo = buildNewPageInfo(request, response, chain, status, operationsByType);
      writeResponse(request, response, pageInfo);

      inspectAfterCacheEvicts(operationsByType.get(EVICT));

      if (!updates.isEmpty()) {
View Full Code Here

Examples of name.pehl.karaka.server.paging.entity.PageInfo

    public static final String PAGE_SIZE = "pageSize";


    protected PageInfo getPageInfo(MultivaluedMap<String, String> input) throws PageInfoParseException
    {
        PageInfo result = null;
        if (input != null)
        {
            String offset = input.getFirst(OFFSET);
            String pageSize = input.getFirst(PAGE_SIZE);
            int offsetValue = convertInt(offset, "Paging info contains the invalid offset: \"%s\"", offset);
            int pageSizeValue = convertInt(pageSize, "Paging info contains the invalid page size: \"%s\"", pageSize);
            result = new PageInfo(offsetValue, pageSizeValue);
        }
        return result;
    }
View Full Code Here

Examples of name.pehl.taoki.paging.PageInfo

        String offset = form.getFirstValue(OFFSET);
        String pageSize = form.getFirstValue(PAGE_SIZE);

        int offsetValue = convertInt(offset, "Paging info contains the invalid offset: \"%s\"", offset);
        int pageSizeValue = convertInt(pageSize, "Paging info contains the invalid page size: \"%s\"", pageSize);
        return new PageInfo(offsetValue, pageSizeValue);
    }
View Full Code Here

Examples of name.pehl.taoki.paging.PageInfo

            int offsetValue = convertInt(offset, "Paging info \"%s\" contains the invalid offset: \"%s\"", header,
                    offset);
            int lastIndexValue = convertInt(lastIndex, "Paging info \"%s\" contains the invalid last index: \"%s\"",
                    header, lastIndex);
            int pageSize = lastIndexValue - offsetValue + 1;
            return new PageInfo(offsetValue, pageSize);
        }
        else
        {
            String error = String.format("Paging info has the wrong format. Expected: %s, given: \"%s\"", REGEXP,
                    header);
View Full Code Here

Examples of name.pehl.taoki.paging.PageInfo

        String offset = (String) attributes.get(OFFSET);
        String pageSize = (String) attributes.get(PAGE_SIZE);

        int offsetValue = convertInt(offset, "Paging info contains the invalid offset: \"%s\"", offset);
        int pageSizeValue = convertInt(pageSize, "Paging info contains the invalid page size: \"%s\"", pageSize);
        return new PageInfo(offsetValue, pageSizeValue);
    }
View Full Code Here

Examples of name.pehl.taoki.paging.PageInfo


    @Test
    public void parseValid() throws PageInfoParseException
    {
        PageInfo pageInfo = null;

        pageInfo = underTest.parse("items=0-9");
        assertPageInfo(pageInfo, 0, 10);
    }
View Full Code Here

Examples of name.pehl.taoki.paging.PageInfo


    @Test
    public void parseValid() throws PageInfoParseException
    {
        PageInfo pageInfo = null;

        pageInfo = underTest.parse(attributesFor(0, 10));
        assertPageInfo(pageInfo, 0, 10);
    }
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.