EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql
Class AbstractContentAssistVisitor.SubqueryVisitor

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.AbstractContentAssistVisitor.SubqueryVisitor
All Implemented Interfaces:
ExpressionVisitor
Enclosing class:
AbstractContentAssistVisitor

protected class AbstractContentAssistVisitor.SubqueryVisitor
extends AbstractTraverseParentVisitor

This visitor determines if an Expression is in a subquery.


Field Summary
protected  SimpleSelectStatement expression
          The subquery Expression if it's the first clause visitor.
 
Constructor Summary
protected AbstractContentAssistVisitor.SubqueryVisitor()
           
 
Method Summary
 void dispose()
          Disposes of the internal data.
 boolean isInSubquery()
          Determines whether the visited Expression is in a subquery or in the top-level query.
 void visit(SimpleSelectStatement expression)
          Visits the SimpleSelectStatement expression.
 
Methods inherited from class org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
visit, 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 SimpleSelectStatement expression
The subquery Expression if it's the first clause visitor. Otherwise it will be null if the Expression is in the top-level query.

Constructor Detail

AbstractContentAssistVisitor.SubqueryVisitor

protected AbstractContentAssistVisitor.SubqueryVisitor()
Method Detail

dispose

public void dispose()
Disposes of the internal data.


isInSubquery

public boolean isInSubquery()
Determines whether the visited Expression is in a subquery or in the top-level query.

Returns:
true if the owning query is a subquery; false if it's the top-level query

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