public interface ReactiveRemoveOperation
ReactiveRemoveOperation allows creation and execution of reactive MongoDB remove / findAndRemove operations
in a fluent API style. Query provided via matching into the
MongoDB specific representation. The collection to operate on is by default derived from the initial
domainType and can be defined there via Document.
Using inCollection allows to override the collection name for the execution.
remove(Jedi.class)
.inCollection("star-wars")
.matching(query(where("firstname").is("luke")))
.all();
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ReactiveRemoveOperation.ReactiveRemove<T> |
static interface |
ReactiveRemoveOperation.RemoveWithCollection<T>
Collection override (optional).
|
static interface |
ReactiveRemoveOperation.RemoveWithQuery<T>
Provide a
Query override (optional). |
static interface |
ReactiveRemoveOperation.TerminatingRemove<T>
Compose remove execution by calling one of the terminating methods.
|
| Modifier and Type | Method and Description |
|---|---|
<T> ReactiveRemoveOperation.ReactiveRemove<T> |
remove(Class<T> domainType)
Start creating a remove operation for the given domainType.
|
<T> ReactiveRemoveOperation.ReactiveRemove<T> remove(Class<T> domainType)
domainType - must not be null.ReactiveRemoveOperation.ReactiveRemove. Never null.IllegalArgumentException - if domainType is null.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.