Package it.eng.qbe.dataset

Examples of it.eng.qbe.dataset.QbeDataSet


    }
   
    if(iDataSet instanceof QbeDataSet){     
      dsActiveDetail = new QbeDataSetDetail();
      QbeDataSetDetail aQbeDataSetDetail = (QbeDataSetDetail) dsActiveDetail;
      QbeDataSet aQbeDataSet = (QbeDataSet) iDataSet;
      aQbeDataSetDetail.setJsonQuery(aQbeDataSet.getJsonQuery());
      aQbeDataSetDetail.setDatamarts(aQbeDataSet.getDatamarts());
      IDataSource iDataSource = aQbeDataSet.getDataSource();
      if (iDataSource!=null){
        String dataSourceLabel = iDataSource.getLabel();
        aQbeDataSetDetail.setDataSourceLabel(dataSourceLabel);
      }
      dsActiveDetail.setDsType(QBE_DS_TYPE);
View Full Code Here


      ((JavaClassDataSet)ds).setClassName(((SbiJClassDataSet)hibDataSet).getJavaClassName());
      ds.setDsType(DataSetConstants.JAVA_CLASS);
    }
   
    if (hibDataSet instanceof SbiQbeDataSet) {     
      ds = new QbeDataSet();
      SbiQbeDataSet aSbiQbeDataSet = (SbiQbeDataSet) hibDataSet;
      QbeDataSet qbeDataset = (QbeDataSet) ds;
      qbeDataset.setJsonQuery(aSbiQbeDataSet.getJsonQuery());
      qbeDataset.setDatamarts(aSbiQbeDataSet.getDatamarts());
     
      SbiDataSource sbids = aSbiQbeDataSet.getDataSource();
      if (sbids!=null){
        DataSourceDAOHibImpl dataSourceDao = new DataSourceDAOHibImpl();
        IDataSource dataSource = dataSourceDao.toDataSource(sbids);
        qbeDataset.setDataSource(dataSource);       
      }
      ds.setDsType(DataSetConstants.QBE);
     
    }
View Full Code Here

      ((JavaClassDataSet)ds).setClassName(jclassName);
    }
   
    if(dsType.equalsIgnoreCase(DataSetConstants.DS_QBE)){
     
      ds = new QbeDataSet();
      QbeDataSet qbeDataSet = (QbeDataSet) ds;
      String qbeDatamarts = getAttributeAsString(DataSetConstants.QBE_DATAMARTS);
      String dataSourceLabel = getAttributeAsString(DataSetConstants.QBE_DATA_SOURCE);
      String jsonQuery = getAttributeAsString(DataSetConstants.QBE_JSON_QUERY);
     
      qbeDataSet.setJsonQuery(jsonQuery);
      qbeDataSet.setDatamarts(qbeDatamarts);
      IDataSource dataSource = DAOFactory.getDataSourceDAO().loadDataSourceByLabel(dataSourceLabel);
      qbeDataSet.setDataSource(dataSource);   
     
    }
    return ds;
  }
View Full Code Here

      ((JavaClassDataSet)ds).setClassName(jclassName);
    }
   
    if(dsType.equalsIgnoreCase(DataSetConstants.DS_QBE)){
     
      ds = new QbeDataSet();
      QbeDataSet qbeDataSet = (QbeDataSet) ds;
      String qbeDatamarts = getAttributeAsString(DataSetConstants.QBE_DATAMARTS);
      String dataSourceLabel = getAttributeAsString(DataSetConstants.QBE_DATA_SOURCE);
      String jsonQuery = getAttributeAsString(DataSetConstants.QBE_JSON_QUERY);
     
      qbeDataSet.setJsonQuery(jsonQuery);
      qbeDataSet.setDatamarts(qbeDatamarts);
      IDataSource dataSource = DAOFactory.getDataSourceDAO().loadDataSourceByLabel(dataSourceLabel);
      qbeDataSet.setDataSource(dataSource);   
     
    }
    return ds;
  }
View Full Code Here

TOP

Related Classes of it.eng.qbe.dataset.QbeDataSet

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.