union_clause ::= { UNION | INTERSECT | EXCEPT } [ALL] subquery| Modifier and Type | Field and Description |
|---|---|
| private String | actualIdentifier
The actual identifier found in the string representation of the JPQL query. |
| private String | allIdentifier
The actual All identifier found in the string representation of the JPQL query. |
| private boolean | hasSpaceAfterAll
Determines whether a whitespace was parsed after ALL. |
| private boolean | hasSpaceAfterIdentifier
Determines whether a whitespace was parsed after UNION. |
| private AbstractExpression | query
The |
| Access | Constructor and Description |
|---|---|
| public | UnionClause(AbstractExpression
The parent of this expression parent, String Either identifier)UNION, INTERSECT or
EXCEPTCreates 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: TheALL identifier that was actually parsedReturns the actual |
| public String | Returns: The identifier that was actually parsedReturns the actual identifier found in the string representation of the JPQL query, which has the actual case that was used. |
| public String | |
| public Expression | Returns: TheExpression representing the subqueryReturns the |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| public boolean | |
| public boolean | Returns: true the query was parsed; false otherwiseDetermines whether the query was parsed. |
| public boolean | Returns: true if a whitespace was parsed after ALL;
false otherwiseDetermines whether a whitespace was parsed after |
| public boolean | Returns: true if a whitespace was parsed after the identifier; false otherwiseDetermines whether a whitespace was parsed after the identifier. |
| public boolean | Returns: true if the identifier is EXCEPT; false otherwiseDetermines whether this |
| public boolean | Returns: true if the identifier is INTERSECT; false otherwiseDetermines whether this |
| 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. |
| public boolean | Returns: true if the identifier is UNION; false otherwiseDetermines whether this |
| 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 String | |
| 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.
|
| actualIdentifier | back to summary |
|---|---|
| private String actualIdentifier The actual identifier found in the string representation of the JPQL query. | |
| allIdentifier | back to summary |
|---|---|
| private String allIdentifier The actual All identifier found in the string representation of the JPQL query. | |
| hasSpaceAfterAll | back to summary |
|---|---|
| private boolean hasSpaceAfterAll Determines whether a whitespace was parsed after ALL. | |
| hasSpaceAfterIdentifier | back to summary |
|---|---|
| private boolean hasSpaceAfterIdentifier Determines whether a whitespace was parsed after UNION. | |
| query | back to summary |
|---|---|
| private AbstractExpression query The | |
| UnionClause | back to summary |
|---|---|
| public UnionClause(AbstractExpression parent, String identifier) 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
| |
| getActualAll | back to summary |
|---|---|
| public String getActualAll() Returns the actual
| |
| getActualIdentifier | back to summary |
|---|---|
| public String getActualIdentifier() Returns the actual identifier found in the string representation of the JPQL query, which has the actual case that was used.
| |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Returns the union identifier.
| |
| getQuery | back to summary |
|---|---|
| public Expression getQuery() Returns the
| |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| hasAll | back to summary |
|---|---|
| public boolean hasAll() Determines whether
| |
| hasQuery | back to summary |
|---|---|
| public boolean hasQuery() Determines whether the query was parsed.
| |
| hasSpaceAfterAll | back to summary |
|---|---|
| public boolean hasSpaceAfterAll() Determines whether a whitespace was parsed after
| |
| hasSpaceAfterIdentifier | back to summary |
|---|---|
| public boolean hasSpaceAfterIdentifier() Determines whether a whitespace was parsed after the identifier.
| |
| isExcept | back to summary |
|---|---|
| public boolean isExcept() Determines whether this
| |
| isIntersect | back to summary |
|---|---|
| public boolean isIntersect() Determines whether this
| |
| 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.
| |
| isUnion | back to summary |
|---|---|
| public boolean isUnion() Determines whether this
| |
| 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
| |
| parseIdentifier | back to summary |
|---|---|
| protected String parseIdentifier() Parses the JPQL identifier identifier the type of union. | |
| toParsedText | back to summary |
|---|---|
| protected void toParsedText(StringBuilder writer, boolean actual) Implements abstract org. Doc from org. Generates a string representation of this
| |