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.

Describing Database Metadata<br />

For example, consider the typical case of describing a table and its contents. You call<br />

the getMetaData method from the connection, passing the name of the table to be<br />

described. The MetaData object returned contains the table information. Since you<br />

are aware of the type of the object that you want to describe (table, column, type,<br />

collection, function, procedure, and so on), you can obtain the attribute list as<br />

shown in Table 6–1. You can retrieve the value into a variable of the type specified<br />

in the table by calling the corresponding get*() method.<br />

Table 6–1 Attribute Groupings<br />

Attribute Type Description<br />

Parameter Attributes on<br />

page 6-10<br />

Table and View Attributes on<br />

page 6-11<br />

Procedure, Function, and<br />

Subprogram Attributes on<br />

page 6-12<br />

Package Attributes on<br />

page 6-13<br />

6-4 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong><br />

Attributes belonging to all elements<br />

Attributes belonging to tables and views<br />

Attributes belonging to procedures, functions, and<br />

package subprograms<br />

Attributes belonging to packages<br />

Type Attributes on page 6-13 Attributes belonging to types<br />

Type Attribute Attributes on Attributes belonging to type attributes<br />

page 6-15<br />

Type Method Attributes on Attributes belonging to type methods<br />

page 6-16<br />

Collection Attributes on Attributes belonging to collection types<br />

page 6-17<br />

Synonym Attributes on Attributes belonging to synonyms<br />

page 6-19<br />

Sequence Attributes on Attributes belonging to sequences<br />

page 6-19<br />

Column Attributes on Attributes belonging to columns of tables or views<br />

page 6-20<br />

Argument and Result Attributes belonging to arguments / results<br />

Attributes on page 6-21<br />

List Attributes on page 6-23 Attributes that designate the list type<br />

Schema Attributes on<br />

page 6-24<br />

Attributes specific to schemas

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

Saved successfully!

Ooh no, something went wrong!