mirror of https://github.com/apache/openjpa.git
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:
parent
cff59ec5c2
commit
9f0a175b8d
|
@ -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<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 @@ public class SQLStoreQuery
|
|||
}
|
||||
}
|
||||
return buf.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue