skip to main content
OpenAccess SDK SQL Engine core methods for Java : Exchanging data : dam_getValueToSet
 

dam_getValueToSet

This method gets the value portion of a value object. A value object consists of the column handle and the value for that column. It is retrieved from a row by using the methods dam_getFirstValueSet and dam_getNextValueSet.
The XoType specifies how you want the value to be returned.
You can obtain the type of the column by using dam_describeCol on the column handle returned by dam_getColToSet.
Object dam_getValueToSet(
       long   hRowElem,
       int    iXoType,
       xo_int piStatus)
Table 225. Parameters for dam_getValueToSet
Parameter
Type
Description
INPUT
hRowElem
long
Value set handle.
iXoType
int
The data type in which to get the value.
OUTPUT
piStatus
xo_int
The status of the method call:
DAM_SUCCESS - all data retrieved.
DAM_SUCCESS_WITH_RESULT_PENDING - more data is available and should be retrieved by calling this method again. This will occur for a large LONGVARBINARY data.
DAM_FAILURE - error in getting the data. Most likely the data cannot be converted to the XO_Type asked for.
RETURN
Object
The data object. The java type of the data will correspond to the iXoType value. See Table 34. A NULL Object is returned if the underlying value is NULL data.

See also

*dam_describeCol
*dam_getColToSet
*dam_getFirstValueSet
*dam_getNextValueSet