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 />

status()<br />

sqltype<br />

sqltype of the parameter/column.<br />

It is recommened to use setVectorOfRefs insetad of specialised function setVector<br />

for Ref.<br />

Returns the current status of the statement. Useful when there is streamed data to<br />

be written (or read). Other methods such as getCurrentStreamParam and<br />

getCurrentIteration can be called to find out the streamed parameter that<br />

needs to be written and the current iteration number for an iterative or array<br />

execute.<br />

The status method can be called repeatedly to find out the status of the<br />

execution. Returns one of following:<br />

■ RESULT_SET_AVAILABLE-- call getResultSet()<br />

■ UPDATE_COUNT_AVAILABLE -- call getUpdateCount()<br />

■ NEEDS_STREAM_DATA -- call getCurrentStream() and<br />

getCurrentIteration(), and write stream<br />

■ STREAM_DATA_AVAILABLE -- call getCurrentStream() and<br />

getCurrentIteration(), and read stream<br />

■ PREPARED<br />

■ UNPREPARED<br />

Syntax<br />

Status status() const;<br />

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