Module spring.data.mongodb
Class ConditionalOperators.ConditionalOperatorFactory
java.lang.Object
org.springframework.data.mongodb.core.aggregation.ConditionalOperators.ConditionalOperatorFactory
- Enclosing class:
- ConditionalOperators
-
Constructor Summary
ConstructorsConstructorDescriptionConditionalOperatorFactory(String fieldReference) Creates newConditionalOperators.ConditionalOperatorFactoryfor given fieldReference.ConditionalOperatorFactory(AggregationExpression expression) Creates newConditionalOperators.ConditionalOperatorFactoryfor givenAggregationExpression.ConditionalOperatorFactory(CriteriaDefinition criteriaDefinition) Creates newConditionalOperators.ConditionalOperatorFactoryfor givenCriteriaDefinition. -
Method Summary
Modifier and TypeMethodDescriptionCreates newAggregationExpressionthat evaluates a boolean expression to return one of the two specified return expressions.thenValueOf(String fieldReference) Creates newAggregationExpressionthat evaluates a boolean expression to return one of the two specified return expressions.thenValueOf(AggregationExpression expression) Creates newAggregationExpressionthat evaluates a boolean expression to return one of the two specified return expressions.
-
Constructor Details
-
ConditionalOperatorFactory
Creates newConditionalOperators.ConditionalOperatorFactoryfor given fieldReference.- Parameters:
fieldReference- must not be null.
-
ConditionalOperatorFactory
Creates newConditionalOperators.ConditionalOperatorFactoryfor givenAggregationExpression.- Parameters:
expression- must not be null.
-
ConditionalOperatorFactory
Creates newConditionalOperators.ConditionalOperatorFactoryfor givenCriteriaDefinition.- Parameters:
criteriaDefinition- must not be null.
-
-
Method Details
-
then
Creates newAggregationExpressionthat 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.OtherwiseBuilderto createConditionalOperators.Cond.
-
thenValueOf
Creates newAggregationExpressionthat 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.OtherwiseBuilderto createConditionalOperators.Cond.
-
thenValueOf
Creates newAggregationExpressionthat 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.OtherwiseBuilderto createConditionalOperators.Cond.
-