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.

Overview of Metadata<br />

Overview of Metadata<br />

Database objects have various attributes that describe them, and you obtain<br />

information about a particular schema object by performing a DESCRIBE operation<br />

for the object. The result can be accessed as an object of the Metadata class in that<br />

you can use class methods to get the actual values of an object. You accomplish this<br />

by passing object attributes as arguments to the various methods of the Metadata<br />

class.<br />

You can perform an explicit DESCRIBE operation on the database as a whole, on the<br />

types and properties of the columns contained in a ResultSet class or on any of<br />

the following schema and subschema objects:<br />

■ Tables<br />

■ Views<br />

■ Procedures<br />

■ Functions<br />

■ Packages<br />

■ Types<br />

■ Type Attributes<br />

■ Type Methods<br />

■ Collections<br />

■ Synonyms<br />

■ Sequences<br />

■ Columns<br />

■ Argument<br />

■ Results<br />

■ Lists<br />

You must specify the type of the attribute you are looking for. By using the<br />

getAttributeCount, getAttributeId, and getAttributeType methods of<br />

the MetaData class, you can scan through each available attribute.<br />

All DESCRIBE information is cached until the last reference to it is deleted. Users<br />

are in this way prevented from accidentally trying to access DESCRIBE information<br />

that is already freed.<br />

6-2 <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!