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

dam_isTargetRow

This method evaluates the row against the WHERE clause of the active SQL statement. It returns DAM_TRUE if the row matches the WHERE clause and DAM_FALSE if not. If DAM_TRUE, call dam_addRowToTable. If DAM_FALSE, call dam_freeRow to free the row.
DAM_ERROR is returned if the row handle is invalid or if all the required column values have not been set. If the table has index(s) defined and the query contains restrictions on index columns, this method assumes that all rows provided by the IP satisfy the index conditions and does not perform further validation.
int dam_isTargetRow(
    long hstmt,
    long hRow)
Table 231. Parameters for dam_isTargetRow
Parameter
Type
Description
INPUT
hstmt
long
The statement handle.
hRow
long
The row handle.
RETURN
Int
DAM_TRUE - The row matches the restrictions.
DAM_FALSE - The row does not match the restrictions.
DAM_ERROR - The row handle is invalid or not all required column values have been set.

See also

*dam_addRowToTable
*dam_freeRow