程序包 cool.scx.dao
类 UpdateFilter
更新及保存数据是的字段过滤器 (注意 excludeIfFieldValueIsNull 在 批量保存时无效)
- 版本:
- 0.1.3
- 作者:
- scx567888
-
嵌套类概要
从类继承的嵌套类/接口 cool.scx.dao.ColumnInfoFilter
ColumnInfoFilter.FilterMode -
方法概要
修饰符和类型方法说明filter(Object entity, ColumnInfo... scxDaoColumnInfos) 过滤static UpdateFilter启用黑名单模式 (当一个实体类所对应的 field 的值为 null 时, 会将此 field 所对应的列排除, 详情请看ofExcluded(boolean))static UpdateFilterofExcluded(boolean excludeIfFieldValueIsNull) 启动黑名单模式static UpdateFilterofExcluded(boolean excludeIfFieldValueIsNull, String... fieldNames) 黑名单模式static UpdateFilterofExcluded(String... fieldNames) 黑名单模式static UpdateFilter启用白名单模式 (当一个实体类所对应的 field 的值为 null 时, 会将此 field 所对应的列排除, 详情请看ofIncluded(boolean))static UpdateFilterofIncluded(boolean excludeIfFieldValueIsNull) 启用白名单模式static UpdateFilterofIncluded(boolean excludeIfFieldValueIsNull, String... fieldNames) 白名单模式static UpdateFilterofIncluded(String... fieldNames) 白名单模式从类继承的方法 cool.scx.dao.ColumnInfoFilter
addExcluded, addIncluded, clear, filter, filterMode, removeExcluded, removeIncluded
-
方法详细资料
-
ofIncluded
启用白名单模式 (当一个实体类所对应的 field 的值为 null 时, 会将此 field 所对应的列排除, 详情请看ofIncluded(boolean))- 返回:
- a
-
ofExcluded
启用黑名单模式 (当一个实体类所对应的 field 的值为 null 时, 会将此 field 所对应的列排除, 详情请看ofExcluded(boolean))- 返回:
- a
-
ofIncluded
启用白名单模式- 参数:
excludeIfFieldValueIsNull- 当一个实体类所对应的 field 的值为 null 时, 是否将此 field 所对应的列排除- 返回:
- a
-
ofExcluded
启动黑名单模式- 参数:
excludeIfFieldValueIsNull- 当一个实体类所对应的 field 的值为 null 时, 是否将此 field 所对应的列排除- 返回:
- a
-
ofIncluded
白名单模式- 参数:
fieldNames- a- 返回:
- a
-
ofExcluded
黑名单模式- 参数:
fieldNames- a- 返回:
- a
-
ofIncluded
白名单模式- 参数:
excludeIfFieldValueIsNull- afieldNames- a- 返回:
- a
-
ofExcluded
黑名单模式- 参数:
excludeIfFieldValueIsNull- afieldNames- a- 返回:
- a
-
filter
过滤- 参数:
entity- ascxDaoColumnInfos- 带过滤的列表- 返回:
- 过滤后的列表
-