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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

ResultSet Class<br />

getCurrentStreamColumn()<br />

getCurrentStreamRow()<br />

getCursor()<br />

Syntax<br />

vector getColumnListMetaData() const;<br />

If the result set has any input Stream parameters, this method returns the column<br />

index of the current input Stream that must be read. If no output Stream needs to<br />

be read, or there are no input Stream columns in the result set, this method returns<br />

0. Returns the column index of the current input Stream column that must be read.<br />

Syntax<br />

unsigned int getCurrentStreamColumn() const;<br />

If the result has any input Streams, this method returns the current row of the<br />

result set that is being processed by OCCI. If this method is called after all the rows<br />

in the set of array of rows have been processed, it returns 0. Returns the row<br />

number of the current row that is being processed. The first row is numbered 1 and<br />

so on.<br />

Syntax<br />

unsigned int getCurrentStreamRow() const;<br />

Get the nested cursor as an ResultSet. Data can be fetched from this result set. A<br />

nested cursor results from a nested query with a CURSOR(SELECT ... ) clause.<br />

SELECT ename, CURSOR(SELECT dname, loc FROM dept) FROM emp WHERE ename =<br />

’JONES’<br />

Note that if there are multiple REF CURSORs being returned, data from each cursor<br />

must be completely fetched before retrieving the next REF CURSOR and starting<br />

fetch on it. Returns A ResultSet for the nested cursor.<br />

Syntax<br />

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

8-148 <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!