Module spring.data.mongodb
Interface ExecutableFindOperation.FindWithCollection<T>
- All Superinterfaces:
ExecutableFindOperation.FindWithQuery<T>,ExecutableFindOperation.TerminatingFind<T>
- All Known Subinterfaces:
ExecutableFindOperation.ExecutableFind<T>
- Enclosing interface:
- ExecutableFindOperation
public static interface ExecutableFindOperation.FindWithCollection<T>
extends ExecutableFindOperation.FindWithQuery<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.ExecutableFindOperation.FindWithQuery
matching, matching, nearMethods inherited from interface org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind
all, count, exists, first, firstValue, one, oneValue, scroll, stream
-
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
ExecutableFindOperation.FindWithProjection. - Throws:
IllegalArgumentException- if collection is null.
-