Community
Participate
Working Groups
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=178897, now BIRT wants to add Java Object data type, First needs Model support.
Please list what need to done here and set the dependence.
Model need to add corresponding data type to computed column, column binding, parameter etc. just similar to that of "String" or other built-in BIRT type support. The new Object reference data type is expecting to be an expansion to built-in BIRT type, and we've done similar things when support Date/Time type in BIRT.
(In reply to comment #2) > Model need to add corresponding data type to computed column, column binding, > parameter etc. just similar to that of "String" or other built-in BIRT type > support. The new Object reference data type is expecting to be an expansion to > built-in BIRT type, and we've done similar things when support Date/Time type > in BIRT. > in both data set parameter and report parameter? BTW, do we want to expose this type to BIRT user on UI?
Yes. Both data set parameter and report parameter. This new type must expose in UI so that user can define column/binding using this type.
(In reply to comment #2) > Model need to add corresponding data type to computed column, column binding, > parameter etc. just similar to that of "String" or other built-in BIRT type > support. The new Object reference data type is expecting to be an expansion to > built-in BIRT type, and we've done similar things when support Date/Time type > in BIRT. Much of this can simply be added to the existing code (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=178897#c3). In addition, the handling of parameters for queries has to be modified, which might have more impact on the existing code base. In DataSetRuntime a parameter value can have any type, but ParameterHint only accepts values of type String. Before a query is executed, the parameter values are converted by ParameterUtil.resolveDataSetParameter(boolean), before the queries are executed. DataSourceQuery.getParameterInputValue(ParameterHint) in turn converts the strings back to the corresponding object. This is not suitable for arbitrary types of objects. For example, what should be the textual representation of an object in an EMF-based model? How can I restore that object from the textual representation?
A new data type "Java Object" added in rom. Now this new type is not allowed for report parameters.
Close this bug
Now, It's for DtE to continue...
DtE part finished. Mark it fixed.
New Java Object data type is working in 2.5.1 v20090824-0630 build. Further testing is go on, mark this bug as verified first
Created attachment 145646 [details] OdaFactory patch to handle DataType.JAVA_OBJECT correctly A patch for org.eclipse.birt.report.model.adapter.oda.impl.ODAFactory in plug-in org.eclipse.birt.report.model.adapter.oda, which converts DataType.JAVA_OBJECT to the corresponding DesignChoiceConstants instead of DesignChoiceConstants.COLUMN_DATA_TYPE_STRING and PARAM_TYPE_STRING.
(In reply to comment #11) > Created an attachment (id=145646) [details] > OdaFactory patch to handle DataType.JAVA_OBJECT correctly Objects can now be used in columns and parameters. However, DesignSessionUtil.toDataSetParametersDesign() converts DataType.JAVA_OBJECT to "String" instead of "Java Object". It seems that the native data type code is preserved and correctly handled at runtime, but the respective column and parameter types are labeled as "String" instead of "Java Object" in the report designer. The above mentioned patch fixes this.
(In reply to comment #12) > (In reply to comment #11) > > Created an attachment (id=145646) [details] [details] > > OdaFactory patch to handle DataType.JAVA_OBJECT correctly > > Objects can now be used in columns and parameters. However, > DesignSessionUtil.toDataSetParametersDesign() converts DataType.JAVA_OBJECT to > "String" instead of "Java Object". It seems that the native data type code is > preserved and correctly handled at runtime, but the respective column and > parameter types are labeled as "String" instead of "Java Object" in the report > designer. The above mentioned patch fixes this. > The patch will be checked in 2.5.1 RC3.