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);
        }
      }
      // Validate the expression
      else if (!isValid(leftExpression, queryBNF) || isDateTimeConstant(leftExpression)) {
        int startPosition = position(expression);
View Full Code Here


        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

      else if (!isValid(inItems, expression.getExpressionItemQueryBNFId())) {
        addProblem(inItems, InExpression_ItemInvalidExpression);
      }
      // Validate the single item
      else {
        inItems.accept(this);
      }
    }

    // Missing ')'
    if (!singleInputParameter    &&
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

      if (helper.getType(path) == null) {
        pathExpression.accept(this);
      }
    }
    else {
      rootObject.accept(this);
    }
  }

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

      else {
        Expression declarationExpression = declaration.getDeclarationExpression();

        // A JOIN expression does not have a declaration and it should not be traversed here
        if (declarationExpression != null) {
          declarationExpression.accept(this);
        }
      }

      // Check the JOIN expressions in the identification variable declaration
      if (declaration.hasJoins()) {
View Full Code Here

      if (pathExpression != null) {
        valid = validateStateFieldPathExpression(pathExpression, PathType.BASIC_FIELD_ONLY);
      }
      else {
        factor.accept(this);
      }
    }

    return valid;
  }
View Full Code Here

      if (pathExpression != null) {
        boolean valid = validateStateFieldPathExpression(pathExpression, PathType.BASIC_FIELD_ONLY);
        updateStatus(result, 0, valid);
      }
      else {
        firstExpression.accept(this);
      }
    }

    // Validate the lower bound expression
    expression.getLowerBoundExpression().accept(this);
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.