cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r651369 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
Date Thu, 24 Apr 2008 19:48:41 GMT
Author: aadamchik
Date: Thu Apr 24 12:48:37 2008
New Revision: 651369

URL: http://svn.apache.org/viewvc?rev=651369&view=rev
Log:
switching to vararg queryWithParameters call , and removing now invariant version that takes
a single argument

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java?rev=651369&r1=651368&r2=651369&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/query/SQLTemplate.java
Thu Apr 24 12:48:37 2008
@@ -301,17 +301,7 @@
      * Returns a new query built using this query as a prototype and a new set of
      * parameters.
      */
-    public SQLTemplate queryWithParameters(Map<String, ?> parameters) {
-        return queryWithParameters(new Map[] {
-            parameters
-        });
-    }
-
-    /**
-     * Returns a new query built using this query as a prototype and a new set of
-     * parameters.
-     */
-    public SQLTemplate queryWithParameters(Map<String, ?>[] parameters) {
+    public SQLTemplate queryWithParameters(Map<String, ?>... parameters) {
         // create a query replica
         SQLTemplate query = new SQLTemplate();
 



Mime
View raw message