Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.internal.jpql.parser
Class FullyQualifyPathExpressionVisitor

java.lang.Object
  extended by org.eclipse.persistence.jpa.internal.jpql.parser.AnonymousExpressionVisitor
      extended by org.eclipse.persistence.jpa.internal.jpql.parser.AbstractTraverseChildrenVisitor
          extended by org.eclipse.persistence.jpa.internal.jpql.parser.FullyQualifyPathExpressionVisitor

All Implemented Interfaces:
ExpressionVisitor

final class FullyQualifyPathExpressionVisitor
extends AbstractTraverseChildrenVisitor

This visitor makes sure that all path expressions are fully qualified with the identification variable in the range variable declaration. This only applies to an UPDATE or DELETE query.

Since:
2.3
Version:
2.3
Author:
Pascal Filion

Nested Class Summary
private  class FullyQualifyPathExpressionVisitor.GeneralIdentificationVariableVisitor
           

 

Field Summary
private static FullyQualifyPathExpressionVisitor INSTANCE
          The singleton instance of this visitor.
private  java.lang.String variableName
          The identification variable defined in the range variable declaration or the abstract schema name in lower case.
private  FullyQualifyPathExpressionVisitor.GeneralIdentificationVariableVisitor visitor
          Caches this visitor, which is used to determine if the general identification variable is not a map key, map value or map entry expression.

 

Constructor Summary
FullyQualifyPathExpressionVisitor()
           

 

Method Summary
private  FullyQualifyPathExpressionVisitor.GeneralIdentificationVariableVisitor generalIdentificationVariableVisitor()
           
(package private) static ExpressionVisitor instance()
          Returns the singleton instance of this visitor.
private  void qualifyPathExpression(AbstractPathExpression expression)
           
 void visit(CollectionValuedPathExpression expression)
          Visits the CollectionValuedPathExpression expression.
 void visit(IdentificationVariable expression)
          Visits the IdentificationVariable expression.
 void visit(RangeVariableDeclaration expression)
          Visits the RangeVariableDeclaration expression.
 void visit(SelectStatement expression)
          Visits the SelectStatement expression.
 void visit(SimpleSelectStatement expression)
          Visits the SimpleSelectStatement expression.
 void visit(StateFieldPathExpression expression)
          Visits the StateFieldPathExpression expression.
private  void visitAbstractPathExpression(AbstractPathExpression expression)
           

 

Methods inherited from class org.eclipse.persistence.jpa.internal.jpql.parser.AbstractTraverseChildrenVisitor
visit

 

Methods inherited from class org.eclipse.persistence.jpa.internal.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

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

variableName

private java.lang.String variableName
The identification variable defined in the range variable declaration or the abstract schema name in lower case.

visitor

private FullyQualifyPathExpressionVisitor.GeneralIdentificationVariableVisitor visitor
Caches this visitor, which is used to determine if the general identification variable is not a map key, map value or map entry expression.

INSTANCE

private static final FullyQualifyPathExpressionVisitor INSTANCE
The singleton instance of this visitor.

Constructor Detail

FullyQualifyPathExpressionVisitor

FullyQualifyPathExpressionVisitor()

Method Detail

instance

static ExpressionVisitor instance()
Returns the singleton instance of this visitor.
Returns:
The singleton instance of this visitor

generalIdentificationVariableVisitor

private FullyQualifyPathExpressionVisitor.GeneralIdentificationVariableVisitor generalIdentificationVariableVisitor()

qualifyPathExpression

private void qualifyPathExpression(AbstractPathExpression expression)

visit

public void visit(CollectionValuedPathExpression expression)
Visits the CollectionValuedPathExpression expression.
Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(IdentificationVariable expression)
Visits the IdentificationVariable expression.
Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(RangeVariableDeclaration expression)
Visits the RangeVariableDeclaration expression.
Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visit

public void visit(SelectStatement expression)
Visits the SelectStatement expression.
Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
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

visit

public void visit(StateFieldPathExpression expression)
Visits the StateFieldPathExpression expression.
Specified by:
visit in interface ExpressionVisitor
Overrides:
visit in class AnonymousExpressionVisitor
Parameters:
expression - The Expression to visit

visitAbstractPathExpression

private void visitAbstractPathExpression(AbstractPathExpression expression)

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.