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.

6 Metadata<br />

Overview of Metadata ....................................................................................................................... 6-2<br />

Notes on Types and Attributes................................................................................................... 6-3<br />

Describing Database Metadata ........................................................................................................ 6-3<br />

Metatdata Code Examples .......................................................................................................... 6-5<br />

Attribute Reference ............................................................................................................................ 6-9<br />

Parameter Attributes.................................................................................................................. 6-10<br />

Table and View Attributes ........................................................................................................ 6-11<br />

Procedure, Function, and Subprogram Attributes ................................................................ 6-12<br />

Package Attributes...................................................................................................................... 6-13<br />

Type Attributes ........................................................................................................................... 6-13<br />

Type Attribute Attributes.......................................................................................................... 6-15<br />

Type Method Attributes ............................................................................................................ 6-16<br />

Collection Attributes .................................................................................................................. 6-17<br />

Synonym Attributes ................................................................................................................... 6-19<br />

Sequence Attributes ................................................................................................................... 6-19<br />

Column Attributes...................................................................................................................... 6-20<br />

Argument and Result Attributes.............................................................................................. 6-21<br />

List Attributes ............................................................................................................................. 6-23<br />

Schema Attributes ...................................................................................................................... 6-24<br />

Database Attributes.................................................................................................................... 6-24<br />

7 How to Use the Object Type Translator Utility<br />

Overview of the Object Type Translator Utility ........................................................................... 7-2<br />

How to Use the OTT Utility.............................................................................................................. 7-2<br />

Creating Types in the Database ..................................................................................................... 7-10<br />

Invoking the OTT Utility................................................................................................................ 7-10<br />

Specifying OTT Parameters ...................................................................................................... 7-10<br />

Invoking the OTT Utility on the Command Line .................................................................. 7-12<br />

Overview of the INTYPE File......................................................................................................... 7-14<br />

OTT Utility Datatype Mappings ................................................................................................... 7-16<br />

OTT Type Mapping Example for <strong>C++</strong> .................................................................................... 7-23<br />

Overview of the OUTTYPE File..................................................................................................... 7-26<br />

The OTT Utility and OCCI Applications .................................................................................... 7-28<br />

OTT Utility Parameters for <strong>C++</strong>............................................................................................... 7-30<br />

vii

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

Saved successfully!

Ooh no, something went wrong!