Interface ExecutableUpdateOperation.FindAndReplaceWithProjection<T>
- All Superinterfaces:
ExecutableUpdateOperation.FindAndReplaceWithOptions<T>
,ExecutableUpdateOperation.ReplaceWithOptions
,ExecutableUpdateOperation.TerminatingFindAndReplace<T>
,ExecutableUpdateOperation.TerminatingReplace
- Enclosing interface:
- ExecutableUpdateOperation
public static interface ExecutableUpdateOperation.FindAndReplaceWithProjection<T>
extends ExecutableUpdateOperation.FindAndReplaceWithOptions<T>
Result type override (Optional).
- Since:
- 2.1
- Author:
- Christoph Strobl
-
Method Summary
Modifier and TypeMethodDescriptionDefine the target type fields should be mapped to.Methods inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithOptions
withOptions
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.ReplaceWithOptions
withOptions
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndReplace
findAndReplace, findAndReplaceValue
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingReplace
replaceFirst
-
Method Details
-
as
Define the target type fields should be mapped to.
Skip this step if you are anyway only interested in the original domain type.- Type Parameters:
R
- result type.- Parameters:
resultType
- must not be null.- Returns:
- new instance of
ExecutableUpdateOperation.FindAndReplaceWithProjection
. - Throws:
IllegalArgumentException
- if resultType is null.
-