Package it.eng.spagobi.commons.metadata

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


        hibBIObject.setVisible(new Short(obj.getVisible().shortValue()));
      }
      hibBIObject.setProfiledVisibility(obj.getProfiledVisibility());
      hibBIObject.setRelName(obj.getRelName());

      SbiDomains hibState = (SbiDomains) aSession.load(SbiDomains.class, obj.getStateID());
      hibBIObject.setState(hibState);
      hibBIObject.setStateCode(obj.getStateCode());
      SbiDomains hibObjectType = (SbiDomains) aSession.load(SbiDomains.class, obj.getBiObjectTypeID());
      hibBIObject.setObjectType(hibObjectType);
      hibBIObject.setObjectTypeCode(obj.getBiObjectTypeCode());
      SbiDataSource dSource = null;
      if (obj.getDataSourceId() != null) {
        dSource = (SbiDataSource) aSession.load(SbiDataSource.class, obj.getDataSourceId());
View Full Code Here


      anEngine.setObjUplDir((String) anEngineSB.getAttribute("objUplDir"));
      anEngine.setObjUseDir((String) anEngineSB.getAttribute("objUseDir"));
      anEngine.setSecnUrl((String) anEngineSB.getAttribute("secnUrl"));

      String engineTypeCd = (String) anEngineSB.getAttribute("engineTypeCd");
      SbiDomains domainEngineType = findDomain(aSession, engineTypeCd, "ENGINE_TYPE");
      anEngine.setEngineType(domainEngineType);

      String biobjTypeCd = (String) anEngineSB.getAttribute("biobjTypeCd");
      SbiDomains domainBiobjectType = findDomain(aSession, biobjTypeCd, "BIOBJ_TYPE");
      anEngine.setBiobjType(domainBiobjectType);

      logger.debug("Inserting Engine with label = [" + anEngineSB.getAttribute("label") + "] ...");

      aSession.save(anEngine);
View Full Code Here

    Iterator it = exportersList.iterator();
    while (it.hasNext()) {
      SourceBean anExporterSB = (SourceBean) it.next();

      String domainLabel = ((String) anExporterSB.getAttribute("domain"));
      SbiDomains hibDomain = findDomain(aSession, domainLabel, "EXPORT_TYPE");
      if (hibDomain == null) {
        logger.error("Could not find domain for exporter");
        return;
      }

      String engineLabel = ((String) anExporterSB.getAttribute("engine"));
      SbiEngines hibEngine = findEngine(aSession, engineLabel);
      if (hibEngine == null) {
        logger.error("Could not find engine with label [" + engineLabel + "] for exporter");
      }else{

        String defaultValue=((String) anExporterSB.getAttribute("defaultValue"));
 
        SbiExporters anExporter=new SbiExporters();
        SbiExportersId exporterId=new SbiExportersId(hibEngine.getEngineId(), hibDomain.getValueId());
        anExporter.setId(exporterId);
        anExporter.setSbiDomains(hibDomain);
        anExporter.setSbiEngines(hibEngine);
 
        Boolean value=defaultValue!=null ? Boolean.valueOf(defaultValue) : Boolean.FALSE;
View Full Code Here

      aCheck.setLabel((String) aChecksSB.getAttribute("label"));
      aCheck.setName((String) aChecksSB.getAttribute("name"));
      aCheck.setDescr((String) aChecksSB.getAttribute("descr"));

      String valueTypeCd = (String) aChecksSB.getAttribute("valueTypeCd");
      SbiDomains domainValueType = findDomain(aSession, valueTypeCd, "PRED_CHECK");
      aCheck.setCheckType(domainValueType);
      aCheck.setValueTypeCd(valueTypeCd);

      aCheck.setValue1((String) aChecksSB.getAttribute("value1"));
      aCheck.setValue2((String) aChecksSB.getAttribute("value2"));
View Full Code Here

      SourceBean lovProviderSB = (SourceBean) aLovsSB.getAttribute("LOV_PROVIDER");
      aLov.setLovProvider(lovProviderSB.getCharacters());

      String inputTypeCd = (String) aLovsSB.getAttribute("inputTypeCd");
      SbiDomains domainInputType = findDomain(aSession, inputTypeCd, "INPUT_TYPE");
      aLov.setInputType(domainInputType);
      aLov.setInputTypeCd(inputTypeCd);

      logger.debug("Inserting Lov with label = [" + aLovsSB.getAttribute("label") + "] ...");
View Full Code Here

      Set roleTypes = new HashSet();
      if (roleTypesObject instanceof SourceBean) {
        SourceBean roleTypeSB = (SourceBean) roleTypesObject;
        String roleTypeCd = (String) roleTypeSB.getAttribute("roleType");
        roleTypesStrBuffer.append(roleTypeCd);
        SbiDomains domainRoleType = findDomain(aSession, roleTypeCd, "ROLE_TYPE");
        roleTypes.add(domainRoleType);
      } else if (roleTypesObject instanceof List) {
        List roleTypesSB = (List) roleTypesObject;
        Iterator roleTypesIt = roleTypesSB.iterator();
        while (roleTypesIt.hasNext()) {
          SourceBean roleTypeSB = (SourceBean) roleTypesIt.next();
          String roleTypeCd = (String) roleTypeSB.getAttribute("roleType");
          roleTypesStrBuffer.append(roleTypeCd);
          if (roleTypesIt.hasNext()) {
            roleTypesStrBuffer.append(";");
          }
          SbiDomains domainRoleType = findDomain(aSession, roleTypeCd, "ROLE_TYPE");
          roleTypes.add(domainRoleType);
        }
      }
      aUserFunctionality.setRoleType(roleTypes);
View Full Code Here

      return;
    }
    Iterator it = configList.iterator();
    while (it.hasNext()) {
      SourceBean aConfigSB = (SourceBean) it.next();
      SbiDomains hibDomain = null;
     
      String valueTypeCd = (String) aConfigSB.getAttribute("valueType");
      if (!"".equals(valueTypeCd)){
        hibDomain = findDomain(aSession, valueTypeCd, "PAR_TYPE");
        if (hibDomain == null) {
View Full Code Here

    logger.debug("IN");
    String hql = "from SbiDomains where valueCd = ? and domainCd = ?";
    Query hqlQuery = aSession.createQuery(hql);
    hqlQuery.setParameter(0, valueCode);
    hqlQuery.setParameter(1, domainCode);
    SbiDomains domain = (SbiDomains) hqlQuery.uniqueResult();
    logger.debug("OUT");
    return domain;
  }
View Full Code Here

          check.getValueTypeId()), Expression.eq("valueCd", check
          .getValueTypeCd()));
      Criteria criteria = aSession.createCriteria(SbiDomains.class);
      criteria.add(aCriterion);

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

      if (checkType == null){
        SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
              "CheckDAOHibImpl",
              "insertCheck",
View Full Code Here

          check.getValueTypeId()), Expression.eq("valueCd", check
          .getValueTypeCd()));
      Criteria criteria = aSession.createCriteria(SbiDomains.class);
      criteria.add(aCriterion);

      SbiDomains aSbiDomains = (SbiDomains) criteria.uniqueResult();
     
      if (aSbiDomains == null){
        SpagoBITracer.major(SpagoBIConstants.NAME_MODULE,
              "CheckDAOHibImpl",
              "modifyCheck",
              "The Domain with value_id="+check.getValueTypeId()+" and value_cd="+check
            .getValueTypeCd()+" does not exist.");
        throw new EMFUserError(EMFErrorSeverity.ERROR, 1036);
      }

      hibCheck.setDescr(check.getDescription());
      hibCheck.setName(check.getName());
      hibCheck.setLabel(check.getLabel());
      hibCheck.setValue1(check.getFirstValue());
      hibCheck.setValue2(check.getSecondValue());
      hibCheck.setCheckType(aSbiDomains);
      hibCheck.setValueTypeCd(aSbiDomains.getValueCd());
      updateSbiCommonInfo4Update(hibCheck);
      tx.commit();
     
    } catch (HibernateException he) {
      logException(he);
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.