Class BooleanOperators.BooleanOperatorFactory
java.lang.Object
org.springframework.data.mongodb.core.aggregation.BooleanOperators.BooleanOperatorFactory
- Enclosing class:
BooleanOperators
- Since:
- 1.10
- Author:
- Christoph Strobl
-
Constructor Summary
ConstructorsConstructorDescriptionBooleanOperatorFactory(String fieldReference) Creates newBooleanOperators.BooleanOperatorFactoryfor given fieldReference.BooleanOperatorFactory(AggregationExpression expression) Creates newBooleanOperators.BooleanOperatorFactoryfor givenAggregationExpression. -
Method Summary
Modifier and TypeMethodDescriptionCreates newAggregationExpressionthat evaluates one or more expressions and returns true if all of the expressions are true.and(AggregationExpression expression) Creates newAggregationExpressionthat evaluates one or more expressions and returns true if all of the expressions are true.not()Creates newAggregationExpressionthat evaluates a boolean and returns the opposite boolean value.Creates newAggregationExpressionthat evaluates one or more expressions and returns true if any of the expressions are true.or(AggregationExpression expression) Creates newAggregationExpressionthat evaluates one or more expressions and returns true if any of the expressions are true.
-
Constructor Details
-
BooleanOperatorFactory
Creates newBooleanOperators.BooleanOperatorFactoryfor given fieldReference.- Parameters:
fieldReference- must not be null.
-
BooleanOperatorFactory
Creates newBooleanOperators.BooleanOperatorFactoryfor givenAggregationExpression.- Parameters:
expression- must not be null.
-
-
Method Details
-
and
Creates newAggregationExpressionthat evaluates one or more expressions and returns true if all of the expressions are true.- Parameters:
expression- must not be null.- Returns:
- new instance of
BooleanOperators.And.
-
and
Creates newAggregationExpressionthat evaluates one or more expressions and returns true if all of the expressions are true.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
BooleanOperators.And.
-
or
Creates newAggregationExpressionthat evaluates one or more expressions and returns true if any of the expressions are true.- Parameters:
expression- must not be null.- Returns:
- new instance of
BooleanOperators.Or.
-
or
Creates newAggregationExpressionthat evaluates one or more expressions and returns true if any of the expressions are true.- Parameters:
fieldReference- must not be null.- Returns:
- new instance of
BooleanOperators.Or.
-
not
Creates newAggregationExpressionthat evaluates a boolean and returns the opposite boolean value.- Returns:
- new instance of
BooleanOperators.Not.
-