OPENJPA-703 make substituteParams() utility method public

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@741347 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Catalina Wei 2009-02-05 23:53:25 +00:00
parent cff59ec5c2
commit 9f0a175b8d
1 changed files with 7 additions and 7 deletions

View File

@ -352,12 +352,13 @@ public class SQLStoreQuery
q.getContext().getQuery().setQuery(sql); q.getContext().getQuery().setQuery(sql);
return result; return result;
} }
}
/**
* Utility method to substitute '?num' for parameters in the given SQL /**
* statement, and fill-in the order of the parameter tokens * 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) */
public static String substituteParams(String sql, List<Integer> paramOrder)
throws IOException { throws IOException {
// if there's no "?" parameter marker, then we don't need to // if there's no "?" parameter marker, then we don't need to
// perform the parsing process // perform the parsing process
@ -400,6 +401,5 @@ public class SQLStoreQuery
} }
} }
return buf.toString(); return buf.toString();
}
} }
} }