db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r1683400 - /db/jdo/trunk/api/src/java/javax/jdo/Query.java
Date Wed, 03 Jun 2015 18:00:26 GMT
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



Mime
View raw message