Examples of SbiKpiModelInst


Examples of it.eng.spagobi.kpi.model.metadata.SbiKpiModelInst

      // Model instance should be already inserted

      if (modRes.getModelInstId() != null) {
        Integer modelInstId=modRes.getModelInstId();
        SbiKpiModelInst sbiKpiModInst= (SbiKpiModelInst) session.load(SbiKpiModelInst.class, modelInstId);
        if(sbiKpiModInst!=null){
          hibModRes.setSbiKpiModelInst(sbiKpiModInst);
        }
      }
View Full Code Here

Examples of it.eng.spagobi.kpi.model.metadata.SbiKpiModelInst

      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }
      SbiOrgUnitHierarchies hier =(SbiOrgUnitHierarchies)session.load(SbiOrgUnitHierarchies.class, grant.getHierarchy().getId());
      SbiKpiModelInst mi =(SbiKpiModelInst)session.load(SbiKpiModelInst.class, grant.getModelInstance().getId());

      // main attributes     
      SbiOrgUnitGrant hibGrant = new SbiOrgUnitGrant();
      hibGrant.setDescription(grant.getDescription());
      hibGrant.setEndDate(grant.getEndDate());
View Full Code Here

Examples of it.eng.spagobi.kpi.model.metadata.SbiKpiModelInst

      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }

      SbiKpiModelInst mi =(SbiKpiModelInst)session.load(SbiKpiModelInst.class, ou.getModelInstanceNode().getModelInstanceNodeId());
      SbiOrgUnitGrant g =(SbiOrgUnitGrant)session.load(SbiOrgUnitGrant.class, ou.getGrant().getId());
      SbiOrgUnitNodes n =(SbiOrgUnitNodes)session.load(SbiOrgUnitNodes.class, ou.getOuNode().getNodeId());
      // main attributes     
      SbiOrgUnitGrantNodes hibGrant = new SbiOrgUnitGrantNodes();
      SbiOrgUnitGrantNodesId id = new SbiOrgUnitGrantNodesId();
View Full Code Here

Examples of it.eng.spagobi.kpi.model.metadata.SbiKpiModelInst

      return hibDs;
    }   else if (hibObj instanceof SbiKpiModelInst) {
      String label = (String) unique;
      hql = "from SbiKpiModelInst ds where ds.label = '" + label + "'";
      hqlQuery = sessionCurrDB.createQuery(hql);
      SbiKpiModelInst hibDs = null;
      try{
        hibDs=(SbiKpiModelInst) hqlQuery.uniqueResult();
      }
      catch (Exception e) {
        throw new EMFUserError(EMFErrorSeverity.ERROR, "9004", "component_impexp_messages");
View Full Code Here

Examples of it.eng.spagobi.kpi.model.metadata.SbiKpiModelInst

    // get Model Instance
    Integer idModelInst=null;
    hql = "from SbiKpiModelInst where label = '" + modelInstLabel + "'";
    hqlQuery = sessionCurrDB.createQuery(hql);
    SbiKpiModelInst hibDs = (SbiKpiModelInst) hqlQuery.uniqueResult();
    if(hibDs==null) return null;

    idModelInst=hibDs.getKpiModelInst();

    // get Resource
    Integer idResource=null;
    hql = "from SbiResources where resourceCode = '" + resourceCode + "'";
    hqlQuery = sessionCurrDB.createQuery(hql);
View Full Code Here

Examples of it.eng.spagobi.kpi.model.metadata.SbiKpiModelInst

    SbiKpiError sbiKpiError = new SbiKpiError();

    sbiKpiError.setUserMessage(dsException.getUserMessage());
    sbiKpiError.setFullMessage(dsException.getFullMessage());

    SbiKpiModelInst sbiKpiModelInst = (SbiKpiModelInst)session.load(SbiKpiModelInst.class, modelInstanceId);
    sbiKpiError.setSbiKpiModelInst(sbiKpiModelInst);
    if(sbiKpiModelInst != null){
      sbiKpiError.setLabelModInst(sbiKpiModelInst.getLabel());
    }

    sbiKpiError.setTsDate(new Date());
    sbiKpiError.setParameters(parameters);
View Full Code Here

Examples of it.eng.spagobi.kpi.model.metadata.SbiKpiModelInst

   *
   * @return the new hibernate parameter object
   */
  public static SbiKpiModelInst makeNewSbiModelInstance(SbiKpiModelInst modelInst,Session sessionCurrDB, MetadataAssociations metaAss){
    logger.debug("IN");
    SbiKpiModelInst newModInst = new SbiKpiModelInst();
    try{
      newModInst.setDescription(modelInst.getDescription());
      newModInst.setEndDate(modelInst.getEndDate());
      newModInst.setLabel(modelInst.getLabel());
      newModInst.setName(modelInst.getName());
      newModInst.setStartDate(modelInst.getStartDate());
      newModInst.setModelUUID(modelInst.getModelUUID());

      // associations
      entitiesAssociationsSbiModelInstance(modelInst, newModInst, sessionCurrDB, metaAss);

      logger.debug("OUT");
View Full Code Here

Examples of it.eng.spagobi.kpi.model.metadata.SbiKpiModelInst

   * @throws EMFUserError the EMF user error
   */
  public static SbiKpiModelInst modifyExistingSbiModelInstance(SbiKpiModelInst exportedModInst, Session sessionCurrDB,
      Integer existingId, MetadataAssociations metaAss) throws EMFUserError {
    logger.debug("IN");
    SbiKpiModelInst existingModInst = null;
    try {
      // update th Value
      existingModInst = (SbiKpiModelInst) sessionCurrDB.load(SbiKpiModelInst.class, existingId);
      existingModInst.setDescription(exportedModInst.getDescription());
      existingModInst.setEndDate(exportedModInst.getEndDate());
      existingModInst.setLabel(exportedModInst.getLabel());
      existingModInst.setName(exportedModInst.getName());
      existingModInst.setStartDate(exportedModInst.getStartDate());
      existingModInst.setModelUUID(exportedModInst.getModelUUID());

      // associations
      entitiesAssociationsSbiModelInstance(exportedModInst, existingModInst, sessionCurrDB, metaAss);
    }

View Full Code Here

Examples of it.eng.spagobi.kpi.model.metadata.SbiKpiModelInst

      if(newParentId==null) {
        logger.error("could not find parent with id "+exportedModInst.getSbiKpiModelInst().getKpiModelInst());
        existingModInst.setSbiKpiModelInst(null);
      }
      else{
        SbiKpiModelInst newSbiParent = (SbiKpiModelInst) sessionCurrDB.load(SbiKpiModelInst.class, newParentId);
        existingModInst.setSbiKpiModelInst(newSbiParent);
      }
    }
    else{
      existingModInst.setSbiKpiModelInst(null);
View Full Code Here

Examples of it.eng.spagobi.kpi.model.metadata.SbiKpiModelInst

      if(newTypeId==null) {
        logger.error("could not find model instance between association"+exportedModRes.getSbiKpiModelInst().getLabel());
      }
      else{
        // I must get the new SbiDomains object
        SbiKpiModelInst newSbiType = (SbiKpiModelInst) sessionCurrDB.load(SbiKpiModelInst.class, newTypeId);
        existingModResources.setSbiKpiModelInst(newSbiType);
      }
    }

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.