Package it.eng.spagobi.commons.metadata

Examples of it.eng.spagobi.commons.metadata.SbiDomains


    logger.debug("IN");
    String inpTypeCd = exportedLov.getInputTypeCd();
    Map unique = new HashMap();
    unique.put("valuecd", inpTypeCd);
    unique.put("domaincd", "INPUT_TYPE");
    SbiDomains existDom = (SbiDomains) importer.checkExistence(unique, sessionCurrDB, new SbiDomains());
    logger.debug("OUT");
    return existDom;
  }
View Full Code Here


        logger.error("could not find domain "+exportedKpi.getSbiDomainsByKpiType().getDomainNm());
        existingKpi.setSbiDomainsByKpiType(null);
      }
      else{
        // I must get the new SbiDomains object
        SbiDomains newSbiKpiType = (SbiDomains) sessionCurrDB.load(SbiDomains.class, newKpiTypeId);
        existingKpi.setSbiDomainsByKpiType(newSbiKpiType);
      }
    }
    else{
      existingKpi.setSbiDomainsByKpiType(null);
    }

    // Measure Type
    if(exportedKpi.getSbiDomainsByMeasureType()!=null){
      Integer oldMeasureTypeId=exportedKpi.getSbiDomainsByMeasureType().getValueId();
      Integer newMeasureTypeId=(Integer)domainIdAss.get(oldMeasureTypeId);
      if(newMeasureTypeId==null) {
        logger.error("could not find domain "+exportedKpi.getSbiDomainsByMeasureType().getDomainNm());
        existingKpi.setSbiDomainsByMeasureType(null);
      }
      else{
        // I must get the new SbiDomains object
        SbiDomains newSbiMeasureType = (SbiDomains) sessionCurrDB.load(SbiDomains.class, newMeasureTypeId);
        existingKpi.setSbiDomainsByMeasureType(newSbiMeasureType);
      }
    }
    else{
      existingKpi.setSbiDomainsByMeasureType(null);
    }

    // Metric Scale type
    if(exportedKpi.getSbiDomainsByMetricScaleType()!=null){
      Integer oldScaleTypeId=exportedKpi.getSbiDomainsByMetricScaleType().getValueId();
      Integer newScaleTypeId=(Integer)domainIdAss.get(oldScaleTypeId);
      if(newScaleTypeId==null) {
        logger.error("could not find domain "+exportedKpi.getSbiDomainsByMetricScaleType().getDomainNm());
        existingKpi.setSbiDomainsByMetricScaleType(null);
      }
      else{
        // I must get the new SbiDomains object
        SbiDomains newSbiScaleType = (SbiDomains) sessionCurrDB.load(SbiDomains.class, newScaleTypeId);
        existingKpi.setSbiDomainsByMetricScaleType(newSbiScaleType);
      }
    }
    else{
      existingKpi.setSbiDomainsByMetricScaleType(null);
View Full Code Here

        logger.error("could not find domain "+exportedKpiInst.getChartType().getDomainNm());
        existingKpiInst.setChartType(null);
      }
      else{
        // I must get the new SbiDomains object
        SbiDomains newSbiChartType = (SbiDomains) sessionCurrDB.load(SbiDomains.class, newChartTypeId);
        existingKpiInst.setChartType(newSbiChartType);
      }
    }
    else{
      existingKpiInst.setChartType(null);
View Full Code Here

        logger.error("could not find domain between association"+exportedThValue.getSeverity());
        existingThvalue.setSeverity(null);
      }
      else{
        // I must get the new SbiDomains object
        SbiDomains newSbiSeverity = (SbiDomains) sessionCurrDB.load(SbiDomains.class, newSeverityId);
        existingThvalue.setSeverity(newSbiSeverity);
      }
    }
    else{
      existingThvalue.setSeverity(null);
View Full Code Here

      if(newThresholdTypeId==null) {
        logger.error("could not find domain "+exportedTh.getThresholdType().getValueCd());
      }
      else{
        // I must get the new SbiDomains object
        SbiDomains newSbiThresholdType = (SbiDomains) sessionCurrDB.load(SbiDomains.class, newThresholdTypeId);
        existingTh.setThresholdType(newSbiThresholdType);
      }
    }

    // TODO ThresholdValue
View Full Code Here

      if(newModelTypeId==null) {
        logger.error("could not find domain "+exportedMod.getModelType().getValueCd());
      }
      else{
        // I must get the new SbiDomains object
        SbiDomains newSbiModelType = (SbiDomains) sessionCurrDB.load(SbiDomains.class, newModelTypeId);
        existingMod.setModelType(newSbiModelType);
      }
    }

    // Parent
View Full Code Here

      if(newTypeId==null) {
        logger.error("could not find domain between association"+exportedRes.getType());
      }
      else{
        // I must get the new SbiDomains object
        SbiDomains newSbiType = (SbiDomains) sessionCurrDB.load(SbiDomains.class, newTypeId);
        existingResources.setType(newSbiType);
      }
    }

  }
View Full Code Here

      if(newModalityId==null) {
        logger.error("could not find domain between association"+exportedAlarm.getModality());
      }
      else{
        // I must get the new SbiDomains object
        SbiDomains newSbiModality = (SbiDomains) sessionCurrDB.load(SbiDomains.class, newModalityId);
        existingAlarm.setModality(newSbiModality);
      }
    }

View Full Code Here

        logger.error("could not find domain between association"+exportedObjMetadata.getDataType().getValueCd());
        existingObjMetadata.setDataType(null);
      }
      else{
        // I must get the new SbiDomains object
        SbiDomains newSbiDomain= (SbiDomains) sessionCurrDB.load(SbiDomains.class, newDomainId);
        existingObjMetadata.setDataType(newSbiDomain);
      }
    }
    else{
      existingObjMetadata.setDataType(null);
View Full Code Here

      Criterion aCriterion = Expression.and(Expression.eq("domainCd",
          codeDomain), Expression.eq("valueCd", codeValue));
      Criteria criteria = aSession.createCriteria(SbiDomains.class);
      criteria.add(aCriterion);

      SbiDomains aSbiDomains = (SbiDomains) criteria.uniqueResult();
      if (aSbiDomains == null)
        return null;

      aDomain = toDomain(aSbiDomains);
View Full Code Here

TOP

Related Classes of it.eng.spagobi.commons.metadata.SbiDomains

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.