Package it.eng.spagobi.kpi.model.dao

Examples of it.eng.spagobi.kpi.model.dao.IModelInstanceDAO


      }
    }
    if (kpiModelInstanceId!=null){
      Integer id = new Integer(kpiModelInstanceId);
      Date d = new Date();
      IModelInstanceDAO modInstDAO=DAOFactory.getModelInstanceDAO();
      ModelInstanceNode n = modInstDAO.loadModelInstanceById(id, d);
      String name =n.getName();
      String descr = n.getDescr();
      if (name!=null){
        serviceResponse.setAttribute("MODEL_INST_NAME", name);
      }else{
View Full Code Here


    logger.debug("IN");

    biObjectToInsert=new ArrayList();

    //I want to insert the whole model instance tree, first of all I get the model instance root
    IModelInstanceDAO modInstDAO=DAOFactory.getModelInstanceDAO();
    ModelInstance miRoot=modInstDAO.loadModelInstanceRoot(mi);


    // insert the model (model instance root points to model root)
    logger.debug("Insert the model root and the tree");   
View Full Code Here

      }

      Set modelInstanceChildren=new HashSet();
      logger.debug("insert current model instance children");
      // get the Model Instance children
      IModelInstanceDAO modelInstDao=DAOFactory.getModelInstanceDAO();
      ModelInstance modInstWithChildren=modelInstDao.loadModelInstanceWithChildrenById(mi.getId());
      List childrenList=modInstWithChildren.getChildrenNodes();
      if(childrenList!=null){
        for (Iterator iterator = childrenList.iterator(); iterator.hasNext();) {
          ModelInstance childNode = (ModelInstance) iterator.next();
          logger.debug("insert child "+childNode.getLabel());
View Full Code Here

        String modelInstanceLabel = (String) tempFileSB.getAttribute("model_node_instance");

        // biObjectToInsert keeps track of objects that have to be inserted beacuse related to Kpi

        if (modelInstanceLabel != null) {
          IModelInstanceDAO modelInstanceDao = DAOFactory.getModelInstanceDAO();
          ModelInstance modelInstance = modelInstanceDao.loadModelInstanceWithoutChildrenByLabel(modelInstanceLabel);
          if (modelInstance == null) {
            logger.warn("Error while exporting kpi with id " + biobj.getId() + " and label " + biobj.getLabel() + " : " +
                "the template refers to a Model Instance with label " + modelInstanceLabel + " that does not exist!");
          } else {
            objsToInsert=exporter.insertAllFromModelInstance(modelInstance, session);
View Full Code Here

       
        KpiInstance k = null;
        if (line.getModelInstanceNodeId()!=null){
          Integer id = new Integer(line.getModelInstanceNodeId());
          Date d = new Date();
          IModelInstanceDAO modInstDAO=DAOFactory.getModelInstanceDAO();
          ModelInstanceNode n = modInstDAO.loadModelInstanceById(id, d);
          String descr = n.getDescr();
          modelNodeL.setAttribute("description",descr!=null?descr:"");   
          k= n.getKpiInstanceAssociated();
        }
       
View Full Code Here

TOP

Related Classes of it.eng.spagobi.kpi.model.dao.IModelInstanceDAO

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.