Module spring.data.mongodb
Interface ExecutableUpdateOperation.UpdateWithQuery<T>
- All Superinterfaces:
ExecutableUpdateOperation.UpdateWithUpdate<T>
- All Known Subinterfaces:
ExecutableUpdateOperation.ExecutableUpdate<T>
- Enclosing interface:
- ExecutableUpdateOperation
public static interface ExecutableUpdateOperation.UpdateWithQuery<T>
extends ExecutableUpdateOperation.UpdateWithUpdate<T>
Define a filter query for the
Update.- Since:
- 2.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionmatching(CriteriaDefinition criteria) Set the filtercriteriato be used.Filter documents by given query.Methods inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithUpdate
apply, replaceWith
-
Method Details
-
matching
Filter documents by given query.- Parameters:
query- must not be null.- Returns:
- new instance of
ExecutableUpdateOperation.UpdateWithQuery. - Throws:
IllegalArgumentException- if query is null.
-
matching
Set the filtercriteriato be used.- Parameters:
criteria- must not be null.- Returns:
- new instance of
ExecutableUpdateOperation.UpdateWithUpdate. - Throws:
IllegalArgumentException- if query is null.- Since:
- 3.0
-