Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev]CheckIn: new api of DataExtractionTask

Title: [birt-dev]CheckIn: new api of DataExtractionTask

Description:
 
Why: The previous data export feature only deal with one table/list/chart instance and depend the user to select on item, which is deemed as inconvenient.

Fix: The new IDataExtractionTask provide multiple result set from which user can select one and the corresponding columns to export data. The new calling sequence is:

1. IDataExtractionTask.getResultSetList( ) which will return a list of IResultSetItem.
    IResultSetItem.getResultSetName( ) to return the result set display name
    IResultSetItem.getResultMetaData( ) to return the meta data of the result set, note here the meta data only contains column name and column count.

2. IDataExtractionTask.selectResultSet( ) to select from which resultset to export data.
3. IDataExtractionTask.selectColumns( )
4. IDataExtractionTask.extract( )


Regression: Yes/No
No
 
Code Owner:
Shanghai Engine Team
 
Code Reviewers:
Shanghai Engine Team
 
Tests:
Unit test
 
Test Automated:  Yes/No (if “No”, then explain why)
Yes
Branches Involved:
Eclipse CVS
 
Files Changed:
src/org/eclipse/birt/report/engine/api/IDataExtractionTask.java
src/org/eclipse/birt/report/engine/api/impl/DataExtractionTask.java
src/org/eclipse/birt/report/engine/api/ResultMetaData.java
src/org/eclipse/birt/report/engine/data/dte/AbstractDataEngine.java
src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
test/org/eclipse/birt/report/engine/api/impl/DataExtractionTaskTest

Files Shared:
None
 
Files Added:
src/org/eclipse/birt/report/engine/api/impl/IResultSetItem.java
src/org/eclipse/birt/report/engine/api/impl/ResultSetItem.java

 
Files Deleted:
None
 
Defect Entries Resolved:
None
 
Case Entries Resolved:
None
 
Notes to Developers:
None
 
Notes to QA:
None
 
Notes to Documentation:
None
 
Notes to Configuration Management:
None
 
Notes to Support:
None
 
Notes to Product Marketing:
None


Back to the top