Package org.eclipse.persistence.jpa.jpql.parser

Examples of org.eclipse.persistence.jpa.jpql.parser.Expression.accept()


        int startPosition = position(expression);
        int endPosition   = startPosition + length(leftExpression);
        addProblem(expression, startPosition, endPosition, InExpression_InvalidExpression);
      }
      else {
        leftExpression.accept(this);
      }
    }

    // Check for "IN :input_parameter" defined in JPA 2.0
    boolean singleInputParameter = isNewerThanOrEqual(JPAVersion.VERSION_2_0) &&
View Full Code Here


        int endPosition   = startPosition + length(joinAssociationPath);
        addProblem(expression, startPosition, endPosition, Join_InvalidJoinAssociationPath);
      }
      // Validate join association path
      else {
        joinAssociationPath.accept(this);
      }
    }

    // Missing identification variable
    // A JOIN expression always needs an identification variable
View Full Code Here

        addProblem(expression, startPosition, endPosition, OnClause_InvalidConditionalExpression);
      }
      // Validate the conditional expression
      else {
        conditionalExpression.accept(this);
      }
    }
  }

  /**
 
View Full Code Here

        int endPosition   = startPosition + length(rootObject);

        addProblem(expression, startPosition, endPosition, RangeVariableDeclaration_InvalidRootObject);
      }
      else {
        rootObject.accept(this);
      }
    }

    // Missing identification variable
    if (!expression.hasIdentificationVariable() &&
View Full Code Here

    // Now traverse the other side to find its return type
    if (leftExpression.isAncestor(inputParameter)) {
      if (currentExpression == null) {
        currentExpression = expression;
        rightExpression.accept(this);
        currentExpression = null;
      }
      else {
        type = null;
        ignoreType = true;
View Full Code Here

      Expression rootObject = expression.getRootObject();

      // Traverse the "root" object
      buildingDeclaration = true;
      rootObject.accept(this);
      buildingDeclaration = false;

      // Identification variable
      Expression identificationVariable = expression.getIdentificationVariable();
      String variableName = visitDeclaration(rootObject, identificationVariable);
View Full Code Here

    if (collectionExpression != null) {
      type = Object[].class;
    }
    else {
      selectExpression.accept(this);
    }
  }

  /**
   * {@inheritDoc}
 
View Full Code Here

    if (collectionExpression != null) {
      resolver = buildClassResolver(Object[].class);
    }
    else {
      selectExpression.accept(this);
    }
  }

  /**
   * {@inheritDoc}
 
View Full Code Here

          int endPosition   = startPosition + length(conditionalExpression);
          addProblem(expression, startPosition, endPosition, invalidConditionalExpressionMessageKey);
        }

        // Visit the conditional expression
        conditionalExpression.accept(this);
      }
    }
  }

  /**
 
View Full Code Here

        AbstractFromClause_IdentificationVariableDeclarationEndsWithComma,
        AbstractFromClause_IdentificationVariableDeclarationIsMissingComma
      );

      // Validate the declaration
      declaration.accept(this);
    }
  }

  /**
   * Validates the select expression of the given <code>SELECT</code> clause. The select expression
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.