Class MonetCallableStatement

All Implemented Interfaces:
AutoCloseable, CallableStatement, PreparedStatement, Statement, Wrapper

public class MonetCallableStatement
extends MonetPreparedStatement
implements CallableStatement
A CallableStatement suitable for the MonetDB database. The interface used to execute SQL stored procedures. The JDBC API provides a stored procedure SQL escape syntax that allows stored procedures to be called in a standard way for all RDBMSs. This escape syntax has one form that includes a result parameter (MonetDB does not support this) and one that does not. If used, the result parameter must be registered as an OUT parameter (MonetDB does not support this). The other parameters can be used for input, output or both. Parameters are referred to sequentially, by number, with the first parameter being 1. { call procedure-name [ (arg1, arg2, ...) ] } { ?= call procedure-name [ (arg1, arg2, ...) ] } IN parameter values are set using the set methods inherited from PreparedStatement. The type of all OUT parameters must be registered prior to executing the stored procedure; their values are retrieved after execution via the get methods provided here. Note: MonetDB does not support OUT or INOUT parameters. Only input parameters are supported. A CallableStatement can return one ResultSet object or multiple ResultSet objects. Multiple ResultSet objects are handled using operations inherited from Statement. For maximum portability, a call's ResultSet objects and update counts should be processed prior to getting the values of output parameters. This implementation of the CallableStatement interface reuses the implementation of MonetPreparedStatement for preparing the call statement, bind parameter values and execute the call, possibly multiple times with different parameter values. Note: currently we can not implement: - all getXyz(parameterIndex/parameterName, ...) methods - all registerOutParameter(parameterIndex/parameterName, int sqlType, ...) methods - wasNull() method because output parameters in stored procedures are not supported by MonetDB.
Version:
1.0
Author:
Martin van Dinther