Represents expression object.
Index
Constructors
Public Properties
Public Methods
Constructors
constructor
The default constructor. ⊕ new Expression(): Expression
Public Properties
args
The list of arguments.
● args?: Expression[]
baseAttrId
The base attribute id.
● baseAttrId?: string
dataType
The data type.
● dataType: DataType = DataType.String
distinct
The distinct option. (e.g SELECT DISTINCT
)
● distinct: boolean
= false
func
The function.
● func?: string
id
The id.
● id: string
= null
kind
The data kind.
● kind: DataKind = DataKind.Scalar
query
The query.
● query?: Query
sql
The sql expression.
● sql?: string
tag
The tag.
● tag: ExprTag = ExprTag.Constant
text
The text.
● text: string
= ""
value
The value.
● value: string
| any
= ""
Public Methods
loadFromData
Loads expression from its JSON representation object.
▸ loadFromData(model: DataModel,data: ExpressionData): void
Parameters:
- model: DataModel - The Data Model.
- data: ExpressionData - The JSON representation object.
Returns void
saveToData
Saves expression from JSON representation object.
▸ saveToData(): ExpressionData
Returns ExpressionData - The JSON representation object.