Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[birt-dev] Checkin: Added automatic databinding capabilities to the Chart Engine.

- Summary:
Added automatic databinding capabilities to the Chart Engine.

 


- Bugzilla Bug (s) Resolved: None



- Description:
Three new methods have been added to the Chart Engine Generator class:

 

1- void Generator.bindData(IDataRowExpressionEvaluator expressionEvaluator, Chart chart, RunTimeContext rtc) throws ChartException

Binds data to the chart model using a row _expression_ evaluator. The evaluator provides the ability to evaluate the expressions set in the chart on a row context.

 

2- void Generator.bindData(ResultSet resultSet, Chart chart, RunTimeContext rtc) throws ChartException

Binds a sql Resuset to a chart model. This is based on the assumption the column names of the resultset match exactly the data query definitions and other expressions set inside the chart model.

 

3- List Generator.getRowExpressions(Chart cm) throws ChartException

This retrieves all the row expressions stored in the chart model. This is useful to prepare a specific query for the chart.



- Tests Description :

- Files Edited:
"/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/QueryHelper.java" "/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemQueryImpl.java" "/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/i18n/messages.properties" "/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemPresentationImpl.java" "/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/ChartReportItemBuilderImpl.java"

"/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/engine/i18n/Messages.java" "/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/engine/i18n/messages.properties" "/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/factory/Generator.java" "/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/exception/ChartException.java"

"/org.eclipse.birt.chart.tests/src/org/eclipse/birt/chart/tests/reportitem/impl/TupleComparatorTest.java"


- Files Added:
"/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/factory"

"/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/factory/TupleComparator.java" "/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/factory/SqlDataRowEvaluator.java" "/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/factory/DataProcessor.java" "/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/factory/SortKey.java"

"/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/factory/SqlDataRowEvaluator.java" "/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/BIRTDataRowEvaluator.java"

"/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/factory/IDataRowExpressionEvaluator.java"

"/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/factory/IDataRowExpressionEvaluator.java"

 

- Files Removed:

"/org.eclipse.birt.chart.reportitem/src/org/eclipse/birt/chart/reportitem/TupleComparator.java"


- Notes to I18N Team:

The following i18n strings have been moved from chart.reportitem to chart.engine. Note that the keys have been changed, but the English strings are the same. Please update the msg files accordingly.


log.baseSeriesDefn3=Base series definition ({0}) will be used as a static _expression_.

log.CannotDecipher=Cannot decipher contents of a chart containing multiple base series definitions.

QueryHelper.exception.FoundDefnAssociatedWithX=Found {0} data definition(s) associated with the base (X) series _expression_. Only one base series data definition is supported.

exception.DefinitionUnspecified=The data definition for the base series was unspecified.

QueryHelper.exception.DefnExpMustAssociateY=A data definition _expression_ must be associated with the orthogonal (Y) series-{0} defined by {1}.

QueryHelper.exception.AtLeastOneDefnExpMustAssociateY=At least one data definition _expression_ must be associated with the orthogonal (Y) series-{0} defined by {1}.

exception.CannotDecipher2=Cannot decipher contents of a chart containing multiple base series definitions.

log.XSeriesDefn=X series definition ({0}) will be used as a static _expression_.

QueryHelper.exception.FoundMoreThanOneDefnAssociateX=Found {0} data definition(s) associated with the X series _expression_. Only one X series data definition is supported.

exception.definitionsAssociatedWithX=The data definition for the X series was unspecified.

QueryHelper.exception.DefnExpMustAssociateY=A data definition _expression_ must be associated with the orthogonal (Y) series-{0} defined by {1}.

log.baseSeriesDefnBeStatic=Base series definition ({0}) will be used as a static _expression_.

 

- Notes to Build Team:

- Notes to Developers:

- Notes to QA:

- Notes to Documentation:

 


Back to the top