public class JoinQuery extends Query
The semantics mirror that of a SQL "nested query" of the form:
SELECT ...
FROM ...
WHERE $to IN (SELECT $from FROM ... WHERE $query)
In select circumstances, JoinQuery supports running the subquery on a separate collection. In these cases this collection can be specified using "fromIndex".
| Constructor and Description |
|---|
JoinQuery(String from,
String to,
String fromIndex,
Query query) |
| Modifier and Type | Method and Description |
|---|---|
JoinQuery |
clone() |
List<Query> |
getChildQueries()
Returns all the children of the query in question.
|
String |
getFrom() |
String |
getFromIndex() |
Query |
getQuery() |
String |
getTo() |
boolean |
replaceChildQuery(Query toReplace,
Query replacement)
Swap 'replacement' in as a replacement, if 'toReplace' is currently a child of this Query object.
|
clone, deepClonepublic static final String TYPE
public String getTo()
public String getFrom()
public String getFromIndex()
public Query getQuery()
public List<Query> getChildQueries()
QueryList is provided as a copy - changes made to it do not impact the originating Query object
in any way.getChildQueries in class Querypublic boolean replaceChildQuery(Query toReplace, Query replacement)
QueryreplaceChildQuery in class Query