E - 实体类型public interface ReactiveUpdate<E> extends DSLUpdate<E,ReactiveUpdate<E>>
UpdateOperatorTermTypeConditionalSupport.Accepter<T,O>, TermTypeConditionalSupport.SimpleAccepter<T,O>| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<Integer> |
execute()
执行更新
|
ReactiveUpdate<E> |
onExecute(java.util.function.BiFunction<ReactiveUpdate<E>,reactor.core.publisher.Mono<Integer>,reactor.core.publisher.Mono<Integer>> consumer)
在执行更新后做一些响应式操作,在操作时可以获取到Update,比如更新缓存.
|
excludes, excludes, excludes, includes, includes, includes, set, set, set, set, setNull, setNull, setNull, toQueryParam$like, $like, $like, $like$, $like$, $like$, accept, accept, accept, accept, and, and, and, and, and, and, and, and, between, between, between, getAccepter, gt, gt, gt, gte, gte, gte, in, in, in, in, in, in, in, is, is, is, isEmpty, isEmpty, isNull, isNull, like, like, like, like$, like$, like$, lt, lt, lt, lte, lte, lte, nest, nest, not, not, not, notBetween, notBetween, notBetween, notEmpty, notEmpty, notIn, notIn, notIn, notIn, notIn, notIn, notIn, notLike, notLike, notLike, notNull, notNull, or, or, or, or, or, or, or, or, orNest, where, where, where, where, wherereactor.core.publisher.Mono<Integer> execute()
ReactiveUpdate<E> onExecute(java.util.function.BiFunction<ReactiveUpdate<E>,reactor.core.publisher.Mono<Integer>,reactor.core.publisher.Mono<Integer>> consumer)
createUpdate()
.set("state",1)
.where()
.in("id",idList)
.onExecute((update,result)->{
return result
.flatMap(i-> this
.createQuery()
.setParam(update.toQueryParam())//获取到update的where参数
.fetch()
.flatMap(this::clearCache)
.thenReturn(i);
}).execute();
consumer - 执行结果处理器Copyright © 2021. All rights reserved.