Class ConditionalOperators.ConditionalOperatorFactory
java.lang.Object
org.springframework.data.mongodb.core.aggregation.ConditionalOperators.ConditionalOperatorFactory
- Enclosing class:
- ConditionalOperators
-
Constructor Summary
ConstructorDescriptionConditionalOperatorFactory
(String fieldReference) Creates newConditionalOperators.ConditionalOperatorFactory
for given fieldReference.ConditionalOperatorFactory
(AggregationExpression expression) Creates newConditionalOperators.ConditionalOperatorFactory
for givenAggregationExpression
.ConditionalOperatorFactory
(CriteriaDefinition criteriaDefinition) Creates newConditionalOperators.ConditionalOperatorFactory
for givenCriteriaDefinition
. -
Method Summary
Modifier and TypeMethodDescriptionCreates newAggregationExpression
that evaluates a boolean expression to return one of the two specified return expressions.thenValueOf
(String fieldReference) Creates newAggregationExpression
that evaluates a boolean expression to return one of the two specified return expressions.thenValueOf
(AggregationExpression expression) Creates newAggregationExpression
that evaluates a boolean expression to return one of the two specified return expressions.
-
Constructor Details
-
ConditionalOperatorFactory
Creates newConditionalOperators.ConditionalOperatorFactory
for given fieldReference.- Parameters:
fieldReference
- must not be null.
-
ConditionalOperatorFactory
Creates newConditionalOperators.ConditionalOperatorFactory
for givenAggregationExpression
.- Parameters:
expression
- must not be null.
-
ConditionalOperatorFactory
Creates newConditionalOperators.ConditionalOperatorFactory
for givenCriteriaDefinition
.- Parameters:
criteriaDefinition
- must not be null.
-
-
Method Details
-
then
Creates newAggregationExpression
that evaluates a boolean expression to return one of the two specified return expressions.- Parameters:
value
- must not be null.- Returns:
- new instance of
ConditionalOperators.Cond.OtherwiseBuilder
to createConditionalOperators.Cond
.
-
thenValueOf
Creates newAggregationExpression
that evaluates a boolean expression to return one of the two specified return expressions.- Parameters:
expression
- must not be null.- Returns:
- new instance of
ConditionalOperators.Cond.OtherwiseBuilder
to createConditionalOperators.Cond
.
-
thenValueOf
Creates newAggregationExpression
that evaluates a boolean expression to return one of the two specified return expressions.- Parameters:
fieldReference
- must not be null.- Returns:
- new instance of
ConditionalOperators.Cond.OtherwiseBuilder
to createConditionalOperators.Cond
.
-