getParamType()

Retrieves the in/out type of the current stored-procedure parameter as an integer constant.

Syntax

int getParamType()
 

Parameters

None.

Return values

Returns the in/out type of the associated CwDBStoredProcedureParam parameter.

Exceptions

None.

Notes

The getParamType() method returns the in/out parameter type of the current stored-procedure parameter. The in/out parameter type indicates how the stored procedure uses the parameter. The CwDBStoredProcedureParam class represents each in/out type as a constant, as Table 97 shows.

Table 97. Parameter In/Out Types

Parameter in/out type Description In/Out type constant
IN parameter An IN parameter is input only; that is, the stored procedure accepts its value as input but does not use the parameter to return a value. PARAM_IN
OUT parameter An OUT parameter is output only; that is, the stored procedure does not read its value as input but does use the parameter to return a value. PARAM_OUT
INOUT parameter An INOUT parameter is input and output; that is, the stored procedure accepts its value as input and also uses the parameter to return a value. PARAM_INOUT

See also

CwDBStoredProcedureParam(), getValue()

Copyright IBM Corp. 2003