Throws
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
DhSQLException
Notes
- Before
invoking
getValue, you must test for theNULLcondition by calling theSQLCursor.wasNULLmethod. If the value returned isNULL, you must explicitly set the target variable in the stored procedure toNULL. - The
getValuemethod returns a value from the result set identified by the number you specify in the fieldNum parameter.getValuereturns the value as an object of the data type you specify in the fieldType parameter. SincegetValuereturns the result as an instance of class Object, you must explicitly cast your return value to the correct data type. - If the returned value is of data type
CHARACTER, thengetValuereturns a JavaStringObject. You must declare a procedure variable of typeStringand explicitly cast the value returned by getValue to typeString.
Example
This
example illustrates testing for NULL and invoking the
Java getValue method:
|