Class CompatibilityUtil

java.lang.Object
org.eclipse.birt.report.model.api.util.CompatibilityUtil

public class CompatibilityUtil extends Object
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 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 set
      resultColumns - a list containing result set columns. Each item in the list is ResultSetColumn
      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 handle
      structures - 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 handle
      columns - list contains OdaResultSetColumn
      Throws:
      SemanticException - if any result set column in the list has invalid values.