ALL conditional expression is a predicate that is 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
esult 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.
BNF: all_or_any_expression ::= {ALL|ANY|SOME}(subquery)
AllOrAnyExpression
| Modifier and Type | Field and Description |
|---|---|
| private String | identifier
The actual JPQL identifier: |
| public static final String | IDENTIFIER_PROPERTY
Notifies the identifier property has changed. |
| Access | Constructor and Description |
|---|---|
| public | AllOrAnyExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullOne of the three possible JPQL identifiers: identifier)ALL,
ANY or SOMECreates a new |
| public | AllOrAnyExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullOne of the three possible JPQL identifiers: identifier, StateObject ALL,
ANY or SOMEThe stateObject)StateObject representing the encapsulated expressionCreates a new |
| public | AllOrAnyExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullOne of the three possible JPQL identifiers: identifier, String ALL,
ANY or SOMEThe portion of the query representing the encapsulated expression jpqlFragment)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(StateObjectVisitor
The visitor)visitor to visit this objectImplements org. StateObject by the given visitor.
|
| public AllOrAnyExpression | getExpression()
Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public String | getIdentifier()
Implements abstract org. AbstractSingleEncapsulatedExpressionStateObject.
|
| protected String | getQueryBNFId()
Implements abstract org. JPQLQueryBNF that will determine how to parse the encapsulated expression.
|
| public boolean | isEquivalent(StateObject
The stateObject)
StateObject to compare its content to this oneImplements org. StateObject is equivalent to this one, i.e. the
information of both StateObject is the same.
|
| public void | setExpression(AllOrAnyExpression expression)
Keeps a reference of the |
| public void | setIdentifier(String
One of the three possible JPQL identifiers: identifier)ALL,
ANY or SOMESets the JPQL identifier to the given one. |
| public void | setStateObject(StateObject
The new encapsulated stateObject)
Sets the given StateObjectStateObject to represent the new encapsulated expression.
|
| private void |
| identifier | back to summary |
|---|---|
| private String identifier The actual JPQL identifier: | |
| IDENTIFIER_PROPERTY | back to summary |
|---|---|
| public static final String IDENTIFIER_PROPERTY Notifies the identifier property has changed. | |
| AllOrAnyExpressionStateObject | back to summary |
|---|---|
| public AllOrAnyExpressionStateObject(StateObject parent, String identifier) Creates a new
| |
| AllOrAnyExpressionStateObject | back to summary |
|---|---|
| public AllOrAnyExpressionStateObject(StateObject parent, String identifier, StateObject stateObject) Creates a new
| |
| AllOrAnyExpressionStateObject | back to summary |
|---|---|
| public AllOrAnyExpressionStateObject(StateObject parent, String identifier, String jpqlFragment) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| getExpression | back to summary |
|---|---|
| public AllOrAnyExpression getExpression() Implements org. Doc from org. Returns the actual parsed object if this
| |
| getIdentifier | back to summary |
|---|---|
| public String getIdentifier() Implements abstract org. Returns the JPQL identifier of the expression represented by this | |
| getQueryBNFId | back to summary |
|---|---|
| protected String getQueryBNFId() Implements abstract org. Returns the unique identifier of the | |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Implements org. Doc from org. Determines whether the given
| |
| setExpression | back to summary |
|---|---|
| public void setExpression(AllOrAnyExpression expression) Keeps a reference of the
| |
| setIdentifier | back to summary |
|---|---|
| public void setIdentifier(String identifier) Sets the JPQL identifier to the given one.
| |
| setStateObject | back to summary |
|---|---|
| public void setStateObject(StateObject stateObject) Sets the given
| |
| validateIdentifier | back to summary |
|---|---|
| private void validateIdentifier(String identifier) | |