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 an...@apache.org on 2010/06/01 13:02:11 UTC

svn commit: r950015 - in /db/jdo/site: docs/jdoql_result.html xdocs/jdoql_result.xml

Author: andyj
Date: Tue Jun  1 11:02:10 2010
New Revision: 950015

URL: http://svn.apache.org/viewvc?rev=950015&view=rev
Log:
remove datanucleus refs

Modified:
    db/jdo/site/docs/jdoql_result.html
    db/jdo/site/xdocs/jdoql_result.xml

Modified: db/jdo/site/docs/jdoql_result.html
URL: http://svn.apache.org/viewvc/db/jdo/site/docs/jdoql_result.html?rev=950015&r1=950014&r2=950015&view=diff
==============================================================================
--- db/jdo/site/docs/jdoql_result.html (original)
+++ db/jdo/site/docs/jdoql_result.html Tue Jun  1 11:02:10 2010
@@ -50,7 +50,7 @@
                     So to utilise these you could specify something like
                 </p>
     <div class="source"><pre>
-Query q = pm.newQuery("SELECT max(price), min(price) FROM org.datanucleus.samples.store.Product WHERE status == 1");</pre></div>
+Query q = pm.newQuery("SELECT max(price), min(price) FROM mydomain.Product WHERE status == 1");</pre></div>
   <p>
                     This will return a single row of results with 2 values, the maximum price and the minimum price of
                     all products that have status code of 1.
@@ -62,7 +62,7 @@ Query q = pm.newQuery("SELECT max(price)
                 </p>
     <div class="source"><pre>
 Declarative JDOQL :
-Query query = pm.newQuery(org.datanucleus.samples.store.Product.class);
+Query query = pm.newQuery(mydomain.Product.class);
 query.setFilter("name == \"CD Player\"");
 query.setResult("max(this.price)");
 List results = (List)query.execute();
@@ -70,7 +70,7 @@ Iterator iter = c.iterator();
 Double max_price = (Double)iter.next();
 
 Single-String JDOQL :
-Query query = pm.newQuery("SELECT max(price) FROM org.datanucleus.samples.store.Product WHERE name == \"CD Player\"");
+Query query = pm.newQuery("SELECT max(price) FROM mydomain.Product WHERE name == \"CD Player\"");
 List results = (List)query.execute();
 Iterator iter = c.iterator();
 Double max_price = (Double)iter.next();</pre></div>

Modified: db/jdo/site/xdocs/jdoql_result.xml
URL: http://svn.apache.org/viewvc/db/jdo/site/xdocs/jdoql_result.xml?rev=950015&r1=950014&r2=950015&view=diff
==============================================================================
--- db/jdo/site/xdocs/jdoql_result.xml (original)
+++ db/jdo/site/xdocs/jdoql_result.xml Tue Jun  1 11:02:10 2010
@@ -68,7 +68,7 @@
                     So to utilise these you could specify something like
                 </p>
                 <source>
-Query q = pm.newQuery("SELECT max(price), min(price) FROM org.datanucleus.samples.store.Product WHERE status == 1");</source>
+Query q = pm.newQuery("SELECT max(price), min(price) FROM mydomain.Product WHERE status == 1");</source>
                 <p>
                     This will return a single row of results with 2 values, the maximum price and the minimum price of
                     all products that have status code of 1.
@@ -85,7 +85,7 @@ Query q = pm.newQuery("SELECT max(price)
                 </p>
                 <source>
 Declarative JDOQL :
-Query query = pm.newQuery(org.datanucleus.samples.store.Product.class);
+Query query = pm.newQuery(mydomain.Product.class);
 query.setFilter("name == \"CD Player\"");
 query.setResult("max(this.price)");
 List results = (List)query.execute();
@@ -93,7 +93,7 @@ Iterator iter = c.iterator();
 Double max_price = (Double)iter.next();
 
 Single-String JDOQL :
-Query query = pm.newQuery("SELECT max(price) FROM org.datanucleus.samples.store.Product WHERE name == \"CD Player\"");
+Query query = pm.newQuery("SELECT max(price) FROM mydomain.Product WHERE name == \"CD Player\"");
 List results = (List)query.execute();
 Iterator iter = c.iterator();
 Double max_price = (Double)iter.next();</source>