UserStoredProcedureParam()

Constructs a new instance of UserStoredProcedureParam that holds argument information for the parameter of a stored procedure.

Syntax

UserStoredProcedureParam(int paramIndex, String paramType, 
    Object paramValue, String ParamIOType, String paramName)
 

Parameters

paramIndex
The index position of the associated parameter in the declaration of the stored procedure. Index numbering begins with one (1).

paramType
The data type (as a Java Object) of the associated parameter.

paramValue
The argument value to send to the stored procedure.

ParamIOType
The in/out type of the associated parameter. Valid types are: "IN" - parameter value is input only. "INOUT" - parameter value is input and output. "OUT" - parameter value is output only.

paramName
The name of the argument, to be used in later statements that build the Vector array.

Return values

Returns a new UserStoredProcedureParam object to hold the argument information for the argument at position argIndex in the declaration of the stored procedure.

Exceptions

DtpConnectionException - If a parameter is invalid.

Copyright IBM Corp. 1997, 2003