addSubquery(sub, variableDeclaration, candidateCollectionExpression) - JDO Query's method

void addSubquery(
  Query sub,
  String variableDeclaration,
  String candidateCollectionExpression

Add a subquery to this query.
sub - the subquery to add to this Query
variableDeclaration - the name of the variable in the outer query to bind the results of the subquery
candidateCollectionExpression - the candidate collection of the subquery as an expression using terms of the outer query
JDO 2.1
See Also:
addSubquery(Query sub, String variableDeclaration, String candidateCollectionExpression, String... parameters)

This documentation page is derived (with some adjustments) from the JDO 2.2 API
and is available under the terms of the Apache License, v. 2.0.