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

setUInt()<br />

setVector()<br />

Set a parameter to a <strong>C++</strong> unsigned int value.<br />

Syntax<br />

void setUInt(unsigned int paramIndex,<br />

unsigned int x);<br />

Parameters<br />

paramIndex<br />

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

x<br />

The parameter value.<br />

This method sets a parameter to a vector. This method should be used when the<br />

type is a collection type -- varrays or nested tables. The SQL Type of the elements in<br />

the collection should be compatible with the type of the vector. For example, if the<br />

collection is a varray of VARCHAR2, use vector<br />

Syntax<br />

There are variants of syntax:<br />

void setVector(Statement *stmt,<br />

unsigned int paramIndex,<br />

vector &vect,<br />

string sqltype);<br />

void setVector(Statement *stmt,<br />

unsigned int paramIndex,<br />

vector &vect,<br />

string sqltype);<br />

void setVector(Statement *stmt,<br />

unsigned int paramIndex,<br />

vector &vect,<br />

string sqltype);<br />

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