Sets the data type as a JDBC
data type for this
stored-procedure parameter.
Syntax
void setParamDataTypeJDBC(int paramDataType)
Parameters
- paramDataType
- The data type of the parameter as a JDBC type.
Exceptions
DtpConnectionException - If the input data type is not
supported.
Notes
Every UserStoredProcedureParam object contains two
representations of its data type: Java Object and JDBC
data type. You should use the Java Object data type
because:
- For IN (and INOUT) parameters, you must provide the
parameter value as a Java Object. Therefore, providing the
parameter data type as a Java Object is more
consistent.
- The execStoredProcedure() method sends parameters in a
Vector parameter array. The Vector object can
contain only elements that are Java Objects.
See also
getParamDataTypeJDBC(),
setParamDataTypeJavaObj()
