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

damex_describeCaseElem

This method retrieves the details of the WHEN-THEN Case element of the CASE expression. The WHEN-THEN expression has one of the following formats:
*Simple Case
WHEN when_expression THEN result_expression
*Searched Case
WHEN boolean_expression THEN result_expression

Syntax

int damex_describeCaseElem(
     long hCaseElem,
     long phWhenValExp,
     long phWhenBoolExp,
     long phResValExp)
Table 252. Parameters for damex_describeCaseElem
Parameter
Type
Description
INPUT
hCaseElem
long
Element handle of the WHEN-THEN expression.
OUTPUT
phWhenValExp
long
The handle to the WHEN value expression. This value is set only when the Case is a simple Case expression.
phWhenBoolExp
long
The handle to the WHEN boolean expression. This value is set only when the Case is a searched Case expression.
phResValExp
long
The handle to the result expression.
RETURN
int
DAM_SUCCESS - on success
DAM_FAILURE - on failure