Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

damex_addxxxResValToRow

  • Last Updated: May 12, 2026
  • 2 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

This method is used to build up a row by adding values for the result column. NULL data is added by specifying the XO_NULL_DATA value flag for the value length.

This method copies data from the user supplied input buffer to its internal buffers and therefore the IP can free the memory that is associated with the input buffer (colVal).

These are the data type specific methods for Java:

int damex_addBigIntResValToRow(
    long hstmt, 
    long hRow, 
    long iResColNum, 
    long colVal, 
    int  lColValLen)

int damex_addBinaryResValToRow(
    long   hstmt, 
    long   hRow, 
    long   iResColNum, 
    byte[] colVal, 
    int    lColValLen)

int damex_addBitResValToRow(
    long    hstmt,
    long    hRow,
    long    iResColNum,
    boolean colVal,
    int     lColValLen)

int damex_addCharResValToRow(
    long   hstmt, 
    long   hRow, 
    long   iResColNum, 
    String colVal, 
    int    lColValLen)

int damex_addDoubleResValToRow(
    long   hstmt, 
    long   hRow, 
    long   iResColNum, 
    double colVal, 
    int    lColValLen)

int damex_addFloatResValToRow(
    long  hstmt, 
    long  hRow, 
    long  iResColNum, 
    float colVal, 
    int   lColValLen)

int damex_addIntResValToRow(
    long hstmt, 
    long hRow, 
    long iResColNum, 
    int  colVal, 
    int  lColValLen)

int damex_addShortResValToRow(
    long  hstmt, 
    long  hRow, 
    long  iResColNum, 
    short colVal, 
    int   lColValLen)

int damex_addTimeStampResValToRow(
    long  hstmt, 
    long  hRow, 
    long  iResColNum, 
    xo_tm colVal, 
    int   lColValLen)

int damex_addTinyIntResValToRow(
    long hstmt,
    long hRow,
    long iResColNum,
    byte colVal,
    int  lColValLen)

int damex_addWCharResValToRow(
    long   hstmt, 
    long   hRow,
    long   iResColNum, 
    String colVal, 
    int    lColValLen)

Parameters for damex_addxxxResValToRow

Parameter Type Description
INPUT
hstmt long The statement handle.
hRow long The row handle.
iResColNum long The result column number.
colVal depends on the method used The Java type of the data should correspond to the iXoType value. See Table How the methods for Java return a value as an object.
lColValLen int The length of the data:
XO_NULL_DATA - indicates a null value.
For VARCHAR, CHAR and NUMERIC either the number of characters or XO_NTS to add the entire string.
For all other data types, 0 or any value other than XO_NULL_DATA.
RETURN
int DAM_SUCCESS - added the value to the row.
DAM_FAILURE - error adding the value.
TitleResults for “How to create a CRG?”Also Available inAlert