Class ColumnBindingUtil


  • public class ColumnBindingUtil
    extends java.lang.Object
    The utility class for bound data columns migration.
    • Constructor Detail

      • ColumnBindingUtil

        public ColumnBindingUtil()
    • Method Detail

      • addColumnBinding

        public static ComputedColumnHandle addColumnBinding​(ReportItemHandle handle,
                                                            ComputedColumn column)
                                                     throws SemanticException
        Binds a column to the given element. The column must have a name. The method will not generate a name for the binding. An exception will be thrown when trying to bind a column without a name. If the column has been bound, the exist bound column will be returned. If the column doesn't exist but has a duplicated name with exist columns, a new unique name will be assigned.
        Parameters:
        handle - the handle of the element to bind
        column - the column to bind
        Returns:
        the handle of the bound column
        Throws:
        SemanticException