Examples of SbiDomains


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

      tx = aSession.beginTransaction();
      Criterion aCriterion = Expression.eq("valueId",  aObjMetadata.getDataType());
      Criteria criteria = aSession.createCriteria(SbiDomains.class);
      criteria.add(aCriterion);

      SbiDomains dataType = (SbiDomains) criteria.uniqueResult();

      if (dataType == null){
        logger.error("The Domain with value_id= "+aObjMetadata.getDataType()+" does not exist.");
        throw new EMFUserError(EMFErrorSeverity.ERROR, 1035);
      }
View Full Code Here

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

     
      Criterion aCriterion = Expression.eq("valueId",  aObjMetadata.getDataType());
      Criteria criteria = aSession.createCriteria(SbiDomains.class);
      criteria.add(aCriterion);

      SbiDomains dataType = (SbiDomains) criteria.uniqueResult();

      if (dataType == null){
        logger.error("The Domain with value_id= "+aObjMetadata.getDataType()+" does not exist.");
        throw new EMFUserError(EMFErrorSeverity.ERROR, 1035);
      }
View Full Code Here

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

      Criterion labelCriterrionFam = Expression.eq("valueCd", family)
      Criteria criteria = tmpSession.createCriteria(SbiDomains.class);
      criteria.add(labelCriterrionFam)
      Criterion labelCriterrionFamDom = Expression.eq("domainCd", "UDP_FAMILY")
      criteria.add(labelCriterrionFamDom)
      SbiDomains famiDom = (SbiDomains) criteria.uniqueResult();
      if (famiDom == null) return null;

      Criterion labelCriterrion = Expression.eq("label", label);
      Criteria criteria2 = tmpSession.createCriteria(SbiUdp.class);
      criteria2.add(labelCriterrion)
      Criterion famCriterrion = Expression.eq("familyId", famiDom.getValueId());
      criteria2.add(famCriterrion)

      SbiUdp hibUDP = (SbiUdp) criteria2.uniqueResult();
      if (hibUDP == null) return null;
      udp = toUdp(hibUDP);       
View Full Code Here

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

    // get Domain id form KPI family
    Transaction tx = null;
    try {

      Integer domainId;
      SbiDomains domain = DAOFactory.getDomainDAO().loadSbiDomainByCodeAndValue("UDP_FAMILY", familyCd);

      if(domain== null){
        logger.error("could not find domain of type UDP_FAMILY with value code "+familyCd);
        return null;
      }
      else{
        domainId = domain.getValueId();
      }


      tx = session.beginTransaction();
      Query query = session.createQuery("from SbiUdp s where s.familyId = :idFamily");
View Full Code Here

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

          if(((ScriptDataSetDetail)dataSetActiveDetail).getLanguageScript()!=null){
            ((SbiScriptDataSet)hibDataSet).setLanguageScript(((ScriptDataSetDetail)dataSetActiveDetail).getLanguageScript());
          }
        }

        SbiDomains transformer = null;
        if (dataSetActiveDetail.getTransformerId() != null){
          Criterion aCriterion = Expression.eq("valueId",  dataSetActiveDetail.getTransformerId());
          Criteria criteria = aSession.createCriteria(SbiDomains.class);
          criteria.add(aCriterion);

          transformer = (SbiDomains) criteria.uniqueResult();

          if (transformer == null){
            logger.error("The Domain with value_id= "+dataSetActiveDetail.getTransformerId()+" does not exist.");
            throw new EMFUserError(EMFErrorSeverity.ERROR, 1035);
          }
        }

        SbiDomains category = null;
        if (dataSetActiveDetail.getCategoryId()!= null){
          Criterion aCriterion = Expression.eq("valueId",  dataSetActiveDetail.getCategoryId());
          Criteria criteria = aSession.createCriteria(SbiDomains.class);
          criteria.add(aCriterion);
View Full Code Here

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

          if(((ScriptDataSetDetail)dsActiveDetailToSet).getLanguageScript()!=null){
            ((SbiScriptDataSet)hibDataSet).setLanguageScript(((ScriptDataSetDetail)dsActiveDetailToSet).getLanguageScript());
          }
        }

        SbiDomains transformer = null;
        if (dsActiveDetailToSet.getTransformerId() != null){
          Criterion aCriterion = Expression.eq("valueId",  dsActiveDetailToSet.getTransformerId());
          Criteria criteria = aSession.createCriteria(SbiDomains.class);
          criteria.add(aCriterion);
          transformer = (SbiDomains) criteria.uniqueResult();
          if (transformer == null){
            logger.error("The Domain with value_id= "+dsActiveDetailToSet.getTransformerId()+" does not exist.");
            throw new EMFUserError(EMFErrorSeverity.ERROR, 1035);
          }
        }

        SbiDomains category = null;
        if (dsActiveDetailToSet.getCategoryId()!= null){
          Criterion aCriterion = Expression.eq("valueId",  dsActiveDetailToSet.getCategoryId());
          Criteria criteria = aSession.createCriteria(SbiDomains.class);
          criteria.add(aCriterion)
          category = (SbiDomains) criteria.uniqueResult()
View Full Code Here

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

                periods.add(sbiPeriodicity);
                sbiKpiInstance.setSbiKpiInstPeriods(periods);
              }
            }
            if(kpiInst.getChartTypeId() != null){
              SbiDomains chartType =  (SbiDomains) aSession.load(SbiDomains.class, kpiInst.getChartTypeId())
              sbiKpiInstance.setChartType(chartType);
            }
            Calendar now = Calendar.getInstance();
            sbiKpiInstance.setBeginDt(now.getTime());
            updateSbiCommonInfo4Insert(sbiKpiInstance);
View Full Code Here

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

      aSession = getSession();
      tx = aSession.beginTransaction();

      SbiEngines hibEngine = (SbiEngines) aSession.load(SbiEngines.class,
          aEngine.getId());
      SbiDomains hibDomainBiobjType = (SbiDomains) aSession.load(SbiDomains.class,
          aEngine.getBiobjTypeId());
      SbiDomains hibDomainEngineType = (SbiDomains) aSession.load(SbiDomains.class,
          aEngine.getEngineTypeId());
      SbiDataSource hibDataSource = null;
      if (aEngine.getDataSourceId() != null) {
        hibDataSource = (SbiDataSource) aSession.load(SbiDataSource.class, aEngine.getDataSourceId());
      }
View Full Code Here

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

    Session aSession = null;
    Transaction tx = null;
    try {
      aSession = getSession();
      tx = aSession.beginTransaction();
      SbiDomains hibDomainBiobjType = (SbiDomains) aSession.load(SbiDomains.class,
          aEngine.getBiobjTypeId());
      SbiDomains hibDomainEngineType = (SbiDomains) aSession.load(SbiDomains.class,
          aEngine.getEngineTypeId());
      SbiDataSource hibDataSource = null;
      if (aEngine.getDataSourceId() != null) {
        hibDataSource = (SbiDataSource) aSession.load(SbiDataSource.class, aEngine.getDataSourceId());
      }
View Full Code Here

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

    Exporters exp = new Exporters();

    SbiEngines hibEngine=hibExps.getSbiEngines();
    exp.setEngineId(hibEngine.getEngineId());

    SbiDomains hibDomains=hibExps.getSbiDomains();
    exp.setDomainId(hibDomains.getValueId());

    exp.setDefaultValue(hibExps.isDefaultValue());

    return exp;
  }
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.