Condition class
Represents some condition.
- blockId
- conditions
- enabled
- expressions
- inJoin
- justAdded
- linkType
- operatorID
- parameterized
- readOnly
- tag
Constructors
Section titled “Constructors”constructor
Section titled “constructor”The default constructor. ⊕ new Condition(tag?: CondTag): Condition
Parameters:
Section titled “Parameters:”- tag: CondTag, Optional - The condition tag
Public Properties
Section titled “Public Properties”blockId
Section titled “blockId”The block id.
● blockId: string
conditions
Section titled “conditions”The list of conditions.
● conditions: Condition[]
enabled
Section titled “enabled”The value indicating whether this Condition is enabled.
● enabled: boolean
expressions
Section titled “expressions”The list of expression.
● expressions: Expression[]
inJoin
Section titled “inJoin”The value indicating whether this condition must be placed into JOIN
clause in result SQL
.
● inJoin: boolean
justAdded
Section titled “justAdded”Condition enabled option.
● justAdded: boolean
linkType
Section titled “linkType”The linking type.
● linkType: LinkType = LinkType.All
operatorID
Section titled “operatorID”The operator id.
● operatorID: string
parameterized
Section titled “parameterized”The value indicating whether this condition is parameterized.
● parameterized: boolean
readOnly
Section titled “readOnly”The value indicating whether this condition is read-only.
● readOnly: boolean
The condition tag.
● tag: CondTag
Public Methods
Section titled “Public Methods”loadFromData
Section titled “loadFromData”Loads condtion from its JSON representation object.
▸ loadFromData(model: DataModel,data: ConditionData): void
Parameters:
Section titled “Parameters:”- model: DataModel - The Data Model.
- data: ConditionData - The JSON representation object.
Returns void
saveToData
Section titled “saveToData”Saves condition to JSON representation object.
▸ saveToData(): ConditionData
Returns ConditionData - The JSON representation object.