Executing stored procedures

The methods executeProcedure and executeProcedureWithReply perform a database-defined stored procedure. These methods take the name of the stored procedure as an argument.

If the stored procedure requires input parameters, the methods also takes either the formatted input parameters, or a context instance together with a formatter name, or a context instance together with a formatter instance. In the latter two cases, the service itself calls the format method of the formatter object to build the input parameters that will be passed as arguments of the stored procedure.

If the stored procedure has output parameters, the methods take as arguments (together with those previously described arguments) either the output formatter name or the output formatter instance (the formatter being defined in the toolkit formats definition file).

If the stored procedure has not been previously registered in the database, the methods throw a DSESQLException.