skip to main content
SQL Engine parse tree methods for Java : damex_describeCond
 

damex_describeCond

This method retrieves the description of the condition. The condition is one of the following formats:
*left_val_exp {IS NULL | IS NOT NULL}
*left_val_exp {> | < | <= | >= | = | NOT =} right_val_exp
*left_val_exp {LIKE | NOT LIKE} right_val_exp
*left_val_exp {BETWEEN | NOT BETWEEN} right_val_exp AND extra_val_exp
int damex_describeCond(
    long   hCond,
    xo_int piType,
    long   phLeftValExp,
    long   phRightValExp,
    long   phExtraValExp)
Table 255. Parameters for damex_describeCond
Parameter
Type
Description
INPUT
hCond
long
Condition handle.
OUTPUT
piType
xo_int
Operator type. The value of the operator type can be a bitwise OR of the following values:
*SQL_OP_GREATER
*SQL_OP_SMALLER
*SQL_OP_LIKE
*SQL_OP_ISNULL
*SQL_OP_NULL
*SQL_OP_NOT
*SQL_OP_BETWEEN
*SQL_OP_IN
phLeftValExp
long
The handle to the left value expression.
phRightValExp
long
The handle to the right value expression. This value is 0 when the operator type is SQL_OP_NULL.
phExtraValExp
long
The handle to the extra value expression. This value is set only when the operator is SQL_OP_BETWEEN.
RETURN
int
DAM_SUCCESS - valid condition returned.
DAM_FAILURE - on error.