E - 实体类型public interface IUpdate<E extends IEntity>
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
execute(Function<IUpdate<E>,Integer> executor)
已过时。
replaced by
#of(IRichMapper).method(...) |
WrapperData |
getWrapperData()
返回查询器或更新器对应的xml数据
系统方法, 请勿调用
|
<U extends IUpdate<E>> |
last(String lastSql)
追加在sql语句的末尾
!!!
|
<U extends IUpdate<E>> |
limit(int limit)
设置limit值
|
default UpdaterExecutor |
of(IRichMapper<E> mapper)
根据Updater定义执行后续操作
|
default UpdaterExecutor |
to()
根据Updater定义执行后续操作
要使用本方法
需要定义
MapperFactory spring bean
same as of(IRichMapper) 方法
|
default <U extends IUpdate<E>> |
updateSet(String column,
Object value)
设置更新值
|
WhereBase |
where()
返回where
|
default <U extends IUpdate<E>> U updateSet(String column, Object value)
U - 更新器类型column - 更新字段value - 更新值<U extends IUpdate<E>> U last(String lastSql)
lastSql - 追加SQLWhereBase where()
WrapperData getWrapperData()
default UpdaterExecutor to()
要使用本方法 需要定义MapperFactoryspring bean same asof(IRichMapper)方法
default UpdaterExecutor of(IRichMapper<E> mapper)
mapper - 执行操作的mapper@Deprecated default int execute(Function<IUpdate<E>,Integer> executor)
#of(IRichMapper).method(...)executor - 具体更新操作Copyright © 2021. All rights reserved.