After your client creates the connection to the database, it is ready to call the stored procedures. You invoke a
stored procedure using the callProcedureSync() method, passing the procedure name and variables as arguments.
For example:
VoltTable[] results;
try {
results = client.callProcedureSync("LookupFlight",
origin,
dest,
departtime).getResults();
} catch (Exception ex) {
ex.printStackTrace();
System.exit(-1);
}The | |
Once a synchronous call completes, you can evaluate the results of the stored procedure. The
| |
Note that since |