skip to main content
OpenAccess SDK SQL Engine core methods for Java : Exchanging data : dam_evaluateColCond
 

dam_evaluateColCond

This method evaluates a search or restriction condition for the IP. Use it in cases when you have specified support for a condition type but cannot support certain columns.
int dam_evaluateColCond(
    long   hstmt,
    long   hcond,
    int    iXoType,
    Object pColVal,
    long   lColValLen)
Table 157. Parameters for dam_evaluateColCond
Parameter
Type
Description
INPUT
hstmt
long
The statement handle.
hcond
long
The condition handle.
iXoType
int
The data type. The data can be supplied in a format that corresponds to the column's definition in the schema or in any other format for which conversion is supported.
pColVal
Object
The Java object containing the value of type iXoType. See Table 34.
lColValLen
long
The length of the data.
XO_NULL_DATA - indicates a null value.
For a character data type, either the number of characters or XO_NTS to pass the entire string.
For binary, the length of the data.
RETURN
int
1 - condition evaluates to true.
0 - condition evaluates to false.