L3 Info : SGBD
 
◃  Ch. 13 JDBC  ▹
 

Récupération du Résultat

  • Identique pour le résultat renvoyé par une fonction ou des paramètres OUT et IN/OUT pl/sql
  • methode getType()
CallableStatement testCall;
testCall = conn.prepareCall(
    "{ ? = call qteAuteur(?,?) }");
testCall.setString(2, "Asimov");
testCall.setString(3, "Isaac");
testCall.execute();
int nbLivres = testCall.getInt(1);
String nom =  testCall.getString(2);
String prenom =  testCall.getString(3);