db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r551320 - /db/jdo/trunk/query20/src/java/org/apache/jdo/impl/jdoql/QueryImpl.java
Date Wed, 27 Jun 2007 20:51:45 GMT
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



Mime
View raw message