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 getType() 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 64 shows.

Table 64. 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

"Calling stored procedures with executeStoredProcedure()"

CwDBStoredProcedureParam(), getValue()

Copyright IBM Corp. 2003, 2004