Condition class

Represents some condition.

Index

Constructors

Public Properties

Public Methods

Constructors


constructor

The default constructor. ⊕ new Condition(tag?: CondTag): Condition

Parameters:

  • tag: CondTag, Optional - The condition tag

Public Properties


blockId

The block id.

● blockId: string


conditions

The list of conditions.

● conditions: Condition[]


enabled

The value indicating whether this Condition is enabled.

● enabled: boolean


expressions

The list of expression.

● expressions: Expression[]


inJoin

The value indicating whether this condition must be placed into JOIN clause in result SQL.

● inJoin: boolean


justAdded

Condition enabled option.

● justAdded: boolean


linkType

The linking type.

● linkType: LinkType = LinkType.All


operatorID

The operator id.

● operatorID: string


parameterized

The value indicating whether this condition is parameterized.

● parameterized: boolean


readOnly

The value indicating whether this condition is read-only.

● readOnly: boolean


tag

The condition tag.

● tag: CondTag


Public Methods


loadFromData

Loads condtion from its JSON representation object.

▸ loadFromData(model: DataModel,data: ConditionData): void

Parameters:

Returns void


saveToData

Saves condition to JSON representation object.

▸ saveToData(): ConditionData

Returns ConditionData - The JSON representation object.