identification_variable_declaration ::= range_variable_declaration { join | fetch_join }*| Modifier and Type | Field and Description |
|---|---|
| private boolean | hasSpace
Determines whether there is a space after the range variable declaration. |
| private AbstractExpression | joins
The unique join (fetch join) or list of join (fetch join) expression or a |
| private boolean | parsingJoinExpression
Flag used to determine how to check if the parsing is complete. |
| private AbstractExpression | rangeVariableDeclaration
The variable declaration, which is the abstract schema name and the variable. |
| Access | Constructor and Description |
|---|---|
| public | IdentificationVariableDeclaration(AbstractExpression
The parent of this expression parent)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 CollectionExpression | Returns: The single join expression represented by a temporary collectionCreates a new |
| 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 Expression | Returns: TheJOIN expression(s) or a null expression if none was declaredReturns the unique join (fetch join) or the list of joins (fetch joins) expression. |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| public Expression | Returns: TheExpression representing the range variable declarationReturns the variable declaration, which is the abstract schema name and the identification variable. |
| public boolean | Returns: true if at least one join expression was specified; false
otherwiseDetermines whether this declaration has any join expressions. |
| public boolean | Returns: true if the range variable declaration was parsed; false
otherwiseDetermines whether the range variable declaration was parsed. |
| public boolean | Returns: true if the range variable declaration is followed by a space,
false otherwiseDetermines whether there is a space after the range variable declaration. |
| 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.
|
| 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.
|
| hasSpace | back to summary |
|---|---|
| private boolean hasSpace Determines whether there is a space after the range variable declaration. | |
| joins | back to summary |
|---|---|
| private AbstractExpression joins The unique join (fetch join) or list of join (fetch join) expression or a | |
| parsingJoinExpression | back to summary |
|---|---|
| private boolean parsingJoinExpression Flag used to determine how to check if the parsing is complete. | |
| rangeVariableDeclaration | back to summary |
|---|---|
| private AbstractExpression rangeVariableDeclaration The variable declaration, which is the abstract schema name and the variable. | |
| IdentificationVariableDeclaration | back to summary |
|---|---|
| public IdentificationVariableDeclaration(AbstractExpression parent) 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
| |
| buildCollectionExpression | back to summary |
|---|---|
| public CollectionExpression buildCollectionExpression() Creates a new
| |
| findQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF findQueryBNF(Expression expression) Overrides org. Implements org. Doc from org. Retrieves the
| |
| getJoins | back to summary |
|---|---|
| public Expression getJoins() Returns the unique join (fetch join) or the list of joins (fetch joins) expression.
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| getRangeVariableDeclaration | back to summary |
|---|---|
| public Expression getRangeVariableDeclaration() Returns the variable declaration, which is the abstract schema name and the identification variable.
| |
| hasJoins | back to summary |
|---|---|
| public boolean hasJoins() Determines whether this declaration has any join expressions.
| |
| hasRangeVariableDeclaration | back to summary |
|---|---|
| public boolean hasRangeVariableDeclaration() Determines whether the range variable declaration was parsed.
| |
| hasSpace | back to summary |
|---|---|
| public boolean hasSpace() Determines whether there is a space after the range variable declaration.
| |
| 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
| |
| 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
| |