Module spring.data.mongodb
Interface ExecutableUpdateOperation.UpdateWithUpdate<T>
- All Known Subinterfaces:
ExecutableUpdateOperation.ExecutableUpdate<T>,ExecutableUpdateOperation.UpdateWithQuery<T>
- Enclosing interface:
- ExecutableUpdateOperation
public static interface ExecutableUpdateOperation.UpdateWithUpdate<T>
Declare the
Update to apply.- Since:
- 2.0
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionapply(UpdateDefinition update) Set theUpdateDefinitionto be applied.replaceWith(T replacement) Specifyreplacementobject.
-
Method Details
-
apply
Set theUpdateDefinitionto be applied.- Parameters:
update- must not be null.- Returns:
- new instance of
ExecutableUpdateOperation.TerminatingUpdate. - Throws:
IllegalArgumentException- if update is null.- Since:
- 3.0
- See Also:
-
replaceWith
Specifyreplacementobject.- Parameters:
replacement- must not be null.- Returns:
- new instance of
FindAndReplaceOptions. - Throws:
IllegalArgumentException- if options is null.- Since:
- 2.1
-