Examples of OdaDataSetHandle


Examples of org.eclipse.birt.report.model.api.OdaDataSetHandle

    designHandle.getDataSources().add(dsHandle);
  }

  @SuppressWarnings("rawtypes")
  void buildDataSet(List cols, String fromClause) throws SemanticException {
    OdaDataSetHandle dsHandle = designFactory.newOdaDataSet(
        "ds", "org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet");
    dsHandle.setDataSource("Data Source");
    String qry = "Select ";

    for( int i = 0 ; i < cols.size() ; i++ ) {
      qry += " " + cols.get(i);

      if( i != (cols.size() - 1) ) {
        qry += ",";
      }
    }

    qry += " " + fromClause;
    dsHandle.setQueryText(qry);

    designHandle.getDataSets().add(dsHandle);
  }
View Full Code Here

Examples of org.eclipse.birt.report.model.api.OdaDataSetHandle

  }

  void createDataSets() throws SemanticException {

    OdaDataSetHandle dsHandle = elementFactory.newOdaDataSet("ds",
        "org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet");
    dsHandle.setDataSource("Data Source");
    dsHandle.setQueryText("Select * from ORDERDETAILS");

    reportDesignHandle.getDataSets().add(dsHandle);

  }
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.