EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Class JPQLQueryContext.QueryExpressionVisitor

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
      extended by org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
          extended by org.eclipse.persistence.jpa.jpql.JPQLQueryContext.QueryExpressionVisitor
All Implemented Interfaces:
ExpressionVisitor
Enclosing class:
JPQLQueryContext

protected static class JPQLQueryContext.QueryExpressionVisitor
extends AbstractTraverseParentVisitor

This visitor is responsible to retrieve the Expression that is the beginning of a query. For a subquery, it will retrieve SimpleSelectStatement and for a top-level query, it will retrieve JPQLExpression. The search goes through the parent hierarchy.


Field Summary
protected  Expression expression
          The Expression that is the beginning of a query.
 
Constructor Summary
protected JPQLQueryContext.QueryExpressionVisitor()
           
 
Method Summary
 void visit(JPQLExpression expression)
          Visits the JPQLExpression expression.
 void visit(SimpleSelectStatement expression)
          Visits the SimpleSelectStatement expression.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
visit
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expression

protected Expression expression
The Expression that is the beginning of a query.

Constructor Detail

JPQLQueryContext.QueryExpressionVisitor

protected JPQLQueryContext.QueryExpressionVisitor()
Method Detail

visit

public void visit(JPQLExpression expression)
Visits the JPQLExpression expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AbstractTraverseParentVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(SimpleSelectStatement expression)
Visits the SimpleSelectStatement expression.

Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference