START WITH specifies the root row(s) of the hierarchy.
CONNECT BY specifies the relationship between parent rows and child rows of
the hierarchy.
hierarchical_query_clause ::= [start_with_clause] connectby_clause [order_siblings_by_clause]StartWithClause, ConnectByClause, OrderSiblingsByClause
| Modifier and Type | Field and Description |
|---|---|
| private AbstractExpression | connectByClause
The |
| private boolean | hasSpaceAfterConnectByClause
Determines whether a whitespace was parsed after the |
| private boolean | hasSpaceAfterStartWithClause
Determines whether a whitespace was parsed after the |
| private AbstractExpression | orderSiblingsByClause
The |
| private AbstractExpression | startWithClause
The |
| Access | Constructor and Description |
|---|---|
| public | HierarchicalQueryClause(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 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: The expression representing the CONNECT BY clauseReturns the |
| public Expression | Returns: The expression representing the ORDER SIBLINGS BY clauseReturns the |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| public Expression | Returns: The expression representing the START WITH clauseReturns the |
| public boolean | Returns: true if the query that got parsed had the CONNECT BY clauseDetermines whether the CONNECT BY clause is defined. |
| public boolean | Returns: true if the query that got parsed had the ORDER SIBLINGS BY clauseDetermines whether the ORDER SIBLINGS BY clause is defined. |
| public boolean | Returns: true if there was a whitespace after the CONNECT BY
clause and owned by this expression; false otherwiseDetermines whether a whitespace was found after the |
| public boolean | Returns: true if there was a whitespace after the START WITH
clause and owned by this expression; false otherwiseDetermines whether a whitespace was found after the |
| public boolean | Returns: true if the query that got parsed had the START WITH clauseDetermines whether the START WITH clause is defined. |
| 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 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.
|
| connectByClause | back to summary |
|---|---|
| private AbstractExpression connectByClause The | |
| hasSpaceAfterConnectByClause | back to summary |
|---|---|
| private boolean hasSpaceAfterConnectByClause Determines whether a whitespace was parsed after the | |
| hasSpaceAfterStartWithClause | back to summary |
|---|---|
| private boolean hasSpaceAfterStartWithClause Determines whether a whitespace was parsed after the | |
| orderSiblingsByClause | back to summary |
|---|---|
| private AbstractExpression orderSiblingsByClause The | |
| startWithClause | back to summary |
|---|---|
| private AbstractExpression startWithClause The | |
| HierarchicalQueryClause | back to summary |
|---|---|
| public HierarchicalQueryClause(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
| |
| findQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF findQueryBNF(Expression expression) Overrides org. Implements org. Doc from org. Retrieves the
| |
| getConnectByClause | back to summary |
|---|---|
| public Expression getConnectByClause() Returns the
| |
| getOrderSiblingsByClause | back to summary |
|---|---|
| public Expression getOrderSiblingsByClause() Returns the
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| getStartWithClause | back to summary |
|---|---|
| public Expression getStartWithClause() Returns the
| |
| hasConnectByClause | back to summary |
|---|---|
| public boolean hasConnectByClause() Determines whether the CONNECT BY clause is defined.
| |
| hasOrderSiblingsByClause | back to summary |
|---|---|
| public boolean hasOrderSiblingsByClause() Determines whether the ORDER SIBLINGS BY clause is defined.
| |
| hasSpaceAfterConnectByClause | back to summary |
|---|---|
| public boolean hasSpaceAfterConnectByClause() Determines whether a whitespace was found after the
| |
| hasSpaceAfterStartWithClause | back to summary |
|---|---|
| public boolean hasSpaceAfterStartWithClause() Determines whether a whitespace was found after the
| |
| hasStartWithClause | back to summary |
|---|---|
| public boolean hasStartWithClause() Determines whether the START WITH clause is defined.
| |
| 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
| |
| toParsedText | back to summary |
|---|---|
| protected void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |