Interface ExecutableRemoveOperation
- All Known Subinterfaces:
FluentMongoOperations
,MongoOperations
- All Known Implementing Classes:
MongoTemplate
public interface ExecutableRemoveOperation
ExecutableRemoveOperation
allows creation and execution of MongoDB remove / findAndRemove operations in a
fluent API style. The starting domainType is used for mapping the
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();
- Since:
- 2.0
- Author:
- Christoph Strobl, Mark Paluch
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static interface
Collection override (optional).static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionStart creating a remove operation for the given domainType.
-
Method Details
-
remove
Start creating a remove operation for the given domainType.- Parameters:
domainType
- must not be null.- Returns:
- new instance of
ExecutableRemoveOperation.ExecutableRemove
. - Throws:
IllegalArgumentException
- if domainType is null.
-