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

dam_setIP_hstmt

This method is used to save state information for a statement that is being processed. Use this method when performing cursor-based execution of the statement in which the IP returns partial results in each call. It must save the state to know where to begin next time. The saved state is in the form of an object that can be retrieved later by calling dam_getIP_hstmt. Implement your IP to create a vector to store these objects in, and then save the index into this vector using this method.
void dam_setIP_hstmt(
     long hstmt,
     long ip_hstmt_index)
Table 237. Parameters for dam_setIP_hstmt
Parameter
Type
Description
INPUT
hstmt
long
The statement handle.
ip_hstmt_index
long
An index into a vector, into which is saved the object allocated by the IP for storing information at statement level.

See also

*dam_getIP_hstmt