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

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


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

      MethodReferenceNode node = context.getCurrentNode();
      List<Object> args = new ArrayList<Object>();

      for (ExpressionNode childNode : node) {
        args.add(transform(childNode, context));
      }

      return context.addToPreviousOrReturn(new BasicDBObject(node.getMethodName(), dbList(args.toArray())));
    }
View Full Code Here

TOP

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

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.