## 类的使用
kd.bos.entity.filter.FilterField

- 使用FilterField的程序包
  程序包 | 说明
  --- | ---
  kd.bos.entity |
  kd.bos.entity.filter |
  kd.bos.entity.property |
  kd.bos.filter |

- - ### kd.bos.entity中FilterField的使用

    返回变量类型为FilterField的类型的kd.bos.entity中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `java.util.List<FilterField>` | EntityTypeUtil.`getFilterFields(kd.bos.dataentity.metadata.IDataEntityType dataEntityType)`
    `java.util.List<FilterField>` | EntityTypeUtil.`getFilterFields(kd.bos.dataentity.metadata.IDataEntityType dataEntityType, boolean isOnlyMainEntityField)`

  - ### kd.bos.entity.filter中FilterField的使用

    返回FilterField的kd.bos.entity.filter中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static FilterField` | FilterField.`create(MainEntityType mainType, java.lang.String fieldName)` 公共静态方法：传入字段标识，创建对应的过滤字段
    `FilterField` | FilterRow.`getFilterField()`
    `static FilterField` | FilterBuilder.`getFilterField(FilterObject filterObject, java.lang.String fieldName)`
    `static FilterField` | FilterBuilder.`getFilterField(MainEntityType dataType, java.lang.String fieldName)` 获取过滤字段

    返回变量类型为FilterField的类型的kd.bos.entity.filter中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `java.util.Map<java.lang.String,FilterField>` | FilterObject.`getAllFilterFields()`
    `java.util.Map<java.lang.String,FilterField>` | FilterObject.`getCompareFilterFields()`
    `java.util.Map<java.lang.String,FilterField>` | FilterObject.`getFilterFields()`

    参数类型为FilterField的kd.bos.entity.filter中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | FilterObject.`addCompareFiled(FilterField field)`
    `void` | FilterObject.`addField(FilterField field)`
    `static java.util.List<FilterRow>` | FilterBuilder.`convertIsNullFilterRow(FilterRow filterRow, FilterObject filterObject, FilterField filterField)` 为空特殊处理，将为空过滤条件转为A.Basedata='0'
    `static CompareType` | FilterBuilder.`getCompareType(FilterField filterField, java.lang.String compare)`
    `void` | FilterRow.`setFilterField(FilterField fieldField)`

    类型变量类型为FilterField的kd.bos.entity.filter中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `void` | FilterObject.`addCompareFileds(java.util.List<FilterField> compareFields)`
    `void` | FilterObject.`addFields(java.util.List<FilterField> fields)`
    `void` | FilterObject.`setAllFilterFields(java.util.Map<java.lang.String,FilterField> allFilterFields)`
    `void` | FilterObject.`setCompareFilterFields(java.util.Map<java.lang.String,FilterField> compareFilterFields)`
    `void` | FilterObject.`setFilterFields(java.util.Map<java.lang.String,FilterField> filterFields)`

    参数类型为FilterField的kd.bos.entity.filter中的构造器
    构造器和说明
    `FilterRow(MainEntityType dataType, FilterObject filterObject, FilterField fieldField, java.lang.String leftBracket, CompareType compareType, java.util.List<java.lang.String> valueList, java.lang.String rightBracket, LogicOperate logic)`

    类型变量类型为FilterField的kd.bos.entity.filter中的构造器参数
    构造器和说明
    `FilterBuilder(MainEntityType dataType, FilterCondition filterCondition, boolean isCheckInput, java.util.List<FilterField> filterFields)` 构造函数
    `FilterBuilder(MainEntityType dataType, FilterCondition filterCondition, IFilterValueSetter filterValueSetter, boolean isCheckInput, java.util.List<FilterField> filterFields)` 构造函数

  - ### kd.bos.entity.property中FilterField的使用

    返回FilterField的kd.bos.entity.property中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `FilterField` | OrgProp.`createFilterField(MainEntityType mainType, java.lang.String refPropKey)`
    `FilterField` | MulBasedataProp.`createFilterField(MainEntityType mainType, java.lang.String refPropKey)`
    `FilterField` | ItemClassProp.`createFilterField(MainEntityType mainType, java.lang.String refPropKey)`
    `FilterField` | IFieldHandle.`createFilterField(MainEntityType mainType, java.lang.String propName)`
    `FilterField` | FlexProp.`createFilterField(MainEntityType mainType, java.lang.String propName)`
    `FilterField` | FieldProp.`createFilterField(MainEntityType mainType, java.lang.String propName)` 输出过滤字段信息
    `FilterField` | BasedataProp.`createFilterField(MainEntityType mainType, java.lang.String refPropKey)` 输出过滤字段信息

    返回变量类型为FilterField的类型的kd.bos.entity.property中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `java.util.List<FilterField>` | OrgProp.`createFilterFields(MainEntityType mainType)`
    `java.util.List<FilterField>` | ItemClassProp.`createFilterFields(MainEntityType mainType)`
    `default java.util.List<FilterField>` | IFieldHandle.`createFilterFields(MainEntityType mainType)` 基于运行时字段元数据，构建过滤字段
    `java.util.List<FilterField>` | FlexProp.`createFilterFields(MainEntityType mainType)`
    `java.util.List<FilterField>` | FieldProp.`createFilterFields(MainEntityType mainType)` 基于运行时字段元数据，构建过滤字段
    `java.util.List<FilterField>` | BasedataProp.`createFilterFields(MainEntityType mainType)` 基于运行时字段元数据，构建过滤字段

  - ### kd.bos.filter中FilterField的使用

    返回FilterField的kd.bos.filter中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `FilterField` | FlexSchemeFilterColumn.`getFilterField()`
    `FilterField` | FilterColumn.`getFilterField()`
    `FilterField` | CommonFilterColumn.`getFilterField()`

    类型变量类型为FilterField的kd.bos.filter中的方法参数
    限定符和类型 | 方法和说明
    --- | ---
    `void` | FlexSchemeFilterColumn.`addFilterFields(java.util.Map<java.lang.String,FilterField> filterFields)`
    `void` | FilterColumn.`addFilterFields(java.util.Map<java.lang.String,FilterField> filterFields)`
    `void` | CommonCheckBoxGroupFilterColumn.`addFilterFields(java.util.Map<java.lang.String,FilterField> filterFields)`