Package it.eng.spagobi.commons.dao

Examples of it.eng.spagobi.commons.dao.IDomainDAO.loadDomainByCodeAndValue()


      obj.setDataSetId(document.getDataSetId());

      IDomainDAO domainDAO = DAOFactory.getDomainDAO();

      // sets biobject type domain
      Domain type = domainDAO.loadDomainByCodeAndValue("BIOBJ_TYPE", document.getType());
      obj.setBiObjectTypeCode(type.getValueCd());
      obj.setBiObjectTypeID(type.getValueId());

      // sets biobject state domain
      Domain state = domainDAO.loadDomainByCodeAndValue("STATE", document.getState());
View Full Code Here


      Domain type = domainDAO.loadDomainByCodeAndValue("BIOBJ_TYPE", document.getType());
      obj.setBiObjectTypeCode(type.getValueCd());
      obj.setBiObjectTypeID(type.getValueId());

      // sets biobject state domain
      Domain state = domainDAO.loadDomainByCodeAndValue("STATE", document.getState());
      obj.setStateCode(state.getValueCd());
      obj.setStateID(state.getValueId());

      // gets engine
      Engine engine = null;
View Full Code Here

       */
     
      IDomainDAO domainDAO = DAOFactory.getDomainDAO();
      // sets dataset's transformer type domain
      if (dataset.getTransformer() != null) {
        Domain transformer = domainDAO.loadDomainByCodeAndValue("TRANSFORMER_TYPE", dataset.getTransformer());
        dsDetail.setTransformerCd(transformer.getValueCd());
        dsDetail.setTransformerId(transformer.getValueId());
      }
      // sets dataset's category domain
      if (dataset.getCategory() != null){
View Full Code Here

        dsDetail.setTransformerCd(transformer.getValueCd());
        dsDetail.setTransformerId(transformer.getValueId());
      }
      // sets dataset's category domain
      if (dataset.getCategory() != null){
        Domain category = domainDAO.loadDomainByCodeAndValue("CATEGORY_TYPE", dataset.getCategory());
        dsDetail.setCategoryValueName(category.getValueCd());
        dsDetail.setCategoryId(category.getValueId());
      }
      ds.setActiveDetail(dsDetail);
View Full Code Here

          return;
        }
      } else {
        // recover office document sbidomains
        IDomainDAO domainDAO = DAOFactory.getDomainDAO();
        Domain officeDocDom = domainDAO.loadDomainByCodeAndValue("BIOBJ_TYPE", "OFFICE_DOC");
        // recover development sbidomains
        Domain devDom = domainDAO.loadDomainByCodeAndValue("STATE", "DEV");
        // recover engine
        IEngineDAO engineDAO = DAOFactory.getEngineDAO();
        List engines = engineDAO.loadAllEnginesForBIObjectType(officeDocDom.getValueCd());
View Full Code Here

      } else {
        // recover office document sbidomains
        IDomainDAO domainDAO = DAOFactory.getDomainDAO();
        Domain officeDocDom = domainDAO.loadDomainByCodeAndValue("BIOBJ_TYPE", "OFFICE_DOC");
        // recover development sbidomains
        Domain devDom = domainDAO.loadDomainByCodeAndValue("STATE", "DEV");
        // recover engine
        IEngineDAO engineDAO = DAOFactory.getEngineDAO();
        List engines = engineDAO.loadAllEnginesForBIObjectType(officeDocDom.getValueCd());
        Engine engine = (Engine)engines.get(0);
        // load the template
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.