The results of the subquery must be like the same abstract schema type of the state field path expression in type.
There must be at least one element in the comma separated list that defines the set of values for
the IN expression. If the value of a state field path expression in an
IN or NOT IN expression is NULL or
unknown, the value of the expression is unknown.
JPA 1.0:
BNF: in_expression ::= state_field_path_expression [NOT] IN(in_item {, in_item}* | subquery)
BNF: in_expression ::= {state_field_path_expression | type_discriminator} [NOT] IN { ( in_item {, in_item}* ) | (subquery) | collection_valued_input_parameter }
InExpression
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ITEMS_LIST
Notifies the list of items has changed. |
| private boolean | not
Determines whether the |
| public static final String | NOT_PROPERTY
Notifies the visibility of the |
| private boolean | singleInputParameter
Determines whether what was parsed after the |
| public static final String | STATE_OBJECT_PROPERTY
Notifies the |
| private StateObject | stateObject
The |
| Access | Constructor and Description |
|---|---|
| public | InExpressionStateObject(StateObject
The parent of this state object, which cannot be parent)nullCreates a new |
| public | InExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, boolean nullDetermines whether the not, String path, List<String> NOT identifier is part of the expression
or notThe list of JPQL fragments that will be parsed and converted into items)StateObjectCreates a new |
| public | InExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, boolean nullDetermines whether the not, String path, String NOT identifier is part of the expression
or notThe parameter)Creates a new |
| public | InExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject stateObject, boolean nullDetermines whether the not, List<? extends StateObject> items)NOT identifier is part of the expression
or notCreates a new |
| public | InExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, StateObject stateFieldPath, List<? extends StateObject> items)nullCreates a new |
| public | InExpressionStateObject(StateObject
The parent of this state object, which cannot be parent, String path, List<String> nullThe list of JPQL fragments that will be parsed and converted into items)StateObjectCreates 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.
|
| protected void | addChildren(List<StateObject>
The list used to store the children children)Overrides org. StateObject to the given list.
|
| public InExpressionStateObject | |
| public InExpression | getExpression()
Overrides org. Implements org. StateObject representation of the JPQL query
was created by parsing an existing JPQL query.
|
| public StateObject | |
| public boolean | Returns: true if the NOT identifier is part of the expression;
false otherwiseDetermines whether the |
| public boolean | |
| public boolean | isEquivalent(StateObject
The stateObject)StateObject to compare its content to this oneOverrides org. Implements org. StateObject is equivalent to this one, i.e. the
information of both StateObject is the same.
|
| public boolean | Returns: true if the only item is an input parameter; false otherwiseDetermines whether what was parsed after the |
| protected String | listName()
Implements abstract org. |
| public void | parse(String
The portion of the query to parse jpqlFragment)Parses the given JPQL fragment, which represents either a single or many items, the fragment
will be parsed and converted into |
| public void | |
| public void | setExpression(InExpression
The expression)parsed object representing an IN
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 | setSingleInputParameter(boolean
true if the only item is an input parameter;
false otherwiseSets whether what was parsed after the |
| public void | |
| public void | |
| protected void | toTextInternal(Appendable
The writer used to print out the string representation writer)Implements abstract org. StateObject, which should not be used to
define a true string representation of a JPQL query but should be used for
debugging purposes.
|
| ITEMS_LIST | back to summary |
|---|---|
| public static final String ITEMS_LIST Notifies the list of items has changed. | |
| 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 | |
| singleInputParameter | back to summary |
|---|---|
| private boolean singleInputParameter Determines whether what was parsed after the | |
| STATE_OBJECT_PROPERTY | back to summary |
|---|---|
| public static final String STATE_OBJECT_PROPERTY Notifies the | |
| stateObject | back to summary |
|---|---|
| private StateObject stateObject The | |
| InExpressionStateObject | back to summary |
|---|---|
| public InExpressionStateObject(StateObject parent) Creates a new
| |
| InExpressionStateObject | back to summary |
|---|---|
| public InExpressionStateObject(StateObject parent, boolean not, String path, List<String> items) Creates a new
| |
| InExpressionStateObject | back to summary |
|---|---|
| public InExpressionStateObject(StateObject parent, boolean not, String path, String parameter) Creates a new
| |
| InExpressionStateObject | back to summary |
|---|---|
| public InExpressionStateObject(StateObject parent, StateObject stateObject, boolean not, List<? extends StateObject> items) Creates a new
| |
| InExpressionStateObject | back to summary |
|---|---|
| public InExpressionStateObject(StateObject parent, StateObject stateFieldPath, List<? extends StateObject> items) Creates a new
| |
| InExpressionStateObject | back to summary |
|---|---|
| public InExpressionStateObject(StateObject parent, String path, List<String> items) Creates a new
| |
| accept | back to summary |
|---|---|
| public void accept(StateObjectVisitor visitor) Implements org. Doc from org. Visits this
| |
| addChildren | back to summary |
|---|---|
| protected void addChildren(List<StateObject> children) Overrides org. Doc from org. Adds the children of this
| |
| addNot | back to summary |
|---|---|
| public InExpressionStateObject addNot() Makes sure the
| |
| getExpression | back to summary |
|---|---|
| public InExpression getExpression() Overrides org. Implements org. Doc from org. Returns the actual parsed object if this
| |
| getStateObject | back to summary |
|---|---|
| public StateObject getStateObject() Returns | |
| hasNot | back to summary |
|---|---|
| public boolean hasNot() Determines whether the
| |
| hasStateObject | back to summary |
|---|---|
| public boolean hasStateObject() Determines whether | |
| isEquivalent | back to summary |
|---|---|
| public boolean isEquivalent(StateObject stateObject) Overrides org. Implements org. Doc from org. Determines whether the given
| |
| isSingleInputParameter | back to summary |
|---|---|
| public boolean isSingleInputParameter() Determines whether what was parsed after the
| |
| listName | back to summary |
|---|---|
| protected String listName() Implements abstract org. Doc from org. Returns the name that is uniquely identifying the list. | |
| parse | back to summary |
|---|---|
| public void parse(String jpqlFragment) Parses the given JPQL fragment, which represents either a single or many items, the fragment
will be parsed and converted into
| |
| removeNot | back to summary |
|---|---|
| public void removeNot() Makes sure the | |
| setExpression | back to summary |
|---|---|
| public void setExpression(InExpression expression) Keeps a reference of the
| |
| setNot | back to summary |
|---|---|
| public void setNot(boolean not) Sets whether the
| |
| setSingleInputParameter | back to summary |
|---|---|
| public void setSingleInputParameter(boolean singleInputParameter) Sets whether what was parsed after the
| |
| setStateObject | back to summary |
|---|---|
| public void setStateObject(StateObject stateObject) Sets | |
| toggleNot | back to summary |
|---|---|
| public void toggleNot() Changes the visibility state of the | |
| toTextInternal | back to summary |
|---|---|
| protected void toTextInternal(Appendable writer) throws IOException Implements abstract org. Doc from org. Prints out a string representation of this
| |