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

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


    if (collectionExpression != null) {
      type = Object[].class;
    }
    else {
      selectExpression.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.isRange() && 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

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

    // Validate the collection-valued path expression
    boolean valid = validateCollectionValuedPathExpression(expression.getCollectionValuedPathExpression(), true);
View Full Code Here

      validator.validatingLeftExpression = true;
      leftExpression.accept(validator);

      // Visit the right expression and gather its information
      validator.validatingLeftExpression = false;
      rightExpression.accept(validator);

      // '<', '<=', '>=', '>'
      if (isOrderComparison(expression)) {

        // The left expression cannot be an identification variable
View Full Code Here

    Expression declarationExpression = declaration.getDeclarationExpression();
    Expression baseExpression = declaration.getBaseExpression();

    try {
      baseExpression.accept(visitor);

      if (!visitor.valid) {

        int startPosition = position(declarationExpression);
        int endPosition = startPosition + length(declarationExpression);
View Full Code Here

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

    return valid;
  }
View Full Code Here

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

    // Right expression
    if (expression.hasRightExpression()) {
View Full Code Here

      if (pathExpression != null) {
        boolean valid = validateStateFieldPathExpression(pathExpression, pathType);
        updateStatus(result, 1, valid);
      }
      else {
        rightExpression.accept(this);
      }
    }

    return result;
  }
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.