Creating data object data cubes for BIRT report designs
To create a data object data cube, use the newDataMartDataCube( ) method from ElementFactory. For example, to instantiate a new data cube, use the following code:
DataMartDataCubeHandle dataCube =
factory.newDataMartDataCube("Data Cube");
Associate the data object data cube with a DataMartDataSourceHandle object and assign a data cube from the data or data design file. For example, to access a data cube called "CubeName", use the following code:
dataCube.setDataSource( dataSource.getName( ) );
dataCube.setDataObject("CubeName");
Finally, add the data element to the report design, as shown in the following code:
designHandle.getDataCubes( ).add( dataCube );

Additional Links:

Copyright Actuate Corporation 2012