Examples of ListQuery


Examples of com.google.gdata.client.spreadsheet.ListQuery

   * @throws IOException if there was a problem contacting Google
   * @throws ServiceException if there was an error processnig the request
   */
  public List<ListEntry> getAllListEntries()
      throws IOException, ServiceException {
    ListQuery query = new ListQuery(feedUrl);
    ListFeed feed = service.query(query, ListFeed.class);
    return feed.getEntries();
  }
View Full Code Here

Examples of com.google.gdata.client.spreadsheet.ListQuery

   * @throws IOException if there was a problem contacting Google
   * @throws ServiceException if there was an error processnig the request
   */
  public List<ListEntry> getFullTextSearch(String search)
      throws IOException, ServiceException {
    ListQuery query = new ListQuery(feedUrl);
    query.setFullTextQuery(search);
    ListFeed feed = service.query(query, ListFeed.class);
    return feed.getEntries();
  }
View Full Code Here

Examples of com.google.gdata.client.spreadsheet.ListQuery

   * @throws ServiceException if there was an error processnig the request
   */
  public List<ListEntry> getStructuredQuery(
       String structuredQuery)
       throws IOException, ServiceException {
    ListQuery query = new ListQuery(feedUrl);
    query.setFullTextQuery(structuredQuery);
    ListFeed feed = service.query(query, ListFeed.class);
    return feed.getEntries();
  }
View Full Code Here

Examples of com.google.gdata.client.spreadsheet.ListQuery

   * Refreshes the contents of the table, applying any queries the user
   * specifies.
   */
  private void refreshFromServer() {
    try {
      ListQuery query = new ListQuery(listFeedUrl);

      if (!fulltextField.getText().equals("")) {
        query.setFullTextQuery(fulltextField.getText());
      }
      if (!spreadsheetQueryField.getText().equals("")) {
        query.setSpreadsheetQuery(spreadsheetQueryField.getText());
      }
      if (!orderbyField.getText().equals("")) {
        query.setOrderBy(orderbyField.getText());
      }

      ListFeed feed = service.query(query, ListFeed.class);

      model.resetEntries(feed.getEntries());
View Full Code Here

Examples of net.yanhl.base.query.ListQuery

   */
  public ActionForward listMoney(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    try {
      // 增加查询条件-结束
      ListQuery listQuery = new ListQuery(FinanceMoneyDetail.class, request);
      setPageIndex(request, listQuery);// 设置页码
      List<FinanceMoneyDetail> result = financeManager.list(listQuery);
      savePagination(request, result, FinanceMoneyDetail.class);// 保存结果集

      // 设置属性
View Full Code Here

Examples of net.yanhl.base.query.ListQuery

      HttpServletResponse response) throws Exception {
    String currentUserName = null;
    try {
      currentUserName = UserUtil.getCurrentUserName(request);
      // 增加查询条件-结束
      ListQuery listQuery = new ListQuery(Iouser.class,request);
      setPageIndex(request,listQuery);//设置页码
      List<Iouser> result = iouserManager.finaAllUser(listQuery);
      savePagination(request, result,Iouser.class);//保存结果集
      //log.info(currentUserName + ">获得借入/出人员列表:" + result);
    } catch (Exception ex) {
View Full Code Here

Examples of net.yanhl.base.query.ListQuery

   */
  public ActionForward goodsTypeList(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    try {
      // 增加查询条件-结束
      ListQuery listQuery = new ListQuery(GoodsType.class,request);
      setPageIndex(request,listQuery);//设置页码
      List<GoodsType> result = goodsTypeManager.findAllGoodsType(listQuery);
      savePagination(request, result,GoodsType.class);//保存结果集
    } catch (Exception ex) {
      ex.printStackTrace();
View Full Code Here

Examples of net.yanhl.base.query.ListQuery

      HttpServletResponse response) throws Exception {
    String currentUserName = null;
    try {
      currentUserName = UserUtil.getCurrentUserName(request);
      // 增加查询条件-结束
      ListQuery listQuery = new ListQuery(GroupRelation.class, request);
      setPageIndex(request, listQuery);// 设置页码
      List<GroupRelation> result = groupManager.finaAllGroup(listQuery);
      savePagination(request, result, GroupRelation.class);// 保存结果集
    } catch (Exception ex) {
      ex.printStackTrace();
View Full Code Here

Examples of net.yanhl.base.query.ListQuery

   */
  public ActionForward goodsDetailList(ActionMapping mapping, ActionForm form, HttpServletRequest request,
      HttpServletResponse response) throws Exception {
    try {
      // 增加查询条件-结束
      ListQuery listQuery = new ListQuery(GoodsDetail.class, request);
      setPageIndex(request, listQuery);// 设置页码
      List<GoodsDetail> result = goodsDetailManager.findAllGoodsDetail(listQuery);
      savePagination(request, result, GoodsDetail.class);// 保存结果集
    } catch (Exception ex) {
      ex.printStackTrace();
View Full Code Here

Examples of org.araneaframework.backend.list.model.ListQuery

    if (!this.useCache || this.forceReload
        || !startIdx.equals(this.lastStart)
        || (count == null || this.lastCount == null)
        && count != this.lastCount || count != null
        && this.lastCount != null && !count.equals(this.lastCount)) {
      ListQuery query = new ListQuery();
      query.setItemRangeStart(startIdx);
      query.setItemRangeCount(count);
      query.setFilterExpression(this.filterExpr);
      query.setOrderExpression(this.orderExpr);     
      this.lastItemRange = getItemRange(query);
    }

    this.forceReload = false;
    this.lastStart = startIdx;
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.