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 2015/06/03 20:00:26 UTC

svn commit: r1683400 - /db/jdo/trunk/api/src/java/javax/jdo/Query.java

Author: andyj
Date: Wed Jun  3 18:00:26 2015
New Revision: 1683400

URL: http://svn.apache.org/r1683400
Log:
Add result clause to fluent API

Modified:
    db/jdo/trunk/api/src/java/javax/jdo/Query.java

Modified: db/jdo/trunk/api/src/java/javax/jdo/Query.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/Query.java?rev=1683400&r1=1683399&r2=1683400&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/Query.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/Query.java Wed Jun  3 18:00:26 2015
@@ -830,6 +830,14 @@ public interface Query extends AutoClose
     Query having(String having);
 
     /**
+     * Set the result clause for the query.
+     * Shortcut for the {@link setResult(String)} method
+     * @param result The result clause
+     * @return This query
+     */
+    Query result (String result);
+
+    /**
      * Set the range of results to return.
      * Shortcut for the {@link setRange(long, long)} method
      * @param fromIncl 0-based inclusive start index