You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by fa...@apache.org on 2009/02/06 00:53:25 UTC

svn commit: r741347 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java

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();
-        }
     }
 }