EXISTS expression is a predicate that is true only if the
result of the subquery consists of one or more values and that is false otherwise.
BNF: exists_expression ::= [NOT] EXISTS(subquery)
ExistsExpression
| Modifier and Type | Field and Description |
|---|---|
| private boolean | not
Determines whether the |
| public static final String | NOT_PROPERTY
Notifies the visibility of the |
| Access | Constructor and Description |
|---|---|
| public | ExistsExpressionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | ExistsExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, boolean nullDetermines whether the not, StateObject NOT identifier is part of the expression
or notThe stateObject)StateObject representing the subqueryCreates a new |
| public | ExistsExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, boolean nullDetermines whether the not, String NOT identifier is part of the expression
or notThe portion of the query representing the encapsulated expression jpqlFragment)Creates a new |
| public | ExistsExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject nullThe stateObject)StateObject representing the subqueryCreates a new |
| public | ExistsExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String nullThe 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 ExistsExpressionStateObject | |
| public ExistsExpression | 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 | Returns: true if the NOT identifier is part of the expression;
false otherwiseDetermines whether the |
| 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 | |
| public void | setExpression(ExistsExpression
The expression)parsed object representing an EXISTS
expressionKeeps a reference of the |
| public void | setNot(boolean
true if the NOT identifier should be part of the
expression; false otherwiseSets whether the |
| public void | setStateObject(StateObject
The new encapsulated stateObject)
Sets the given StateObjectStateObject to represent the new encapsulated expression.
|
| public void | |
| protected void | toTextEncapsulatedExpression(Appendable
The writer used to print out the string representation of the encapsulated
information writer)
Prints out a string representation of this encapsulated information, which should not be used
to define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| not | back to summary |
|---|---|
| private boolean not Determines whether the | |
| NOT_PROPERTY | back to summary |
|---|---|
| public static final String NOT_PROPERTY Notifies the visibility of the | |
| ExistsExpressionStateObject | back to summary |
|---|---|
| public ExistsExpressionStateObject(StateObject parent) Creates a new
| |
| ExistsExpressionStateObject | back to summary |
|---|---|
| public ExistsExpressionStateObject(StateObject parent, boolean not, StateObject stateObject) Creates a new
| |
| ExistsExpressionStateObject | back to summary |
|---|---|
| public ExistsExpressionStateObject(StateObject parent, boolean not, String jpqlFragment) Creates a new
| |
| ExistsExpressionStateObject | back to summary |
|---|---|
| public ExistsExpressionStateObject(StateObject parent, StateObject stateObject) Creates a new
| |
| ExistsExpressionStateObject | back to summary |
|---|---|
| public ExistsExpressionStateObject(StateObject parent, String jpqlFragment) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| addNot | back to summary |
|---|---|
| public ExistsExpressionStateObject addNot() Makes sure the
| |
| getExpression | back to summary |
|---|---|
| public ExistsExpression 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 | |
| hasNot | back to summary |
|---|---|
| public boolean hasNot() Determines whether the
| |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Implements org. Doc from org. Determines whether the given
| |
| removeNot | back to summary |
|---|---|
| public void removeNot() Makes sure the | |
| setExpression | back to summary |
|---|---|
| public void setExpression(ExistsExpression expression) Keeps a reference of the
| |
| setNot | back to summary |
|---|---|
| public void setNot(boolean not) Sets whether the
| |
| setStateObject | back to summary |
|---|---|
| public void setStateObject(StateObject stateObject) Sets the given
| |
| toggleNot | back to summary |
|---|---|
| public void toggleNot() Changes the visibility state of the | |
| toTextEncapsulatedExpression | back to summary |
|---|---|
| protected void toTextEncapsulatedExpression(Appendable writer) throws IOException Prints out a string representation of this encapsulated information, which should not be used
to define a
| |