Package it.eng.spagobi.tools.dataset.bo

Examples of it.eng.spagobi.tools.dataset.bo.QueryDataSetDetail


      String jclassName = getAttributeAsString(DataSetConstants.JCLASS_NAME);
      if(jclassName!=null && !jclassName.equals("")){
        ((JClassDataSetDetail)dsActiveDetail).setJavaClassName(jclassName);
      }
    }else if(dsType.equalsIgnoreCase(DataSetConstants.DS_QUERY)){
      dsActiveDetail = new QueryDataSetDetail();
      String query = getAttributeAsString(DataSetConstants.QUERY);
      String dataSourceLabel = getAttributeAsString(DataSetConstants.DATA_SOURCE);
      if(query!=null && !query.equals("")){
        ((QueryDataSetDetail)dsActiveDetail).setQuery(query);
      }
View Full Code Here


      dsActiveDetail.setDsType(FILE_DS_TYPE);
      logger.debug("File dataset");
    }

    if(hibDataSet instanceof SbiQueryDataSet){     
      dsActiveDetail=new QueryDataSetDetail();
      ((QueryDataSetDetail)dsActiveDetail).setQuery(((SbiQueryDataSet)hibDataSet).getQuery());
      SbiDataSource sbids=((SbiQueryDataSet)hibDataSet).getDataSource();
      if(sbids!=null){
        String dataSourceLabel = sbids.getLabel();
        ((QueryDataSetDetail)dsActiveDetail).setDataSourceLabel(dataSourceLabel);
View Full Code Here

      ((FileDataSetDetail)dsVersionDetail).setFileName(((SbiFileDataSet)hibDataSet).getFileName());   
      dsVersionDetail.setDsType(FILE_DS_TYPE);
    }

    if(hibDataSet instanceof SbiQueryDataSet){     
      dsVersionDetail=new QueryDataSetDetail();
      ((QueryDataSetDetail)dsVersionDetail).setQuery(((SbiQueryDataSet)hibDataSet).getQuery());
      SbiDataSource sbids=((SbiQueryDataSet)hibDataSet).getDataSource();
      if(sbids!=null){
        String dataSourceLabel = sbids.getLabel();
        ((QueryDataSetDetail)dsVersionDetail).setDataSourceLabel(dataSourceLabel);
View Full Code Here

      ((FileDataSetDetail)dsActiveDetail).setFileName(((FileDataSet)iDataSet).getFileName());   
      dsActiveDetail.setDsType(FILE_DS_TYPE);
    }

    if(iDataSet instanceof JDBCDataSet){     
      dsActiveDetail=new QueryDataSetDetail();
      ((QueryDataSetDetail)dsActiveDetail).setQuery((String)(((JDBCDataSet)iDataSet).getQuery()));
      IDataSource iDataSource=((JDBCDataSet)iDataSet).getDataSource();
      if(iDataSource!=null){
        String dataSourceLabel = iDataSource.getLabel();
        ((QueryDataSetDetail)dsActiveDetail).setDataSourceLabel(dataSourceLabel);
View Full Code Here

      String jclassName = getAttributeAsString(DataSetConstants.JCLASS_NAME);
      if(jclassName!=null && !jclassName.equals("")){
        ((JClassDataSetDetail)dsActiveDetail).setJavaClassName(jclassName);
      }
    }else if(dsType.equalsIgnoreCase(DataSetConstants.DS_QUERY)){
      dsActiveDetail = new QueryDataSetDetail();
      String query = getAttributeAsString(DataSetConstants.QUERY);
      String dataSourceLabel = getAttributeAsString(DataSetConstants.DATA_SOURCE);
      if(query!=null && !query.equals("")){
        ((QueryDataSetDetail)dsActiveDetail).setQuery(query);
      }
View Full Code Here

        String jclassName = dataset.getJavaClassName();
        if(jclassName!=null && !jclassName.equals("")){
          ((JClassDataSetDetail)dsDetail).setJavaClassName(jclassName);
        }
      }else if(dataset.getType().equalsIgnoreCase(DataSetConstants.DS_QUERY)){
        dsDetail = new QueryDataSetDetail();
        String query = dataset.getJdbcQuery();
        Integer dataSourceId = dataset.getJdbcDataSourceId();
        if(query!=null && !query.equals("")){
          ((QueryDataSetDetail)dsDetail).setQuery(query);
        }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.tools.dataset.bo.QueryDataSetDetail

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.