true if the comparison
operation is true for all values in the result of the subquery or the result of the
subquery is empty. An ALL conditional expression is false if the result of
the comparison is false for at least one row, and is unknown if neither
true nor false.
An ANY conditional expression is a predicate that is true if the comparison
operation is true for some value in the result of the subquery. An ANY
conditional expression is false if the result of the subquery is empty or if the
comparison operation is false for every value in the result of the subquery, and is
unknown if neither true nor false. The keyword SOME is
synonymous with ANY. The comparison operators used with ALL or ANY
conditional expressions are =, <, <=, >, >=, <>. The result of the subquery must be
like that of the other argument to the comparison operator in type.
all_or_any_expression ::= {ALL|ANY|SOME}(subquery)| Access | Constructor and Description |
|---|---|
| public | AllOrAnyExpression(AbstractExpression
The parent of this expression parent, String identifier)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 String | getEncapsulatedExpressionQueryBNFId()
Implements abstract org. |
| public JPQLQueryBNF | getQueryBNF()
Implements org. Expression.
|
| protected AbstractExpression | parse(WordParser
The text to parse based on the current position of the cursor wordParser, String The unique identifier of the queryBNFId, boolean JPQLQueryBNF that is used to determine
how to parse the text at the current cursor position within the JPQL queryDetermines whether the parsing system should be tolerant, meaning if it should
try to parse invalid or incomplete queries tolerant)Overrides org. |
| AllOrAnyExpression | back to summary |
|---|---|
| public AllOrAnyExpression(AbstractExpression parent, String identifier) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(ExpressionVisitor visitor) Implements org. Doc from org. Visits this
| |
| getEncapsulatedExpressionQueryBNFId | back to summary |
|---|---|
| public String getEncapsulatedExpressionQueryBNFId() Implements abstract org. Returns the BNF used to parse the encapsulated expression. | |
| getQueryBNF | back to summary |
|---|---|
| public JPQLQueryBNF getQueryBNF() Implements org. Doc from org. Returns the BNF of this
| |
| parse | back to summary |
|---|---|
| protected AbstractExpression parse(WordParser wordParser, String queryBNFId, boolean tolerant) Overrides org. Doc from org. Parses the given text by using the specified BNF.
| |