Examples of SbiDomains


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

      tx = aSession.beginTransaction();
      SbiLov hibLov = new SbiLov();
      hibLov.setName(aModalitiesValue.getName());
      hibLov.setLabel(aModalitiesValue.getLabel());
      hibLov.setDescr(aModalitiesValue.getDescription());
      SbiDomains inpType = (SbiDomains) aSession.load(SbiDomains.class,
        new Integer(aModalitiesValue.getITypeId()));
      hibLov.setInputType(inpType);
      hibLov.setInputTypeCd(aModalitiesValue.getITypeCd());
      hibLov.setLovProvider(aModalitiesValue.getLovProvider());
      updateSbiCommonInfo4Insert(hibLov);
View Full Code Here

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

      Query hibQuery = session.createQuery(" from SbiDomains where valueId = " + domain.getValueId());
      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }
      SbiDomains hibDomain = new SbiDomains(domain.getValueId());
      hibDomain.setDomainCd(domain.getDomainCode());
      hibDomain.setDomainNm(domain.getDomainName());
      hibDomain.setValueCd(domain.getValueCd());
      hibDomain.setValueDs(domain.getValueDescription());
      hibDomain.setValueNm(domain.getValueName());
      session.save(hibDomain);
      tx.commit();
    } catch (Exception e) {
      logger.error("Error while inserting domain into export database ",e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8005", "component_impexp_messages");
View Full Code Here

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

      hibObjMeta.setDescription(objMetadata.getDescription());
      hibObjMeta.setLabel(objMetadata.getLabel());
      hibObjMeta.setName(objMetadata.getName());

      if(objMetadata.getDataType() != null){
        SbiDomains dataType=(SbiDomains)session.load(SbiDomains.class, objMetadata.getDataType());
        hibObjMeta.setDataType(dataType);
      }

      session.save(hibObjMeta);
      tx.commit();
View Full Code Here

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

      Query hibQuery = session.createQuery(" from SbiDataSource where dsId = " + ds.getDsId());
      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }
      SbiDomains dialect=(SbiDomains)session.load(SbiDomains.class, ds.getDialectId());

      SbiDataSource hibDS = new SbiDataSource(ds.getDsId());
      hibDS.setDescr(ds.getDescr());
      hibDS.setDriver(ds.getDriver());
      hibDS.setJndi(ds.getJndi());
View Full Code Here

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

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

        SbiDomains transformer = null;
        if (dataSetActiveDetail.getTransformerId() != null){
          Criterion aCriterion = Expression.eq("valueId",  dataSetActiveDetail.getTransformerId());
          Criteria criteria = session.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 = session.createCriteria(SbiDomains.class);
          criteria.add(aCriterion);
View Full Code Here

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

      hibEngine.setEncrypt(new Short((short)engine.getCriptable().intValue()));
      hibEngine.setMainUrl(engine.getUrl());
      hibEngine.setObjUplDir(engine.getDirUpload());
      hibEngine.setObjUseDir(engine.getDirUsable());
      hibEngine.setSecnUrl(engine.getSecondaryUrl());
      SbiDomains objTypeDom = (SbiDomains)session.load(SbiDomains.class, engine.getBiobjTypeId());
      hibEngine.setBiobjType(objTypeDom);
      hibEngine.setClassNm(engine.getClassName());
      SbiDomains engineTypeDom = (SbiDomains)session.load(SbiDomains.class, engine.getEngineTypeId());
      hibEngine.setEngineType(engineTypeDom);
      hibEngine.setUseDataSource(new Boolean(engine.getUseDataSource()));
      if (engine.getUseDataSource() && engine.getDataSourceId() != null) {
        SbiDataSource ds = (SbiDataSource) session.load(SbiDataSource.class, engine.getDataSourceId());
        hibEngine.setDataSource(ds);
View Full Code Here

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

      if(!hibList.isEmpty()) {
        return;
      }
      Engine engine = biobj.getEngine()
      SbiEngines hibEngine = (SbiEngines)session.load(SbiEngines.class, engine.getId());
      SbiDomains hibState = (SbiDomains)session.load(SbiDomains.class, biobj.getStateID());
      SbiDomains hibObjectType = (SbiDomains)session.load(SbiDomains.class, biobj.getBiObjectTypeID());
      SbiObjects hibBIObj = new SbiObjects(biobj.getId());
      hibBIObj.setSbiEngines(hibEngine);
      hibBIObj.setDescr(biobj.getDescription());
      hibBIObj.setLabel(biobj.getLabel());
      hibBIObj.setName(biobj.getName());
View Full Code Here

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

      Query hibQuery = session.createQuery(" from SbiParameters where parId = " + param.getId());
      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }
      SbiDomains hibParamType = (SbiDomains)session.load(SbiDomains.class, param.getTypeId());
      SbiParameters hibParam = new SbiParameters(param.getId());
      hibParam.setDescr(param.getDescription());
      hibParam.setLength(new Short(param.getLength().shortValue()));
      hibParam.setLabel(param.getLabel());
      hibParam.setName(param.getName());
View Full Code Here

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

      }
      SbiLov hibLov = new SbiLov(lov.getId());
      hibLov.setName(lov.getName());
      hibLov.setLabel(lov.getLabel());
      hibLov.setDescr(lov.getDescription());
      SbiDomains inpType = (SbiDomains)session.load(SbiDomains.class, new Integer(lov.getITypeId()));
      hibLov.setInputType(inpType);
      hibLov.setInputTypeCd(lov.getITypeCd());
      hibLov.setLovProvider(lov.getLovProvider());
      session.save(hibLov);
      tx.commit();
View Full Code Here

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

      Query hibQuery = session.createQuery(" from SbiChecks where checkId = " + check.getCheckId());
      List hibList = hibQuery.list();
      if(!hibList.isEmpty()) {
        return;
      }
      SbiDomains checkType = (SbiDomains)session.load(SbiDomains.class, check.getValueTypeId());
      SbiChecks hibCheck = new SbiChecks(check.getCheckId());
      hibCheck.setCheckType(checkType);
      hibCheck.setDescr(check.getDescription());
      hibCheck.setName(check.getName());
      hibCheck.setLabel(check.getLabel());
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.