WhereFilterNodeBuilder

Where 过滤节点构建器,用于配置单个 Where 过滤条件

属性

方法

constructor

定义:

constructor(yMap: Y.Map<any>)

参数:

参数类型说明
yMapY.Map-

getId

获取节点 ID

定义:

getId(): string

返回: string

getField

获取字段名

定义:

getField(): string

返回: string

setField

设置字段名

定义:

setField(field: string): this

返回: this

参数:

参数类型说明
fieldstring- 字段名

getOperator

获取过滤操作符

定义:

getOperator(): string | undefined

返回: string \| undefined

setOperator

设置过滤操作符

定义:

setOperator(operator: string): this

返回: this

参数:

参数类型说明
operatorstring- 操作符

setValue

设置过滤值

定义:

setValue(value: unknown): this

返回: this

参数:

参数类型说明
valueunknown- 过滤值

setDate

设置日期过滤条件

定义:

setDate(predicate: VBIWhereDatePredicate): this

返回: this

参数:

参数类型说明
predicateVBIWhereDatePredicate- 日期谓词

getDate

获取日期过滤条件,非日期过滤返回 undefined

定义:

getDate(): VBIWhereDatePredicate | undefined

返回: VBIWhereDatePredicate \| undefined

toJSON

导出为 JSON

定义:

toJSON(): VBIWhereFilter

返回: VBIWhereFilter