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

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


      ((QbeDataSetDetail) dsActiveDetail).setSqlQuery(sqlQuery);
      ((QbeDataSetDetail) dsActiveDetail).setJsonQuery(jsonQuery);
      ((QbeDataSetDetail) dsActiveDetail).setDataSourceLabel(dataSourceLabel);
      ((QbeDataSetDetail) dsActiveDetail).setDatamarts(datamarts);
    }else if(dsType.equalsIgnoreCase(DataSetConstants.DS_SCRIPT)){
      dsActiveDetail = new ScriptDataSetDetail();
      String script = getAttributeAsString(DataSetConstants.SCRIPT);
      String scriptLanguage = getAttributeAsString(DataSetConstants.SCRIPT_LANGUAGE);
      if(scriptLanguage!=null && !scriptLanguage.equals("")){
        ((ScriptDataSetDetail)dsActiveDetail).setLanguageScript(scriptLanguage);
      }
View Full Code Here


      dsActiveDetail.setDsType(WS_DS_TYPE);
      logger.debug("Ws dataset");
    }

    if(hibDataSet instanceof SbiScriptDataSet){     
      dsActiveDetail=new ScriptDataSetDetail();
      ((ScriptDataSetDetail)dsActiveDetail).setScript(((SbiScriptDataSet)hibDataSet).getScript());
      ((ScriptDataSetDetail)dsActiveDetail).setLanguageScript(((SbiScriptDataSet)hibDataSet).getLanguageScript());
      dsActiveDetail.setDsType(SCRIPT_DS_TYPE);
      logger.debug("Script dataset");
    }
View Full Code Here

      ((WSDataSetDetail)dsVersionDetail).setOperation(((SbiWSDataSet)hibDataSet).getOperation());
      dsVersionDetail.setDsType(WS_DS_TYPE);
    }

    if(hibDataSet instanceof SbiScriptDataSet){     
      dsVersionDetail=new ScriptDataSetDetail();
      ((ScriptDataSetDetail)dsVersionDetail).setScript(((SbiScriptDataSet)hibDataSet).getScript());
      ((ScriptDataSetDetail)dsVersionDetail).setLanguageScript(((SbiScriptDataSet)hibDataSet).getLanguageScript());
      dsVersionDetail.setDsType(SCRIPT_DS_TYPE);
    }
View Full Code Here

      ((WSDataSetDetail)dsActiveDetail).setOperation(((WebServiceDataSet)iDataSet).getOperation());
      dsActiveDetail.setDsType(WS_DS_TYPE);
    }

    if(iDataSet instanceof ScriptDataSet){     
      dsActiveDetail=new ScriptDataSetDetail();
      ((ScriptDataSetDetail)dsActiveDetail).setScript(((ScriptDataSet)iDataSet).getScript());
      ((ScriptDataSetDetail)dsActiveDetail).setLanguageScript(((ScriptDataSet)iDataSet).getLanguageScript());
      dsActiveDetail.setDsType(SCRIPT_DS_TYPE);
    }
View Full Code Here

      ((QbeDataSetDetail) dsActiveDetail).setSqlQuery(sqlQuery);
      ((QbeDataSetDetail) dsActiveDetail).setJsonQuery(jsonQuery);
      ((QbeDataSetDetail) dsActiveDetail).setDataSourceLabel(dataSourceLabel);
      ((QbeDataSetDetail) dsActiveDetail).setDatamarts(datamarts);
    }else if(dsType.equalsIgnoreCase(DataSetConstants.DS_SCRIPT)){
      dsActiveDetail = new ScriptDataSetDetail();
      String script = getAttributeAsString(DataSetConstants.SCRIPT);
      String scriptLanguage = getAttributeAsString(DataSetConstants.SCRIPT_LANGUAGE);
      if(scriptLanguage!=null && !scriptLanguage.equals("")){
        ((ScriptDataSetDetail)dsActiveDetail).setLanguageScript(scriptLanguage);
      }
View Full Code Here

        IDataSource dataSource = DAOFactory.getDataSourceDAO().loadDataSourceByID(dataSourceId);
        if(dataSource!=null){
          ((QbeDataSetDetail)dsDetail).setDataSourceLabel(dataSource.getLabel());
        }
      }else if(dataset.getType().equalsIgnoreCase(DataSetConstants.DS_SCRIPT)){
        dsDetail = new ScriptDataSetDetail();
        String script = dataset.getScriptText();
        String scriptLanguage = dataset.getScriptLanguage();
        if(scriptLanguage!=null && !scriptLanguage.equals("")){
          ((ScriptDataSetDetail)dsDetail).setLanguageScript(scriptLanguage);
        }
View Full Code Here

TOP

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

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.