Package de.forsthaus.backend.bean

Examples of de.forsthaus.backend.bean.ResultObject


    int totalCount = getHibernateTemplate().findByCriteria(criteria).size();

    List<Branche> list = getHibernateTemplate().findByCriteria(criteria, start, pageSize);

    return new ResultObject(list, totalCount);
  }
View Full Code Here


    int totalCount = getHibernateTemplate().findByCriteria(criteria).size();

    List<Branche> list = getHibernateTemplate().findByCriteria(criteria, start, pageSize);

    return new ResultObject(list, totalCount);
  }
View Full Code Here

    int totalCount = getHibernateTemplate().findByCriteria(criteria).size();

    List<ApplicationNews> list = getHibernateTemplate().findByCriteria(criteria, start, pageSize);

    return new ResultObject(list, totalCount);
  }
View Full Code Here

  }

  @Test
  @Transactional
  public void getAllBranches_paged() {
    ResultObject result = getBrancheDAO().getAllBranches(0, 5);
    Assert.assertTrue("Cannot be less than 0", (result.getList().size() > -1));
  }
View Full Code Here

  }

  @Test
  @Transactional
  public void getAllBranchesLikeText_paged() {
    ResultObject result = getBrancheDAO().getAllBranchesLikeText("Elektro", 0, 5);
    Assert.assertTrue("Cannot be less than 0", (result.getList().size() > -1));
  }
View Full Code Here

  }

  @Test
  @Transactional
  public void getAllApplicationNews_paged() {
    ResultObject result = getApplicationNewsDAO().getAllApplicationNews(0, 5);
    Assert.assertTrue("Cannot be less than 0", (result.getList().size() > -1));

  }
View Full Code Here

    int totalCount = getHibernateTemplate().findByCriteria(criteria).size();

    List<YoutubeLink> list = getHibernateTemplate().findByCriteria(criteria, start, pageSize);

    return new ResultObject(list, totalCount);
  }
View Full Code Here

      /**
       * init the model.<br>
       * The ResultObject is a helper class that holds the generic list
       * and the totalRecord count as int value.
       */
      ResultObject ro = getYoutubeLinkService().getAllYoutubeLinks(0, getPageSize());
      List<YoutubeLink> resultList = (List<YoutubeLink>) ro.getList();
      paging.setTotalSize(ro.getTotalCount());

      // set the model
      setListModelList(new ListModelList(resultList));
      this.listbox.setModel(getListModelList());

View Full Code Here

      // clear old data
      getListModelList().clear();

      // init the model
      ResultObject ro = getYoutubeLinkService().getAllYoutubeLinks(start, getPageSize());
      List<YoutubeLink> resultList = (List<YoutubeLink>) ro.getList();
      this.paging.setTotalSize(ro.getTotalCount());

      // set the model
      setListModelList(new ListModelList(resultList));
      this.listbox.setModel(getListModelList());
    }
View Full Code Here

    /**
     * init the model.<br>
     * The ResultObject is a helper class that holds the generic list and
     * the totalRecord count as int value.
     */
    ResultObject ro = getApplicationNewsService().getAllApplicationNews(0, getPageSize());
    List<ApplicationNews> resultList = (List<ApplicationNews>) ro.getList();
    paging.setTotalSize(ro.getTotalCount());

    // set the model
    setListModelList(new ListModelList(resultList));
    this.listbox.setModel(getListModelList());
  }
View Full Code Here

TOP

Related Classes of de.forsthaus.backend.bean.ResultObject

Copyright © 2018 www.massapicom. 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.