From 9f0a175b8d547b07390009237a82919e92c9fa65 Mon Sep 17 00:00:00 2001 From: Catalina Wei Date: Thu, 5 Feb 2009 23:53:25 +0000 Subject: [PATCH] OPENJPA-703 make substituteParams() utility method public git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741347 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/openjpa/jdbc/kernel/SQLStoreQuery.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java index dbe9bbb59..8a4557458 100644 --- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java +++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/SQLStoreQuery.java @@ -352,12 +352,13 @@ public class SQLStoreQuery 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 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 paramOrder) throws IOException { // if there's no "?" parameter marker, then we don't need to // perform the parsing process @@ -400,6 +401,5 @@ public class SQLStoreQuery } } return buf.toString(); - } } }