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

damex_describeCaseValExp

This method retrieves the description of a conditional CASE expression. It returns a description of two formats for CASE expression, as follows:
Simple CASE expression:
CASE input_expression
WHEN when_expression THEN result_expression
[...]
[ELSE else_result_expression
]END
Searched CASE expression:
CASE
WHEN Boolean_expression THEN result_expression
[...]
[
ELSE else_result_expression
]
END

Syntax

int damex_describeCaseValExp(
     long hCaseValExp,
     long phInputValExp,
     long phCaseElemList,
     long phElseValExp)
Table 253. Parameters for damex_describeCaseValExp
Parameter
Type
Description
INPUT
hCaseValExp
long
Case value expression handle.
OUTPUT
phInputValExp
long
Handle to the input expression. This value is set only when the CASE is a simple expression.
phCaseElemList
long
Handle to the input expression. This value is set only when the CASE is a simple CASE expression.
phElseValExp
long
Handle to the WHEN-THEN expression list. Use damex_getFirstCaseElem and damex_getNextCaseElem.
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure

See also

*damex_getFirstCaseElem
*damex_getNextCaseElem