Package it.eng.spagobi.services.dataset.bo

Examples of it.eng.spagobi.services.dataset.bo.SpagoBiDataSet


     *
     * @return the data set
     */
    public SpagoBiDataSet getDataSet(String documentId) {
   
      SpagoBiDataSet datasetConfig = null;
      BIObject obj;
      IDataSet dataSet;
     
      logger.debug("IN");
   
View Full Code Here


     * @param label the ds label
     *
     * @return the data set by label
     */
    public SpagoBiDataSet getDataSetByLabel(String label) {
      SpagoBiDataSet datasetConfig = null;
      IDataSet ds = null;
   
      logger.debug("IN");

    try {
View Full Code Here

 
        Iterator it = datasets.iterator();
        tmpList = new ArrayList();
        while (it.hasNext()) {
          IDataSet dataset = (IDataSet) it.next();
        SpagoBiDataSet sbds = dataset.toSpagoBiDataSet();         
        tmpList.add(sbds);
        }
       
        dataSetsConfig = (SpagoBiDataSet[])tmpList.toArray(new SpagoBiDataSet[tmpList.size()]);
     
View Full Code Here

  protected void tearDown() throws Exception {
    super.tearDown();
  }
 
  public void testDataSet() throws Exception {
    SpagoBiDataSet dataSetConfig = new SpagoBiDataSet();
    dataSetConfig.setQuery("SELECT fullname as 'Full Name' FROM CUSTOMER LIMIT 10");
   
    SpagoBiDataSource dataSourceConfig = new SpagoBiDataSource();
    dataSourceConfig.setDriver(TestCaseConstants.CONNECTION_DRIVER);
    dataSourceConfig.setHibDialectClass(TestCaseConstants.CONNECTION_DIALECT);
    dataSourceConfig.setHibDialectName(TestCaseConstants.CONNECTION_DIALECT);
    dataSourceConfig.setMultiSchema(false);
    dataSourceConfig.setUser(TestCaseConstants.CONNECTION_USER);
    dataSourceConfig.setPassword(TestCaseConstants.CONNECTION_PWD);
    dataSourceConfig.setUrl(TestCaseConstants.CONNECTION_URL);
   
    dataSetConfig.setDataSource(dataSourceConfig);
   
    IDataSet dataset = new JDBCDataSet(dataSetConfig);
    dataset.loadData();
    IDataStore dataStore1 = dataset.getDataStore();
    JSONDataWriter dataWriter = new JSONDataWriter();
View Full Code Here

    }


    public IDataSet getDataSetByLabel(String label) {
      IDataSet dataSet = null;
      SpagoBiDataSet dataSetConfig = null;
     
      logger.debug("IN.dataset.label="+label);
     
      if (label==null || label.length()==0){
          logger.error("dataset label is NULL");
View Full Code Here

    }
   
  
    public IDataSet getDataSet(String documentId) {
      IDataSet dataSet = null;
      SpagoBiDataSet dataSetConfig = null;
     
      logger.debug("IN.documentId="+documentId);
     
      if (documentId==null || documentId.length()==0){
          logger.error("documentId is NULL");
View Full Code Here

  }
 

 
  public SpagoBiDataSet toSpagoBiDataSet() {
    SpagoBiDataSet sbd;
    JDBCDataProxy dataProxy;
   
    sbd = super.toSpagoBiDataSet();
   
    sbd.setType( DS_TYPE );
     
    dataProxy = (JDBCDataProxy)this.getDataProxy();
    sbd.setDataSource(dataProxy.getDataSource().toSpagoBiDataSource());
    if(query!=null){
    sbd.setQuery(query.toString());
    }
    return sbd;
  }
View Full Code Here

   
    setClassName( dataSetConfig.getJavaClassName() );
  }
 
  public SpagoBiDataSet toSpagoBiDataSet() {
    SpagoBiDataSet sbd;
   
    sbd = super.toSpagoBiDataSet();
   
    sbd.setType( DS_TYPE );
       
    sbd.setJavaClassName( getClassName() );
   
    return sbd;
  }
View Full Code Here

    public void setResourcePath(String resPath) {
      this.resPath = resPath;
  }
   
    public SpagoBiDataSet toSpagoBiDataSet() {
    SpagoBiDataSet sbd = new SpagoBiDataSet();
   
    sbd.setDsId(getId());
    sbd.setLabel(getLabel());
    sbd.setName(getName());
    sbd.setParameters(getParameters());
    sbd.setDescription(getDescription());
    sbd.setCategoryId(getCategoryId());
   
    sbd.setTransformerId(getTransformerId());
    sbd.setPivotColumnName(getPivotColumnName());
    sbd.setPivotRowName(getPivotRowName());
    sbd.setPivotColumnValue(getPivotColumnValue());
    sbd.setNumRows(isNumRows());
    return sbd;
  }
View Full Code Here

    setLanguageScript(dataSetConfig.getLanguageScript());
   
  }
 
  public SpagoBiDataSet toSpagoBiDataSet() {
    SpagoBiDataSet sbd;
   
    sbd = super.toSpagoBiDataSet()
   
    sbd.setType( DS_TYPE );   
   
    sbd.setScript( getScript() );
    sbd.setLanguageScript(getLanguageScript());
   
    return sbd;
  }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.services.dataset.bo.SpagoBiDataSet

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.