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

dam_getValueOfExp

This method gets the value of the argument passed into a scalar function implemented by the IP. Use the methods dam_getFirstValExp and dam_getNextValExp to step through the argument list.
Object dam_getValueOfExp(
       long   pMemTree,
       long   hValExpList,
       long   hValExp,
       int    iXoType,
       xo_int piStatus)
Table 224. Parameters for dam_getValueOfExp
Parameter
Type
Description
INPUT
pMemTree
long
The memory tree to use for temporary storage.
hValExpList
long
The list of arguments as passed into the scalar function.
hValExp
long
The argument for which you want to retrieve the data.
iXoType
int
The data type in which to get the value. It can be any data type that can be a conversion target of the argument's data type as defined in the scalar function definition.
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, LONGVARCHAR , and WLONGVARCHAR data.
DAM_FAILURE - error in getting the data; most likely the data cannot be converted to the specified XO_Type.
RETURN
Object
The value of the argument. 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_getFirstValueSet
*dam_getNextValueSet