WhereFilterNodeBuilder

Builder node lọc Where, dùng để cấu hình một điều kiện lọc Where

Phương thức

constructor

Định nghĩa:

constructor(yMap: Y.Map<any>)

Tham số:

Tham sốKiểuMô tả
yMapY.Map-

getId

Lấy ID node

Định nghĩa:

getId(): string

Trả về: string

getField

Lấy tên field

Định nghĩa:

getField(): string

Trả về: string

setField

Thiết lập tên field

Định nghĩa:

setField(field: string): this

Trả về: this

Tham số:

Tham sốKiểuMô tả
fieldstring- Tên field

getOperator

Lấy toán tử lọc

Định nghĩa:

getOperator(): string | undefined

Trả về: string \| undefined

setOperator

Thiết lập toán tử lọc

Định nghĩa:

setOperator(operator: string): this

Trả về: this

Tham số:

Tham sốKiểuMô tả
operatorstring- Toán tử

setValue

Thiết lập giá trị lọc

Định nghĩa:

setValue(value: unknown): this

Trả về: this

Tham số:

Tham sốKiểuMô tả
valueunknown- Giá trị lọc

setDate

Thiết lập điều kiện lọc ngày

Định nghĩa:

setDate(predicate: VBIWhereDatePredicate): this

Trả về: this

Tham số:

Tham sốKiểuMô tả
predicateVBIWhereDatePredicate- Predicate ngày

getDate

Lấy điều kiện lọc ngày; lọc không phải ngày trả về undefined

Định nghĩa:

getDate(): VBIWhereDatePredicate | undefined

Trả về: VBIWhereDatePredicate \| undefined

toJSON

Xuất thành JSON

Định nghĩa:

toJSON(): VBIWhereFilter

Trả về: VBIWhereFilter