Class AbstractContentAssistVisitor.SubqueryVisitor
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
-
- org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
-
- org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.SubqueryVisitor
-
- All Implemented Interfaces:
ExpressionVisitor
- Enclosing class:
- AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.SubqueryVisitor extends AbstractTraverseParentVisitor
This visitor determines if anExpression
is in a subquery.
-
-
Field Summary
Fields Modifier and Type Field Description protected SimpleSelectStatement
expression
The subqueryExpression
if it's the first clause visitor.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SubqueryVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Disposes of the internal data.boolean
isInSubquery()
Determines whether the visitedExpression
is in a subquery or in the top-level query.void
visit(SimpleSelectStatement expression)
Visits theSimpleSelectStatement
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
-
-
-
-
Field Detail
-
expression
protected SimpleSelectStatement expression
The subqueryExpression
if it's the first clause visitor. Otherwise it will benull
if theExpression
is in the top-level query.
-
-
Method Detail
-
dispose
public void dispose()
Disposes of the internal data.
-
isInSubquery
public boolean isInSubquery()
Determines whether the visitedExpression
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 theSimpleSelectStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
-