The
getParam() method returns the value of an
INOUT or
OUT parameter identified by the number you specify in the
fieldIndexparameter. getParam() returns the value as an object of the data type you specify in the
fieldTypeparameter. Since
getParam() returns the result as an instance of class Object, you must explicitly cast your
inout_var variable to the correct data type.
If the
OUT or
INOUT parameter is of data type
CHARACTER, then
getParam returns a Java
String Object. You must declare a procedure variable of type
String, and explicitly cast the value returned by
getParam to type
String. Before calling
getParam() you must call the
SQLCursor.wasNULL method to test whether the returned value is
NULL. If
getParam() is called for a
NULL value, it raises a
DhSQLException.