public class DefaultReactiveDelete extends DefaultDelete<ReactiveDelete> implements ReactiveDelete
TermTypeConditionalSupport.Accepter<T,O>, TermTypeConditionalSupport.SimpleAccepter<T,O>| 限定符和类型 | 字段和说明 |
|---|---|
java.util.function.BiFunction<ReactiveDelete,reactor.core.publisher.Mono<Integer>,reactor.core.publisher.Mono<Integer>> |
mapper |
accepter, contextKeyValues, operator, terms| 构造器和说明 |
|---|
DefaultReactiveDelete(RDBTableMetadata tableMetadata,
DeleteOperator operator,
ContextKeyValue<?>... keyValues) |
| 限定符和类型 | 方法和说明 |
|---|---|
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,比如更新缓存.
|
accept, and, and, doExecute, getAccepter, nest, or, or, orNest, toQueryParamclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoQueryParam$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, wherepublic java.util.function.BiFunction<ReactiveDelete,reactor.core.publisher.Mono<Integer>,reactor.core.publisher.Mono<Integer>> mapper
public DefaultReactiveDelete(RDBTableMetadata tableMetadata, DeleteOperator operator, ContextKeyValue<?>... keyValues)
public reactor.core.publisher.Mono<Integer> execute()
ReactiveDeleteexecute 在接口中 ReactiveDeletepublic ReactiveDelete onExecute(java.util.function.BiFunction<ReactiveDelete,reactor.core.publisher.Mono<Integer>,reactor.core.publisher.Mono<Integer>> mapper)
ReactiveDelete
createDelete()
.where()
.in("id",idList)
.onExecute((delete,execute)->{
return createQuery()
.setParam(delete.toQueryParam())//获取到update的where参数
.fetch()
.flatMap(this::clearCache)
.then(execute)
;
}).execute();
onExecute 在接口中 ReactiveDeletemapper - 执行结果处理器Copyright © 2021. All rights reserved.