0

I cannot find how we can use DBUtils to invoke callable statements

Can we some how specify which all fields are inputs and which all re outputs ?

f_puras
  • 2,521
  • 4
  • 33
  • 38
Shamis Shukoor
  • 2,515
  • 5
  • 29
  • 33

1 Answers1

1

You just need to use a CallableStatement

Connection con = ...; // get the connection
CallableStatement callStatement = con.prepareCall("{CALL yourStoredProcedure()}");
ResultSet rs = callStatement.executeQuery();
// do what you need to do
Alex
  • 25,147
  • 6
  • 59
  • 55