Examples of RatingDAO


Examples of com.agiletec.plugins.jpcontentfeedback.aps.system.services.contentfeedback.rating.RatingDAO

    } catch (Throwable t) {
      throw t;
    } finally{
      List<String> listaIds = this._commentManager.searchCommentIds(null);
      RatingDAO ratingDao = (RatingDAO) ((RatingManager)this._ratingManager).getRatingDAO();
      for (int i=0; i< listaIds.size(); i++){
        IRating rating = this._ratingManager.getCommentRating(Integer.parseInt(listaIds.get(i)));
        if (rating!=null){
          ratingDao.removeRating(rating.getCommentId());
        }
        this._commentManager.deleteComment(Integer.parseInt(listaIds.get(i)));
      }
      IRating rating = this._ratingManager.getContentRating(contentId);
      if (rating!=null){
View Full Code Here

Examples of dao.RatingDAO

  // add arating to database
  public boolean addRating(Rating sp) {
    logger.debug("addRating start");
    Session session = HibernateUtil.getSessionFactory().openSession();
    RatingDAO khDAO = new RatingDAOImpl();

    Transaction transaction = null;
    try {
      transaction = session.beginTransaction();
      session.save(sp);
View Full Code Here

Examples of org.opencustomer.db.dao.crm.RatingDAO

       
        attributes.put("sectors", new SectorDAO().getAll());
        attributes.put("companyTypes", new CompanyTypeDAO().getAll());
        attributes.put("companyStates", new CompanyStateDAO().getAll());
        attributes.put("categories", new CategoryDAO().getAll());
        attributes.put("ratings", new RatingDAO().getAll());

    }
View Full Code Here

Examples of org.opencustomer.db.dao.crm.RatingDAO

                company.setCategory(null);
            }
           
            if(form.getRatingId() > 0) {
                if(isEntityChanged(form.getRatingId(), company.getRating()))
                    company.setRating(new RatingDAO().getById(form.getRatingId()));
            } else {
                company.setRating(null);
            }

        }
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.