Creating data object data sets for BIRT report designs
To create a data object data set, use the newDataMartDataSet( ) method from ElementFactory. For example, to instantiate a new data set, use the following code:
DataMartDataSetHandle dataSet =
factory.newDataMartDataSet("Data Set");
Associate the data object data cube with a DataMartDataSourceHandle object and then add the name of a data set from the data or data design file. For example, to access a data set called "SetName", use the following code:
dataSet.setDataSource( dataSource.getName( ) );
dataSet.setDataObject( "SetName" );
DataMartDataSetHandle inherits the setDataSource( ) method from DataSetHandle.
Finally, add the data element to the report design, as shown in the following code:
designHandle.getDataSets( ).add( dataSet );

Additional Links:

Copyright Actuate Corporation 2012