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);
|
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();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue