Module spring.data.mongodb
Interface SetOperation.FieldAppender.ValueAppender
- Enclosing class:
- SetOperation.FieldAppender
public static interface SetOperation.FieldAppender.ValueAppender
- Since:
- 3.0
- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionDefine the value to assign as is.Define the value to assign.withValueOfExpression(String operation, Object... values) Adds a generic projection for the current field.
-
Method Details
-
toValue
Define the value to assign as is.- Parameters:
value- can be null.- Returns:
- new instance of
SetOperation.
-
toValueOf
Define the value to assign. PlainStringvalues are treated asfield references.- Parameters:
value- must not be null.- Returns:
- new instance of
SetOperation.
-
withValueOfExpression
Adds a generic projection for the current field.- Parameters:
operation- the operation key, e.g.$add.values- the values to be set for the projection operation.- Returns:
- new instance of
SetOperation.
-