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

dam_allocResultBuffer

This method creates a result buffer object from the ResultBuffer class and returns it to the IP.
When the buffer is full, it throws a BufferOverflowException exception. When all result rows are added to the buffer or when an exception occurs, the IP should call dam_addResultBufferToTable by passing the ResultBuffer object. If the result buffer is no longer required, the IP can call dam_freeResultBuffer to free the ResultBuffer.
long dam_allocResultBuffer(long hstmt)
Table 131. Parameters for dam_allocResultBuffer
Parameter
Type
Description
INPUT
hstmt
long
The statement handle.
RETURN
long
The handle to a new rowset. A 0 is returned if a rowset could not be allocated.

See also

*dam_addResultBufferToTable
*dam_freeResultBuffer