Module spring.data.mongodb
Interface ReactiveUpdateOperation.UpdateWithQuery<T>
- All Superinterfaces:
ReactiveUpdateOperation.UpdateWithUpdate<T>
- All Known Subinterfaces:
ReactiveUpdateOperation.ReactiveUpdate<T>
- Enclosing interface:
- ReactiveUpdateOperation
public static interface ReactiveUpdateOperation.UpdateWithQuery<T>
extends ReactiveUpdateOperation.UpdateWithUpdate<T>
Define a filter query for the
Update (optional).-
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.ReactiveUpdateOperation.UpdateWithUpdate
apply, replaceWith
-
Method Details
-
matching
Filter documents by given query.- Parameters:
query- must not be null.- Returns:
- new instance of
ReactiveUpdateOperation.UpdateWithQuery. Never null. - Throws:
IllegalArgumentException- if query is null.
-
matching
Set the filtercriteriato be used.- Parameters:
criteria- must not be null.- Returns:
- new instance of
ReactiveUpdateOperation.UpdateWithUpdate. - Throws:
IllegalArgumentException- if query is null.- Since:
- 3.0
-