db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r1686907 - in /db/jdo/trunk/api/src/java/javax/jdo: JDOQLTypedQuery.java Query.java
Date Mon, 22 Jun 2015 18:06:01 GMT
Author: andyj
Date: Mon Jun 22 18:06:01 2015
New Revision: 1686907

URL: http://svn.apache.org/r1686907
Log:
Parameters methods, still some TODO on JDOQLTypedQuery

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

Modified: db/jdo/trunk/api/src/java/javax/jdo/JDOQLTypedQuery.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api/src/java/javax/jdo/JDOQLTypedQuery.java?rev=1686907&r1=1686906&r2=1686907&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/JDOQLTypedQuery.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/JDOQLTypedQuery.java Mon Jun 22 18:06:01 2015
@@ -254,7 +254,6 @@ public interface JDOQLTypedQuery<T> exte
 
     /**
      * Method to set a parameter value for use when executing the query.
-     * TODO Drop this
      * @param paramExpr Parameter expression
      * @param value The value
      * @return The query

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=1686907&r1=1686906&r2=1686907&view=diff
==============================================================================
--- db/jdo/trunk/api/src/java/javax/jdo/Query.java (original)
+++ db/jdo/trunk/api/src/java/javax/jdo/Query.java Mon Jun 22 18:06:01 2015
@@ -337,11 +337,9 @@ public interface Query<T> extends AutoCl
      * query.  It is then evaluated by the Boolean expression of the filter.  
      * The element passes the filter if there exist unique values for all 
      * variables for which the filter expression evaluates to <code>true</code>.
-     * <P>Cancellation of the query using cancel() will result in JDOQueryInterruptedException
-     * being thrown here
+     * <P>Cancellation of the query using cancel() will result in JDOQueryInterruptedException
being thrown here
      * @return the filtered <code>Collection</code>.
-     * @param parameters the <code>Object</code> array with all of the 
-     * parameters.
+     * @param parameters the <code>Object</code> array with all of the parameters.
      */
     Object executeWithArray (Object... parameters);
     
@@ -979,6 +977,22 @@ public interface Query<T> extends AutoCl
     Query<T> extensions(Map values);
 
     /**
+     * Method to set the named parameters on this query prior to execution.
+     * If using the execute methods taking parameters then those parameter values will override
these values.
+     * @param namedParamMap The map of parameter values keyed by their names.
+     * @return This query
+     */
+    Query<T> setParameters(Map<String, ?> namedParamMap);
+
+    /**
+     * Method to set the values of the numbered parameters on this query prior to execution.
+     * If using the execute methods taking parameters then those parameter values will override
these values.
+     * @param paramValues Values of the numbered parameters, in order.
+     * @return This query
+     */
+    Query<T> setParameters(Object... paramValues);
+
+    /**
      * Method to execute the query where there are (potentially) multiple rows and we are
returning the candidate type.
      * @return The List of candidate objects
      */



Mime
View raw message