Package it.eng.spagobi.kpi.config.bo

Examples of it.eng.spagobi.kpi.config.bo.Kpi


        toTransform = aSession.createQuery("from SbiKpi").list();
      }

      for (Iterator iterator = toTransform.iterator(); iterator.hasNext();) {
        SbiKpi hibKpi = (SbiKpi) iterator.next();
        Kpi kpi = new Kpi();
        kpi.setCode(hibKpi.getCode());
        kpi.setDescription(hibKpi.getDescription());
        kpi.setKpiName(hibKpi.getName());
        kpi.setKpiId(hibKpi.getKpiId());
        if(hibKpi.getSbiThreshold() != null){
          Threshold threshold = new Threshold();
          threshold.setId(hibKpi.getSbiThreshold().getThresholdId());
          threshold.setName(hibKpi.getSbiThreshold().getName());
          kpi.setThreshold(threshold);
        }
        toReturn.add(kpi);
      }

    } catch (HibernateException he) {
View Full Code Here


      toTransform = hibernateQuery.list();     

      for (Iterator iterator = toTransform.iterator(); iterator.hasNext();) {
        SbiKpi hibKpi = (SbiKpi) iterator.next();
        Kpi kpi = toKpi(hibKpi);
        toReturn.add(kpi);
      }

    } catch (HibernateException he) {
      logger.error("Error while loading the list of Threshold", he);
View Full Code Here

      toTransform = hibernateQuery.list();     

      for (Iterator iterator = toTransform.iterator(); iterator.hasNext();) {
        SbiKpi hibKpi = (SbiKpi) iterator.next();
        Kpi kpi = toKpi(hibKpi);
        toReturn.add(kpi);
      }

    } catch (HibernateException he) {
      logger.error("Error while loading the list of Threshold", he);
View Full Code Here

       
        if (ki!=null){
         
          Integer kpiID = ki.getKpi();
          if (kpiID!=null){
            Kpi k = DAOFactory.getKpiDAO().loadKpiById(kpiID);
            String kpiCode = k.getCode();
            String kpiDescription = k.getDescription();
            String kpiInterpretation = k.getInterpretation();
            String kpiName = k.getKpiName();
           
            kpi.setAttribute("code",kpiCode!=null?kpiCode:"");
            kpi.setAttribute("name",kpiName!=null?kpiName:"");
            kpi.setAttribute("description",kpiDescription!=null?kpiDescription:"")
            kpi.setAttribute("interpretation",kpiInterpretation!=null?kpiInterpretation:"")
View Full Code Here

TOP

Related Classes of it.eng.spagobi.kpi.config.bo.Kpi

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.