Package org.eclipse.persistence.jpa.jpql
Class BaseDeclarationIdentificationVariableFinder
java.lang.Object
org.eclipse.persistence.jpa.jpql.parser.AnonymousExpressionVisitor
org.eclipse.persistence.jpa.jpql.parser.AbstractTraverseParentVisitor
org.eclipse.persistence.jpa.jpql.BaseDeclarationIdentificationVariableFinder
- All Implemented Interfaces:
ExpressionVisitor
This visitor traverses the parsed tree and retrieves the
IdentificationVariable
defined in the base range variable declaration for the top-level statement if and only if the
query is a DELETE
or UPDATE
query.- Since:
- 2.5
- Version:
- 2.5
-
Field Summary
Modifier and TypeFieldDescriptionTheIdentificationVariable
used to define the abstract schema name from either the UPDATE or DELETE clause.protected boolean
Determines if theRangeVariableDeclaration
should traverse its identification variable expression or simply visit the parent hierarchy. -
Constructor Summary
ConstructorDescriptionCreates a newBaseDeclarationIdentificationVariableFinder
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
visit
(BadExpression expression) Visits theBadExpression
expression.void
visit
(CollectionExpression expression) Visits theCollectionExpression
expression.void
visit
(DeleteClause expression) Visits theDeleteClause
expression.void
visit
(DeleteStatement expression) Visits theDeleteStatement
expression.void
visit
(FromClause expression) Visits theFromClause
expression.void
visit
(IdentificationVariable expression) Visits theIdentificationVariable
expression.void
visit
(IdentificationVariableDeclaration expression) Visits theIdentificationVariableDeclaration
expression.void
visit
(JPQLExpression expression) Visits theJPQLExpression
expression.void
visit
(NullExpression expression) Visits theNullExpression
expression.void
visit
(RangeVariableDeclaration expression) Visits theRangeVariableDeclaration
expression.void
visit
(SelectStatement expression) Visits theSelectStatement
expression.void
visit
(UnknownExpression expression) Visits theUnknownExpression
expression.void
visit
(UpdateClause expression) Visits theUpdateClause
expression.void
visit
(UpdateStatement expression) Visits theUpdateStatement
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
-
Field Details
-
expression
TheIdentificationVariable
used to define the abstract schema name from either the UPDATE or DELETE clause. -
traverse
protected boolean traverseDetermines if theRangeVariableDeclaration
should traverse its identification variable expression or simply visit the parent hierarchy.
-
-
Constructor Details
-
BaseDeclarationIdentificationVariableFinder
public BaseDeclarationIdentificationVariableFinder()Creates a newBaseDeclarationIdentificationVariableFinder
.
-
-
Method Details
-
visit
Description copied from interface:ExpressionVisitor
Visits theBadExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theCollectionExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theDeleteClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theDeleteStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theFromClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theIdentificationVariable
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theIdentificationVariableDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theJPQLExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAbstractTraverseParentVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theNullExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theRangeVariableDeclaration
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theSelectStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theUnknownExpression
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheUnknownExpression
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theUpdateClause
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheUpdateClause
to visit
-
visit
Description copied from interface:ExpressionVisitor
Visits theUpdateStatement
expression.- Specified by:
visit
in interfaceExpressionVisitor
- Overrides:
visit
in classAnonymousExpressionVisitor
- Parameters:
expression
- TheUpdateStatement
to visit
-