JPA:
range_variable_declaration ::= abstract_schema_name [AS] identification_variableEclipseLink 2.4:
range_variable_declaration ::= { root_object } [AS] identification_variableroot_object ::= abstract_schema_name | (subquery)| Modifier and Type | Field and Description |
|---|---|
| private String | asIdentifier
The actual AS identifier found in the string representation of the JPQL query. |
| private boolean | hasSpaceAfterAs
Determines whether a whitespace was parsed after AS. |
| private boolean | hasSpaceAfterRootObject
Determines whether a whitespace was parsed after the "root" object. |
| private AbstractExpression | identificationVariable
The |
| private AbstractExpression | rootObject
The |
| private boolean | virtualIdentificationVariable
Determines whether the identification variable is virtual, meaning it's not part of the query but is required for proper navigability. |
| Access | Constructor and Description |
|---|---|
| public | RangeVariableDeclaration(AbstractExpression
The parent of this expression parent)Creates a new |
| public | RangeVariableDeclaration(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)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ExpressionVisitor
The visitor)ExpressionVisitor to visit this objectImplements org. Expression by the given visitor.
|
| public void | acceptChildren(ExpressionVisitor
The visitor)visitor to visit the children of this object.Implements org. Expression.
|
| protected void | addChildrenTo(Collection<Expression>
The collection used to store the children children)Overrides org. AbstractExpression to the given collection.
|
| protected void | addOrderedChildrenTo(List<Expression>
The list used to store the string representation of this children)AbstractExpressionOverrides org. AbstractExpression to the given list.
|
| public JPQLQueryBNF | findQueryBNF(Expression
The expression)Expression that is a descendant of this oneOverrides org. Implements org. JPQLQueryBNF that represents the fragment of this Expression
that was used when parsing the given Expression.
|
| public String | Returns: The AS identifier that was actually parsed, or an empty string if it was not parsedReturns the actual AS found in the string representation of the JPQL query, which has the actual case that was used. |
| public Expression | Returns: The expression that was parsed representing the identification variableReturns the |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| public Expression | Returns: The expression that was parsed representing the "root" objectReturns the |
| public boolean | Returns: true if the identifier AS was parsed; false otherwiseDetermines whether the identifier AS was parsed. |
| public boolean | Returns: true if the identification variable was parsed; false otherwiseDetermines whether the identification variable was parsed. |
| public boolean | Returns: true if the "root" object was parsed; false otherwiseDetermines whether the "root" object was parsed. |
| public boolean | Returns: true if there was a whitespace after AS; false otherwiseDetermines whether a whitespace was parsed after AS. |
| public boolean | Returns: true if there was a whitespace after "root" object;
false otherwiseDetermines whether a whitespace was parsed after the "root" object. |
| public boolean | Returns: true if this identification variable was virtually created to fully
qualify path expression; false if it was parsedDetermines whether this identification variable is virtual, meaning it's not part of the query but is required for proper navigability. |
| protected boolean | isParsingComplete(WordParser
The text to parse based on the current position of the cursor wordParser, String The word that was retrieved from the given text, which is the first word in the text word, Expression The expression)Expression that has already been parsedOverrides org. |
| protected void | parse(WordParser
The text to parse based on the current position of the cursor wordParser, boolean Determines whether the parsing system should be tolerant, meaning if it should
try to parse invalid or incomplete queries tolerant)Implements abstract org. WordParser.
|
| public void | setVirtualIdentificationVariable(String
A virtual identification variable that will identify the "root" object variableName)Sets a virtual identification variable because the "root" object was parsed without one. |
| public void | setVirtualIdentificationVariable(String
The identification variable that was generated to qualify the "root" object variableName, String The path that was parsed as a "root" object path)Sets a virtual identification variable to qualify the "root" object. |
| protected boolean | shouldParseWithFactoryFirst()
Overrides org. factories first or it should automatically fallback to the fallback factory.
|
| protected void | toParsedText(StringBuilder
The buffer used to append this writer, boolean Expression's string representationDetermines whether the string representation should represent what was parsed,
i.e. include any "virtual" whitespace (such as ending whitespace) and the actual case of the
JPQL identifiers actual)Implements abstract org. Expression, including its children,
if it has any.
|
| asIdentifier | back to summary |
|---|---|
| private String asIdentifier The actual AS identifier found in the string representation of the JPQL query. | |
| hasSpaceAfterAs | back to summary |
|---|---|
| private boolean hasSpaceAfterAs Determines whether a whitespace was parsed after AS. | |
| hasSpaceAfterRootObject | back to summary |
|---|---|
| private boolean hasSpaceAfterRootObject Determines whether a whitespace was parsed after the "root" object. | |
| identificationVariable | back to summary |
|---|---|
| private AbstractExpression identificationVariable The | |
| rootObject | back to summary |
|---|---|
| private AbstractExpression rootObject The | |
| virtualIdentificationVariable | back to summary |
|---|---|
| private boolean virtualIdentificationVariable Determines whether the identification variable is virtual, meaning it's not part of the query but is required for proper navigability. | |
| RangeVariableDeclaration | back to summary |
|---|---|
| public RangeVariableDeclaration(AbstractExpression parent) Creates a new
| |
| RangeVariableDeclaration | back to summary |
|---|---|
| public RangeVariableDeclaration(String entityName, String variableName) Creates a new | |
| accept | back to summary |
|---|---|
| public void accept(ExpressionVisitor visitor) Implements org. Doc from org. Visits this
| |
| acceptChildren | back to summary |
|---|---|
| public void acceptChildren(ExpressionVisitor visitor) Implements org. Doc from org. Visits the children of this
This does not traverse the
| |
| addChildrenTo | back to summary |
|---|---|
| protected void addChildrenTo(Collection<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| addOrderedChildrenTo | back to summary |
|---|---|
| protected void addOrderedChildrenTo(List<Expression> children) Overrides org. Doc from org. Adds the children of this
| |
| findQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF findQueryBNF(Expression expression) Overrides org. Implements org. Doc from org. Retrieves the
| |
| getActualAsIdentifier | back to summary |
|---|---|
| public String getActualAsIdentifier() Returns the actual AS found in the string representation of the JPQL query, which has the actual case that was used.
| |
| getIdentificationVariable | back to summary |
|---|---|
| public Expression getIdentificationVariable() Returns the
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| getRootObject | back to summary |
|---|---|
| public Expression getRootObject() Returns the
| |
| hasAs | back to summary |
|---|---|
| public boolean hasAs() Determines whether the identifier AS was parsed.
| |
| hasIdentificationVariable | back to summary |
|---|---|
| public boolean hasIdentificationVariable() Determines whether the identification variable was parsed.
| |
| hasRootObject | back to summary |
|---|---|
| public boolean hasRootObject() Determines whether the "root" object was parsed.
| |
| hasSpaceAfterAs | back to summary |
|---|---|
| public boolean hasSpaceAfterAs() Determines whether a whitespace was parsed after AS.
| |
| hasSpaceAfterRootObject | back to summary |
|---|---|
| public boolean hasSpaceAfterRootObject() Determines whether a whitespace was parsed after the "root" object.
| |
| hasVirtualIdentificationVariable | back to summary |
|---|---|
| public boolean hasVirtualIdentificationVariable() Determines whether this identification variable is virtual, meaning it's not part of the query but is required for proper navigability.
| |
| isParsingComplete | back to summary |
|---|---|
| protected boolean isParsingComplete(WordParser wordParser, String word, Expression expression) Overrides org. Doc from org. Determines whether the parsing is complete based on what is left in the given text. The text is never empty.
| |
| parse | back to summary |
|---|---|
| protected void parse(WordParser wordParser, boolean tolerant) Implements abstract org. Doc from org. Parses the query by starting at the current position, which is part of the given
| |
| setVirtualIdentificationVariable | back to summary |
|---|---|
| public void setVirtualIdentificationVariable(String variableName) Sets a virtual identification variable because the "root" object was parsed without one. This is valid in an UPDATE and DELETE queries. Example:
is equivalent to
| |
| setVirtualIdentificationVariable | back to summary |
|---|---|
| public void setVirtualIdentificationVariable(String variableName, String path) Sets a virtual identification variable to qualify the "root" object. The "root" object is a derived path that does not start with an identification variable. Example:
'managedEmployees' is a derived path and will become qualified with the given virtual identification variable. | |
| shouldParseWithFactoryFirst | back to summary |
|---|---|
| protected boolean shouldParseWithFactoryFirst() Overrides org. Doc from org. Determines whether the parsing of the query should be performed using the
| |
| toParsedText | back to summary |
|---|---|
| protected void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |