10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Statement Class<br />

getCurrentStreamIteration()<br />

getCurrentStreamParam()<br />

getCursor()<br />

Syntax<br />

unsigned int getCurrentIteration() const;<br />

Returns the current param stream for which data is available.<br />

Syntax<br />

unsigned int getCurrentStreamIteration() const;<br />

If the prepared statement has any output Stream parameters, this method returns<br />

the parameter index of the current output Stream that must be written. If no<br />

output Stream needs to be written, or there are no output Stream parameters in<br />

the prepared statement, this method returns 0.<br />

Returns the parameter index of the current output Stream parameter that must be<br />

written.<br />

Syntax<br />

unsigned int getCurrentStreamParam() const;<br />

Get the REF CURSOR value of an OUT parameter as a ResultSet. Data can be<br />

fetched from this result set. The OUT parameter must be registered as CURSOR with<br />

the Statement.registerOutParam(int paramIndex, CURSOR) method. Note<br />

that if there are multiple REF CURSORs being returned due to a batched call, data<br />

from each cursor must be completely fetched before retrieving the next REF CURSOR<br />

and starting fetch on it. Returns A ResultSet for the OUT parameter value.<br />

Syntax<br />

ResultSet * getCursor(unsigned int paramIndex);<br />

Parameters<br />

paramIndex<br />

The first parameter is 1, the second is 2, . . . .<br />

8-178 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!