public interface ReactiveDelete extends DSLDelete<ReactiveDelete>
TermTypeConditionalSupport.Accepter<T,O>, TermTypeConditionalSupport.SimpleAccepter<T,O>| 限定符和类型 | 方法和说明 |
|---|---|
reactor.core.publisher.Mono<Integer> |
execute()
执行异步删除,返回被删除的数据条数
|
ReactiveDelete |
onExecute(java.util.function.BiFunction<ReactiveDelete,reactor.core.publisher.Mono<Integer>,reactor.core.publisher.Mono<Integer>> mapper)
在执行更新后做一些响应式操作,在操作时可以获取到Update,比如更新缓存.
|
toQueryParam, 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()
ReactiveDelete onExecute(java.util.function.BiFunction<ReactiveDelete,reactor.core.publisher.Mono<Integer>,reactor.core.publisher.Mono<Integer>> mapper)
createDelete()
.where()
.in("id",idList)
.onExecute((delete,execute)->{
return createQuery()
.setParam(delete.toQueryParam())//获取到update的where参数
.fetch()
.flatMap(this::clearCache)
.then(execute)
;
}).execute();
mapper - 执行结果处理器Copyright © 2023. All rights reserved.