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.

getAttributeType()<br />

getBoolean()<br />

getInt()<br />

Parameters<br />

attributenum<br />

The number of the attribute for which the attribute ID is to be returned.<br />

This method returns the attribute type (NUMBER, INT, . . . ) of the attribute<br />

represented by attribute number specified.<br />

Syntax<br />

Type getAttributeType(unsigned int attributenum) const;<br />

Parameters<br />

attributenum<br />

The number of the attribute for which the attribute type is to be returned.<br />

MetaData Class<br />

This method returns the value of the attribute as a <strong>C++</strong> boolean. If the value is a<br />

SQL null, the result is false.<br />

Syntax<br />

bool getBoolean(MetaData::AttrId attrid) const;<br />

Parameters<br />

attrid<br />

The attribute ID.<br />

This method returns the value of the attribute as a <strong>C++</strong> int. If the value is SQL null,<br />

the result is 0.<br />

Syntax<br />

int getInt(MetaData::AttrId attrid) const;<br />

OCCI Classes and Methods 8-97

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

Saved successfully!

Ooh no, something went wrong!