HavingGroupBuilder

条件グループの論理関係(AND/OR)を設定する Having グループビルダー

メソッド

constructor

定義:

constructor(yMap: Y.Map<any>)

パラメータ:

パラメータ説明
yMapY.Map-

getConditions

定義:

getConditions(): Y.Array<any>

戻り値: Y.Array<any>

getId

グループ ID を取得

定義:

getId(): string

戻り値: string

getOperator

論理演算子を取得

定義:

getOperator(): 'and' | 'or'

戻り値: 'and' \| 'or'

setOperator

論理演算子を設定

定義:

setOperator(op: 'and' | 'or'): this

戻り値: this

パラメータ:

パラメータ説明
op'and' | 'or'- 論理演算子

add

Having フィルター条件をグループに追加

定義:

add(field: string, callback: (node: HavingFilterNodeBuilder) => void): this

戻り値: this

パラメータ:

パラメータ説明
fieldstring- フィールド名
callback(node: HavingFilterNodeBuilder) => void- コールバック関数

addGroup

ネストしたグループを現在のグループに追加

定義:

addGroup(op: 'and' | 'or', callback: (group: HavingGroupBuilder) => void): this

戻り値: this

パラメータ:

パラメータ説明
op'and' | 'or'- 論理演算子
callback(group: HavingGroupBuilder) => void- コールバック関数

remove

指定 ID の条件または指定インデックスの項目を削除

定義:

remove(idOrIndex: string | number): this

戻り値: this

パラメータ:

パラメータ説明
idOrIndexstring | number- ID またはインデックス

clear

グループ内のすべての条件をクリア

定義:

clear(): this

戻り値: this

toJSON

JSON としてエクスポート

定義:

toJSON(): VBIHavingGroup

戻り値: VBIHavingGroup