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.

Attribute Reference<br />

.<br />

.<br />

/* Create a statement and associate it with a select clause */<br />

string sqlStmt="SELECT * FROM EMPLOYEES";<br />

Statement *stmt=conn->createStatement(sqlStmt);<br />

/* Execute the statement to obtain a ResultSet */<br />

ResultSet *rset=stmt->executeQuery();<br />

/* Obtain the metadata about the select list */<br />

vectorcmd=rset->getColumnListMetaData();<br />

Attribute Reference<br />

/* The metadata is a column list and each element is a column metaData */<br />

int dataType=cmd[i].getInt(MetaData::ATTR_DATA_TYPE);<br />

.<br />

.<br />

.<br />

The getMetaData method is called for the ATTR_COLLECTION_ELEMENT<br />

attribute only.<br />

This section describes the attributes belonging to schema and subschema objects.<br />

The following attribute groupings are presented:<br />

■ Parameter Attributes<br />

■ Table and View Attributes<br />

■ Procedure, Function, and Subprogram Attributes<br />

■ Package Attributes<br />

■ Type Attributes<br />

■ Type Attribute Attributes<br />

■ Type Method Attributes<br />

■ Collection Attributes<br />

■ Synonym Attributes<br />

■ Sequence Attributes<br />

■ Column Attributes<br />

Metadata 6-9

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

Saved successfully!

Ooh no, something went wrong!