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

Examples of org.eclipse.persistence.jpa.internal.jpql.parser.Expression


    // If the GROUP BY clause is not defined but the HAVING clause is, the result is treated as a
    // single group, and the select list can only consist of aggregate functions. (page 159)
    if (!expression.hasGroupByClause() &&
         expression.hasHavingClause()) {

      Expression selectExpression = expression.getSelectClause().getSelectExpression();

      if (!isValidWithChildCollectionBypass(selectExpression, AggregateExpressionBNF.ID)) {
        addProblem(selectExpression, SelectStatement_SelectClauseHasNonAggregateFunctions);
      }
    }
View Full Code Here


    @Override
    public void visit(CollectionMemberDeclaration expression) {

      Declaration declaration = new Declaration();

      Expression identificationVariable = expression.getIdentificationVariable();
      String variableName = visitDeclaration(expression, identificationVariable);

      if (variableName.length() > 0) {
        declaration.identificationVariable = (IdentificationVariable) identificationVariable;
      }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    public void visit(Join expression) {
      Expression identificationVariable = expression.getIdentificationVariable();
      String variableName = visitDeclaration(expression, identificationVariable);
      if (variableName.length() > 0) {
        currentDeclaration.addJoin(expression, (IdentificationVariable) identificationVariable);
      }
      else {
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public void visit(RangeVariableDeclaration expression) {

      Expression abstractSchemaName     = expression.getAbstractSchemaName();
      Expression identificationVariable = expression.getIdentificationVariable();

      // Identification variable
      String variableName = visitDeclaration(abstractSchemaName, identificationVariable);

      if (variableName.length() > 0) {
View Full Code Here

TOP

Related Classes of org.eclipse.persistence.jpa.internal.jpql.parser.Expression

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.