Im delphi programmer and used to use Java quite a bit a long while ago and now back onto a project in java again and im sure that there was a function or object that could be used to basically create a string with parameters and would replace said params just like PreparedStatement. Now for the life of me i cannot remember what this function is called or even if it exists outside of PreparedStatement or am i imagining things ???
For example, i want to take a string like this:
String ss = “(CODE, CATEGEORY, DESCRIPTION) VALUES (:CODE, :CATEGEORY, :DESCRIPTION)”;
and be able to do this
ss.setParam(0, "thisValue");
ss.setParam(1, "thus_value");
etc…
Any ideas
1 Answer