Interface ExecutableUpdateOperation.TerminatingUpdate<T>
- All Superinterfaces:
ExecutableUpdateOperation.FindAndModifyWithOptions<T>,ExecutableUpdateOperation.TerminatingFindAndModify<T>
- Enclosing interface:
- ExecutableUpdateOperation
public static interface ExecutableUpdateOperation.TerminatingUpdate<T>
extends ExecutableUpdateOperation.TerminatingFindAndModify<T>, ExecutableUpdateOperation.FindAndModifyWithOptions<T>
Trigger update execution by calling one of the terminating methods.
- Since:
- 2.0
- Author:
- Christoph Strobl
-
Method Summary
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndModifyWithOptions
withOptionsMethods inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndModify
findAndModify, findAndModifyValue
-
Method Details
-
all
UpdateResult all()Update all matching documents in the collection.- Returns:
- never null.
-
first
UpdateResult first()Update the first document in the collection.- Returns:
- never null.
-
upsert
UpdateResult upsert()Creates a new document if no documents match the filter query or updates the matching ones.- Returns:
- never null.
-