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.

vi<br />

Using Object References ................................................................................................................. 3-24<br />

Freeing Objects.................................................................................................................................. 3-25<br />

Type Inheritance................................................................................................................................ 3-25<br />

Substitutability ............................................................................................................................ 3-26<br />

NOT INSTANTIABLE Types and Methods ........................................................................... 3-27<br />

OCCI Support for Type Inheritance......................................................................................... 3-28<br />

OTT Support for Type Inheritance........................................................................................... 3-28<br />

A Sample OCCI Application .......................................................................................................... 3-29<br />

4 Datatypes<br />

Overview of <strong>Oracle</strong> Datatypes ......................................................................................................... 4-2<br />

OCCI Type and Data Conversion .............................................................................................. 4-2<br />

Internal Datatypes .............................................................................................................................. 4-3<br />

Character Strings and Byte Arrays............................................................................................. 4-4<br />

Universal Rowid (UROWID) ...................................................................................................... 4-4<br />

External Datatypes.............................................................................................................................. 4-5<br />

Description of External Datatypes ............................................................................................. 4-8<br />

Data Conversions.............................................................................................................................. 4-20<br />

Data Conversions for LOB Datatypes...................................................................................... 4-22<br />

Data Conversions for Date, Timestamp, and Interval Datatypes........................................ 4-23<br />

5 Introduction to LOBs<br />

Overview of LOBs............................................................................................................................... 5-2<br />

Internal LOBs (BLOBs, CLOBs, and NCLOBs)......................................................................... 5-2<br />

External LOBs (BFILEs)................................................................................................................ 5-3<br />

LOB Values and Locators ............................................................................................................ 5-3<br />

LOB Classes and Methods ................................................................................................................ 5-4<br />

Creating LOBs ............................................................................................................................... 5-7<br />

Opening and Closing LOBs......................................................................................................... 5-8<br />

Reading and Writing LOBs ....................................................................................................... 5-10<br />

Improving Read and Write Performance................................................................................ 5-14<br />

Updating LOBs............................................................................................................................ 5-15<br />

Objects with LOB Attributes.......................................................................................................... 5-16<br />

Persistent Objects with LOB Attributes................................................................................... 5-16<br />

Transient Objects with LOB Attributes ................................................................................... 5-17

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

Saved successfully!

Ooh no, something went wrong!