You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-commits@db.apache.org by cl...@apache.org on 2007/06/27 22:51:45 UTC
svn commit: r551320 -
/db/jdo/trunk/query20/src/java/org/apache/jdo/impl/jdoql/QueryImpl.java
Author: clr
Date: Wed Jun 27 13:51:44 2007
New Revision: 551320
URL: http://svn.apache.org/viewvc?view=rev&rev=551320
Log:
Update for JDO 2.1. Add addSubquery to QueryImpl.java in query20 project
Modified:
db/jdo/trunk/query20/src/java/org/apache/jdo/impl/jdoql/QueryImpl.java
Modified: db/jdo/trunk/query20/src/java/org/apache/jdo/impl/jdoql/QueryImpl.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/query20/src/java/org/apache/jdo/impl/jdoql/QueryImpl.java?view=diff&rev=551320&r1=551319&r2=551320
==============================================================================
--- db/jdo/trunk/query20/src/java/org/apache/jdo/impl/jdoql/QueryImpl.java (original)
+++ db/jdo/trunk/query20/src/java/org/apache/jdo/impl/jdoql/QueryImpl.java Wed Jun 27 13:51:44 2007
@@ -976,6 +976,37 @@
}
}
+ /**
+ * Add a subquery to this query.
+ * The query parameter instance is unmodified as a result of the
+ * addSubquery or subsequent execution of the outer query.
+ * Only some of the query parts are copied for use as the subquery.
+ * The parts copied include the candidate class, filter, parameter
+ * declarations, variable declarations, imports, ordering specification,
+ * uniqueness, result specification, and grouping specification.
+ * The association with a PersistenceManager, the candidate collection,
+ * result class, limits on size, and number of skipped instances
+ * are not used.
+ * The variableDeclaration is the name of the variable containing
+ * the results of the subquery execution. This variable may be used
+ * in this query.
+ * The candidateCollectionExpression is the expression using tokens
+ * from this query that represent the candidates over which the
+ * subquery is evaluated.
+ * @param sub the subquery to add to this Query
+ * @param variableDeclaration the name of the variable
+ * to be used in this Query
+ * @param candidateCollectionExpression the candidate collection
+ * to apply to the subquery
+ * @since 2.1
+ */
+ public void addSubquery
+ (Query sub, String variableDeclaration,
+ String candidateCollectionExpression) {
+ throw new UnsupportedOperationException(
+ "method addSubquery() is not yet implemented");
+ }
+
/** Serialization support. */
private void readObject(java.io.ObjectInputStream in)
throws java.io.IOException, ClassNotFoundException