类的使用
cool.scx.dao.UpdateFilter
使用UpdateFilter的程序包
-
cool.scx.dao中UpdateFilter的使用
返回UpdateFilter的cool.scx.dao中的方法修饰符和类型方法说明static UpdateFilterUpdateFilter.ofExcluded()启用黑名单模式 (当一个实体类所对应的 field 的值为 null 时, 会将此 field 所对应的列排除, 详情请看ofExcluded(boolean))static UpdateFilterUpdateFilter.ofExcluded(boolean excludeIfFieldValueIsNull) 启动黑名单模式static UpdateFilterUpdateFilter.ofExcluded(boolean excludeIfFieldValueIsNull, String... fieldNames) 黑名单模式static UpdateFilterUpdateFilter.ofExcluded(String... fieldNames) 黑名单模式static UpdateFilterUpdateFilter.ofIncluded()启用白名单模式 (当一个实体类所对应的 field 的值为 null 时, 会将此 field 所对应的列排除, 详情请看ofIncluded(boolean))static UpdateFilterUpdateFilter.ofIncluded(boolean excludeIfFieldValueIsNull) 启用白名单模式static UpdateFilterUpdateFilter.ofIncluded(boolean excludeIfFieldValueIsNull, String... fieldNames) 白名单模式static UpdateFilterUpdateFilter.ofIncluded(String... fieldNames) 白名单模式参数类型为UpdateFilter的cool.scx.dao中的方法修饰符和类型方法说明final LongBaseDao.insert(Entity entity, UpdateFilter updateFilter) 保存单条数据BaseDao.insertBatch(Collection<Entity> entityList, UpdateFilter updateFilter) 保存多条数据final longBaseDao.update(Entity entity, Query query, UpdateFilter updateFilter) 更新数据 -
cool.scx.dao._old中UpdateFilter的使用
参数类型为UpdateFilter的cool.scx.dao._old中的方法修饰符和类型方法说明final LongOldBaseDao.insert(Entity entity, UpdateFilter updateFilter) 保存单条数据OldBaseDao.insertBatch(Collection<Entity> entityList, UpdateFilter updateFilter) 保存多条数据final longOldBaseDao.update(Entity entity, Query query, UpdateFilter updateFilter) 更新数据