Interface ExecutableRemoveOperation.RemoveWithCollection<T>
- Type Parameters:
T
-
- All Superinterfaces:
ExecutableRemoveOperation.RemoveWithQuery<T>
,ExecutableRemoveOperation.TerminatingRemove<T>
- All Known Subinterfaces:
ExecutableRemoveOperation.ExecutableRemove<T>
- Enclosing interface:
- ExecutableRemoveOperation
public static interface ExecutableRemoveOperation.RemoveWithCollection<T>
extends ExecutableRemoveOperation.RemoveWithQuery<T>
Collection override (optional).
- Since:
- 2.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptioninCollection
(String collection) Explicitly set the name of the collection to perform the query on.Methods inherited from interface org.springframework.data.mongodb.core.ExecutableRemoveOperation.RemoveWithQuery
matching, matching
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableRemoveOperation.TerminatingRemove
all, findAndRemove, one
-
Method Details
-
inCollection
Explicitly set the name of the collection to perform the query on.
Skip this step to use the default collection derived from the domain type.- Parameters:
collection
- must not be null nor empty.- Returns:
- new instance of
ExecutableRemoveOperation.RemoveWithCollection
. - Throws:
IllegalArgumentException
- if collection is null.
-