Class CompatibilityUtil
java.lang.Object
org.eclipse.birt.report.model.api.util.CompatibilityUtil
Provides the backward compatibility for the user. Now support:
- Updated CachedMetaData.resultSet.
- Added DataSet.resultSet column.
Backward compatibilty is different from other operations. It does not support undo/redo and won't send out events.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addResultSetColumn
(DataSetHandle dataSetHandle, List columns) Adds ResultSetColumn without sending out event.static void
addStructures
(PropertyHandle propHandle, List structures) Adds the given structures to the corresponding property values.static void
updateResultSetinCachedMetaData
(DataSetHandle setHandle, List resultColumns) Updates CachedMetaData.resultSet property with the given data set and the list of result set columns.
-
Constructor Details
-
CompatibilityUtil
public CompatibilityUtil()
-
-
Method Details
-
updateResultSetinCachedMetaData
public static void updateResultSetinCachedMetaData(DataSetHandle setHandle, List resultColumns) throws SemanticException Updates CachedMetaData.resultSet property with the given data set and the list of result set columns.- Parameters:
setHandle
- the data setresultColumns
- a list containing result set columns. Each item in the list isResultSetColumn
- Throws:
SemanticException
- if any result set column in the list has invalid values.
-
addStructures
public static void addStructures(PropertyHandle propHandle, List structures) throws SemanticException Adds the given structures to the corresponding property values. For example, adds result set columns to DataSet.resultSets.- Parameters:
propHandle
- the property handlestructures
- the list containing structures- Throws:
SemanticException
- if any structure in the list has invalid values.
-
addResultSetColumn
public static void addResultSetColumn(DataSetHandle dataSetHandle, List columns) throws SemanticException Adds ResultSetColumn without sending out event.- Parameters:
dataSetHandle
- data set handlecolumns
- list contains OdaResultSetColumn- Throws:
SemanticException
- if any result set column in the list has invalid values.
-