openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fa...@apache.org
Subject svn commit: r741347 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java
Date Thu, 05 Feb 2009 23:53:25 GMT
Author: fancy
Date: Thu Feb  5 23:53:25 2009
New Revision: 741347

URL: http://svn.apache.org/viewvc?rev=741347&view=rev
Log:
OPENJPA-703 make substituteParams() utility method public

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java?rev=741347&r1=741346&r2=741347&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java
Thu Feb  5 23:53:25 2009
@@ -352,12 +352,13 @@
             q.getContext().getQuery().setQuery(sql);
             return result;
         }
-        
-        /**
-         * Utility method to substitute '?num' for parameters in the given SQL
-         * statement, and fill-in the order of the parameter tokens
-         */
-        static String substituteParams(String sql, List<Integer> paramOrder)
+    }
+    
+    /**
+     * Utility method to substitute '?num' for parameters in the given SQL
+     * statement, and fill-in the order of the parameter tokens
+     */
+    public static String substituteParams(String sql, List<Integer> paramOrder)
             throws IOException {
             // if there's no "?" parameter marker, then we don't need to
             // perform the parsing process
@@ -400,6 +401,5 @@
                 }
             }
             return buf.toString();
-        }
     }
 }



Mime
View raw message