Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

dam_getOriginalQueryParamValue

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

This method returns the type, value, and length of the parameter specified in the original query.

object dam_getOriginalQueryParamValue(
    long     hstmt,
    int      iParam,
    xo_int   piXoType,
    xo_long  plValLen,
    xo_int   piValStatus)

Properties of dam_getOriginalQueryParamValue

Parameter Type Description
INPUT
hstmt long The statement handle.
iParam int The parameter index. Its value starts from zero.
OUTPUT
piXoType xo_int The data type of the result value.
plValLen xo_long The length of the data returned in the object:
XO_NULL_DATA - null data
XO_NTS - null terminated string
>= 0 - length of the data
piValStatus xo_int The status of the method call:
DAM_SUCCESS - all data retrieved.
DAM_SUCCESS_WITH_RESULT_PENDING - data is partially retrieved. For the result sets of LONGVARBINARY, WLONGVARCHAR, and LONGVARCHAR types, the IP needs to call on the same parameter index repeatedly to get the complete result set. Once the complete result set is retrieved, the function returns DAM_SUCCESS.
DAM_FAILURE - error in getting the data.
RETURN
object The object that represents the data portion of the result value. The format of the data depends on the type of the data type returned in piXoType. Use this object only if the pIValLen is not set to XO_NULL_DATA. See Table How the methods for Java return a value as an object.

See also

TitleResults for “How to create a CRG?”Also Available inAlert