Declarations.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class | DeclarationResolver.ResultVariableVisitor
This visitor traverses the |
| Modifier and Type | Field and Description |
|---|---|
| private Declaration | baseDeclaration
The first |
| private List | declarations
The |
| private DeclarationResolver | parent
The parent |
| private boolean | populated
Determines whether the |
| private JPQLQueryContext | queryContext
The |
| private Collection | resultVariables
The result variables used to identify select expressions. |
| Access | Constructor and Description |
|---|---|
| pack-priv | DeclarationResolver(JPQLQueryContext
The context used to query information about the application metadata and
cached information queryContext, DeclarationResolver The parent parent)DeclarationResolver which represents the superquery's declarationCreates a new |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | addRangeVariableDeclaration(String
The name of the entity to be accessible with the given variable name entityName, String The identification variable used to navigate to the entity variableName)Adds a "virtual" range variable declaration that will be used when parsing a JPQL fragment. |
| pack-priv void | convertUnqualifiedDeclaration(RangeDeclaration
The declaration, String Declaration that was parsed to range over an abstract schema
name but is actually ranging over a path expressionThe identification variable coming from the parent identification
variable declaration outerVariableName)Converts the given |
| pack-priv Declaration | Returns: TheDeclaration containing the information about the identification variable
declarationThe name of the identification variable that is used to navigate a "root"
object variableName)Retrieves the |
| pack-priv List | Returns: TheDeclarations of the current query that was parsedReturns the ordered list of |
| pack-priv Declaration | Returns: The firstDeclaration objectReturns the first |
| pack-priv Collection | Returns: The JOIN FETCH expressions used in the same declaration or an empty collection if none was definedThe name of the identification variable that should be used to define an entity variableName)Returns the parsed representation of a JOIN FETCH that were defined in the same declaration than the given range identification variable name. |
| pack-priv DeclarationResolver | Returns: The parent of thisDeclarationResolver if this is used for a subquery or
null if this is used for the top-level queryReturns the parent of this |
| pack-priv Collection | Returns: The variables identifying the select expressions, if any was defined or an empty set if none were definedReturns the variables that got defined in the select expression. |
| private void | initialize(JPQLQueryContext
The context used to query information about the query queryContext, DeclarationResolver The parent parent)DeclarationResolver, which is not null when this
resolver is created for a subqueryInitializes this |
| pack-priv boolean | Returns: true if the given identification variable maps a collection-valued field
defined in a JOIN or IN expression; false otherwiseThe identification variable to check for what it maps variableName)Determines whether the given identification variable is defining a JOIN expression or
in a |
| pack-priv boolean | Returns: true if the given identification variable maps a collection-valued field
defined in a JOIN or IN expression; false otherwiseThe identification variable to check for what it maps variableName)Determines whether the given identification variable is defining a JOIN expression or
in a |
| pack-priv boolean | Returns: true if the variable name is mapping an abstract schema name; false
if it's defined in a collection member declarationThe name of the variable to verify if it's defined in a range variable
declaration in the current query or any parent query variableName)Determines whether the given variable name is an identification variable name used to define an abstract schema name. |
| private boolean | |
| pack-priv boolean | Returns: true if the given variable is defined as a result variable;
false otherwiseThe variable to check if it used to identify a select expression variableName)Determines whether the given variable is a result variable or not. |
| pack-priv void | populate(Expression
The expression)Expression to visit in order to retrieve the information
contained in the given query's declarationVisits the given |
| private void |