Uses of Interface
org.huiche.ast.statement.Update
Packages that use Update
Package
Description
可操作接口,包括表达式|语句|引用的操作
SQL语句
SQL子句
ast支持相关
增删改指令
实体类增删改指令
Dao实现的支持
-
Uses of Update in org.huiche.ast.operable
Subinterfaces with type arguments of type Update in org.huiche.ast.operableMethods in org.huiche.ast.operable that return UpdateModifier and TypeMethodDescriptiondefault Updateset单个列和值,设置多个值请多次调用default Updateset单个列和值,设置多个值请多次调用set单个列和值,设置多个值请多次调用
val支持传入null
val支持传入Expression及其子类
val支持传入Select作为标量子查询(需确保1行1列,否则执行失败)
val支持传入内置支持类型或自定义ColumnMapper类型,但最终受限于数据库支持
若配置了SerializationMapper可传入其可序列化的类型,但最终受限于数据库支持
val不支持传入非Expression及子类和Select的其他Segment类型default <T,R> Update UpdateOperable.set(SerializableFunction<T, R> column, Expression expr) set单个列和值,设置多个值请多次调用default <T,R> Update UpdateOperable.set(SerializableFunction<T, R> column, R val) set单个列和值,设置多个值请多次调用default Update设置指定列为NULLdefault Update设置指定列为NULLdefault Update设置指定列为NULLdefault <T> UpdateUpdateOperable.setNull(SerializableFunction<T, ?> column) 设置指定列为NULL -
Uses of Update in org.huiche.ast.statement
Classes in org.huiche.ast.statement that implement UpdateSubclasses with type arguments of type Update in org.huiche.ast.statementSubinterfaces with type arguments of type Update in org.huiche.ast.statementMethods in org.huiche.ast.statement that return Update -
Uses of Update in org.huiche.ast.statement.clause
Methods in org.huiche.ast.statement.clause that return Update -
Uses of Update in org.huiche.ast.support
Methods in org.huiche.ast.support that return Update -
Uses of Update in org.huiche.dao.cmd
Method parameters in org.huiche.dao.cmd with type arguments of type UpdateModifier and TypeMethodDescriptiondefault int更新default int更新default intUpdateCmd.updateById(Class<?> entityClass, Consumer<Update> customizer, Serializable id) 通过ID更新,需实体类对应表有且仅有单主键default intUpdateCmd.updateByIds(Class<?> entityClass, Consumer<Update> customizer, Serializable... ids) 通过ID更新,需实体类对应表有且仅有单主键default intUpdateCmd.updateByIds(Class<?> entityClass, Consumer<Update> customizer, Collection<? extends Serializable> ids) 通过ID更新,需实体类对应表有且仅有单主键default intUpdateCmd.updateWith(Class<?> entityClass, Object source, Consumer<Update> customizer) 更新default intUpdateCmd.updateWithMap(Class<?> entityClass, Map<String, Object> sourceMap, Consumer<Update> customizer) 更新 -
Uses of Update in org.huiche.dao.cmd.entity
Method parameters in org.huiche.dao.cmd.entity with type arguments of type UpdateModifier and TypeMethodDescriptiondefault int更新default int更新default intEntityUpdateCmd.updateById(Consumer<Update> customizer, Serializable id) 通过ID更新,需实体类对应表有且仅有单主键default intEntityUpdateCmd.updateByIds(Consumer<Update> customizer, Serializable... ids) 通过ID更新,需实体类对应表有且仅有单主键default intEntityUpdateCmd.updateByIds(Consumer<Update> customizer, Collection<? extends Serializable> ids) 通过ID更新,需实体类对应表有且仅有单主键default intEntityUpdateCmd.updateWith(Object source, Consumer<Update> customizer) 更新default int更新 -
Uses of Update in org.huiche.dao.support
Methods in org.huiche.dao.support that return types with arguments of type UpdateModifier and TypeMethodDescription更新前置处理, 在before之前
可在此处进行一些实体类额外修改操作, 如审计字段等Methods in org.huiche.dao.support with parameters of type UpdateModifier and TypeMethodDescriptiondefault voidDaoInterceptor.afterUpdate(Class<?> entityClass, Object source, Update update, int result) 更新执行之后
一般只用来记录voidDaoInterceptors.afterUpdate(Class<?> entityClass, Object source, Update update, int result) default voidDaoInterceptor.beforeUpdate(Class<?> entityClass, Object source, Update update) 更新执行之前
已生成更新语句, 修改实体类不会作用于语句, 但可直接修改语句voidDaoInterceptors.beforeUpdate(Class<?> entityClass, Object source, Update update)