public interface ExecutableRemoveOperation
ExecutableRemoveOperation allows creation and execution of 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 |
ExecutableRemoveOperation.ExecutableRemove<T> |
static interface |
ExecutableRemoveOperation.RemoveWithCollection<T>
Collection override (optional).
|
static interface |
ExecutableRemoveOperation.RemoveWithQuery<T> |
static interface |
ExecutableRemoveOperation.TerminatingRemove<T> |
| Modifier and Type | Method and Description |
|---|---|
<T> ExecutableRemoveOperation.ExecutableRemove<T> |
remove(Class<T> domainType)
Start creating a remove operation for the given domainType.
|
<T> ExecutableRemoveOperation.ExecutableRemove<T> remove(Class<T> domainType)
domainType - must not be null.ExecutableRemoveOperation.ExecutableRemove.IllegalArgumentException - if domainType is null.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.