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 theUpdateDefinition
to be applied.replaceWith
(T replacement) Specifyreplacement
object.
-
Method Details
-
apply
Set theUpdateDefinition
to 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
Specifyreplacement
object.- Parameters:
replacement
- must not be null.- Returns:
- new instance of
FindAndReplaceOptions
. - Throws:
IllegalArgumentException
- if options is null.- Since:
- 2.1
-