Examples of SbiKpiValue


Examples of it.eng.spagobi.kpi.config.metadata.SbiKpiValue

      List l = finder.list();
      if (!l.isEmpty()) {
        KpiValue tem = null;
        Iterator it = l.iterator();
        while (it.hasNext()) {
          SbiKpiValue temp = (SbiKpiValue) it.next();
          toReturn = toKpiValue(temp, d);
        }
      }else{
        Criteria finder2 = aSession.createCriteria(SbiKpiValue.class);
        finder2.add(Expression.eq("sbiKpiInstance.idKpiInstance",
            kpiInstanceId));
        finder2.add(Expression.le("beginDt", d));
        finder2.addOrder(Order.desc("beginDt"));
        logger.debug("Order Date Criteria setted");
        finder2.setMaxResults(1);
        logger.debug("Max result to 1 setted");

        if (r != null) {
          finder2.add(Expression.eq("sbiResources.resourceId", r.getId()));
        }

        List l2 = finder2.list();
        if (!l2.isEmpty()) {
          KpiValue tem = null;
          Iterator it = l2.iterator();
          while (it.hasNext()) {
            SbiKpiValue temp = (SbiKpiValue) it.next();
            toReturn = toKpiValue(temp, d);
          }
        }

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