Package org.springframework.data.mongodb.core.spel

Examples of org.springframework.data.mongodb.core.spel.OperatorNode


     * @see org.springframework.data.mongodb.core.aggregation.SpelExpressionTransformer.SpelNodeWrapper#convertSpelNodeToMongoObjectExpression(org.springframework.data.mongodb.core.aggregation.SpelExpressionTransformer.ExpressionConversionContext)
     */
    @Override
    protected Object convert(AggregationExpressionTransformationContext<OperatorNode> context) {

      OperatorNode currentNode = context.getCurrentNode();

      DBObject operationObject = createOperationObjectAndAddToPreviousArgumentsIfNecessary(context, currentNode);
      Object leftResult = transform(currentNode.getLeft(), currentNode, operationObject, context);

      if (currentNode.isUnaryMinus()) {
        return convertUnaryMinusOp(context, leftResult);
      }

      // we deliberately ignore the RHS result
      transform(currentNode.getRight(), currentNode, operationObject, context);

      return operationObject;
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.core.spel.OperatorNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.