Package org.exoplatform.services.jcr.impl.core.query

Examples of org.exoplatform.services.jcr.impl.core.query.DefaultQueryNodeVisitor


         return data;
      }

      // get property transformation
      final int[] transform = new int[]{TransformConstants.TRANSFORM_NONE};
      node.acceptOperands(new DefaultQueryNodeVisitor()
      {
         @Override
         public Object visit(PropertyFunctionQueryNode node, Object data)
         {
            if (node.getFunctionName().equals(PropertyFunctionQueryNode.LOWER_CASE))
View Full Code Here


        // traverse
        node.childrenAccept(this, rqn);

        // check if string transformation is valid
        try {
            rqn.acceptOperands(new DefaultQueryNodeVisitor() {
                public Object visit(PropertyFunctionQueryNode node, Object data) {
                    String functionName = node.getFunctionName();
                    if ((functionName.equals(PropertyFunctionQueryNode.LOWER_CASE)
                            || functionName.equals(PropertyFunctionQueryNode.UPPER_CASE))
                                && rqn.getValueType() != QueryConstants.TYPE_STRING) {
View Full Code Here

      if (node.getIncludeDescendants())
      {
         sb.append('/');
      }
      final InternalQName[] nodeType = new InternalQName[1];
      node.acceptOperands(new DefaultQueryNodeVisitor()
      {
         public Object visit(NodeTypeQueryNode node, Object data)
         {
            nodeType[0] = node.getValue();
            return data;
View Full Code Here

      // traverse
      node.childrenAccept(this, rqn);

      // check if string transformation is valid
      rqn.acceptOperands(new DefaultQueryNodeVisitor()
      {
         public Object visit(PropertyFunctionQueryNode node, Object data)
         {
            String functionName = node.getFunctionName();
            if ((functionName.equals(PropertyFunctionQueryNode.LOWER_CASE) || functionName
View Full Code Here

      }

      // get property transformation
      final int[] transform = new int[]
      {TransformConstants.TRANSFORM_NONE};
      node.acceptOperands(new DefaultQueryNodeVisitor()
      {
         public Object visit(PropertyFunctionQueryNode node, Object data)
         {
            if (node.getFunctionName().equals(PropertyFunctionQueryNode.LOWER_CASE))
            {
View Full Code Here

      if (selectProps.size() == 0)
      {
         // use node type constraint
         LocationStepQueryNode[] steps = root.getLocationNode().getPathSteps();
         final InternalQName[] ntName = new InternalQName[1];
         steps[steps.length - 1].acceptOperands(new DefaultQueryNodeVisitor()
         {

            public Object visit(AndQueryNode node, Object data)
            {
               return node.acceptOperands(this, data);
View Full Code Here

      return data;
  }

  // get property transformation
  final int[] transform = new int[] { TransformConstants.TRANSFORM_NONE };
  node.acceptOperands(new DefaultQueryNodeVisitor() {
      public Object visit(PropertyFunctionQueryNode node, Object data) {
    if (node.getFunctionName().equals(
      PropertyFunctionQueryNode.LOWER_CASE)) {
        transform[0] = TransformConstants.TRANSFORM_LOWER_CASE;
    } else if (node.getFunctionName().equals(
View Full Code Here

        StringBuilder sb = (StringBuilder) data;
        if (node.getIncludeDescendants()) {
            sb.append('/');
        }
        final InternalQName[] nodeType = new InternalQName[1];
        node.acceptOperands(new DefaultQueryNodeVisitor() {
            public Object visit(NodeTypeQueryNode node, Object data) {
                nodeType[0] = node.getValue();
                return data;
            }
        }, null);
View Full Code Here

        // traverse
        node.childrenAccept(this, rqn);

        // check if string transformation is valid
        try {
            rqn.acceptOperands(new DefaultQueryNodeVisitor() {
                public Object visit(PropertyFunctionQueryNode node, Object data) {
                    String functionName = node.getFunctionName();
                    if ((functionName.equals(PropertyFunctionQueryNode.LOWER_CASE)
                            || functionName.equals(PropertyFunctionQueryNode.UPPER_CASE))
                                && rqn.getValueType() != QueryConstants.TYPE_STRING) {
View Full Code Here

         return data;
      }

      // get property transformation
      final int[] transform = new int[]{TransformConstants.TRANSFORM_NONE};
      node.acceptOperands(new DefaultQueryNodeVisitor()
      {
         public Object visit(PropertyFunctionQueryNode node, Object data)
         {
            if (node.getFunctionName().equals(PropertyFunctionQueryNode.LOWER_CASE))
            {
View Full Code Here

TOP

Related Classes of org.exoplatform.services.jcr.impl.core.query.DefaultQueryNodeVisitor

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.