Examples of KpiInstPeriod


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

      //look up for periodicities
      List<KpiInstPeriod> instPeriods = DAOFactory.getKpiInstPeriodDAO().loadKpiInstPeriodId(aModelInst.getSbiKpiInstance()
          .getIdKpiInstance());
      if(instPeriods != null){
        for(int i=0; i<instPeriods.size(); i++){
          KpiInstPeriod instPer = instPeriods.get(i);
          SbiKpiInstPeriod sbiKpiInstPer = (SbiKpiInstPeriod)aSession.load(SbiKpiInstPeriod.class, instPer.getId());
          aSession.delete(sbiKpiInstPer);
        }
        aSession.flush();
      }
      deleteKpiInstance(aSession, aModelInst.getSbiKpiInstance()
View Full Code Here

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

      // after inserted Kpi Instance insert periods
      // Load all the kpi inst period and the periodicity s well
      IKpiInstPeriodDAO kpiInstPeriodDao=DAOFactory.getKpiInstPeriodDAO();     
      List kpiInstPeriodList=kpiInstPeriodDao.loadKpiInstPeriodId(kpiInst.getKpiInstanceId());
      for (Iterator iterator = kpiInstPeriodList.iterator(); iterator.hasNext();) {
        KpiInstPeriod modKpiInst = (KpiInstPeriod) iterator.next();
        insertKpiInstancePeriod(modKpiInst, session);
      }


View Full Code Here

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

     
      List hibList = hibQuery.list();
      Iterator it = hibList.iterator();

      while (it.hasNext()) {
        KpiInstPeriod kpiInstPeriod=toKpiInstPeriod((SbiKpiInstPeriod) it.next());
        realResult.add(kpiInstPeriod);
      }
      tx.commit();
    } catch (HibernateException he) {
      logger.error("Error while loading all kpi Inst Period ", he);
View Full Code Here

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

 
 
  private KpiInstPeriod toKpiInstPeriod(SbiKpiInstPeriod sbiK) {
    logger.debug("IN");

     KpiInstPeriod toReturn = new KpiInstPeriod();

    Integer id=sbiK.getKpiInstPeriodId();
   
    Integer kpiInstId=null;
    if(sbiK.getSbiKpiInstance()!=null){
      kpiInstId=sbiK.getSbiKpiInstance().getIdKpiInstance();
    }

    Integer periodId=null;
    if(sbiK.getSbiKpiPeriodicity()!=null){
      periodId=sbiK.getSbiKpiPeriodicity().getIdKpiPeriodicity();
    }
   
    Boolean defaultValue=sbiK.isDefault_();
   
   
    toReturn.setId(id);
    toReturn.setKpiInstId(kpiInstId);
    toReturn.setPeriodicityId(periodId);
    toReturn.setDefaultValue(defaultValue);

    logger.debug("OUT");
    return toReturn;
  }
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.