Action
    Preparing search index...

    This is a handle to a column expression. This class is created by the factory methods Create(expression), and can be used to retrieve information about the components of the column expression.

    2.0

    Hierarchy (View Summary)

    Index

    Methods

    • Casts this object to the specified type. Throws error on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns T1

    • Determines whether the specified object is equal to the current object.

      Parameters

      • obj: any

        The object to compare with the current object.

      Returns boolean

      true if the specified object is equal to the current object; otherwise, false.

    • Serves as the default hash function.

      Returns number

      A hash code for the current object.

    • Returns a string that represents the current object.

      Returns string

      A string that represents the current object.

    • Casts this object to the specified type. Returns null on failure.

      Type Parameters

      • T1

        The target type of the cast.

      • T2

        The type of the object to cast.

      Parameters

      Returns null | T1

    • Determines whether the specified object instances are considered equal.

      Parameters

      • objA: any

        The first object to compare.

      • objB: any

        The second object to compare.

      Returns boolean

      true if the objects are considered equal; otherwise, false. If both objA and objB are null, the method returns true.

    Default capability

    • get Alias(): string

      Get the alias (name) of the calculated column if there is an AS part of the column expression.

      Returns string

      2.0

    • get ErrorDisplayMessage(): string

      Get the localized error message if the expression is invalid, null otherwise.

      Returns string

      2.0

    • get ErrorExpression(): string

      Get the expression that could not be parsed if it exists, if the expression is valid then this property is null.

      Returns string

      2.0

    • get ErrorMessage(): string

      Get the error message if the expression is invalid, null otherwise.

      Returns string

      2.0

    • get Expression(): string

      Gets the expression as a string. This would exclude any alias (name) statement.

      Returns string

      2.0

    • get IsValid(): boolean

      True if the expression is valid, false otherwise.

      Returns boolean

      2.0

    • Checks if column expression contains an aggregation method.

      Parameters

      Returns boolean

      True if the column expression contained an aggregation method, false otherwise.

      2.0

    • Get the result type for the given expression using the columns in the specified table.

      Parameters

      Returns DataType

      The return type of the expression.

      2.0

    • Make sure that all column/hierarchy references in the query are fully qualified.

      Parameters

      • tableName: string | String

        The table name.

      Returns void

      2.0

    • Rename all column references from oldName to newName.

      Parameters

      • oldName: string | String

        The old column name.

      • newName: string | String

        The new column name.

      Returns void

      2.0

    • Rename all hierarchy references from oldName to newName.

      Parameters

      • oldName: string | String

        The old hierarchy name.

      • newName: string | String

        The new hierarchy name.

      Returns void

      2.0

    • Parse a column expression and return a ColumnExpression.

      Parameters

      • expression: string | String

        The column expression.

      Returns ColumnExpression

      A handle to the parsed column expression. Even if it was not possible to parse the expression a ColumnExpression will still be returned but it will be invalid.

      2.0