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.

Null and Truncated Data........................................................................................................... 2-21<br />

Advanced Relational Techniques .................................................................................................. 2-23<br />

Utilizing a Shared Server Environment .................................................................................. 2-23<br />

Optimizing Performance ........................................................................................................... 2-27<br />

3 Object Programming<br />

Overview of Object Programming .................................................................................................. 3-2<br />

Working with Objects in OCCI........................................................................................................ 3-2<br />

Persistent Objects.......................................................................................................................... 3-3<br />

Transient Objects .......................................................................................................................... 3-4<br />

Values ............................................................................................................................................. 3-5<br />

Representing Objects in <strong>C++</strong> Applications................................................................................... 3-5<br />

Creating Persistent and Transient Objects................................................................................ 3-5<br />

Creating Object Representations using the OTT Utility ......................................................... 3-6<br />

Developing an OCCI Object Application...................................................................................... 3-7<br />

Basic Object Program Structure.................................................................................................. 3-7<br />

Basic Object Operational Flow.................................................................................................... 3-8<br />

Overview of Associative Access .................................................................................................... 3-13<br />

Using SQL to Access Objects .................................................................................................... 3-13<br />

Inserting and Modifying Values............................................................................................... 3-14<br />

Overview of Navigational Access.................................................................................................. 3-14<br />

Retrieving an Object Reference (REF) from the Database Server........................................ 3-15<br />

Pinning an Object........................................................................................................................ 3-15<br />

Manipulating Object Attributes................................................................................................ 3-16<br />

Marking Objects and Flushing Changes ................................................................................. 3-17<br />

Marking an Object as Modified (Dirty) ................................................................................... 3-17<br />

Recording Changes in the Database ........................................................................................ 3-17<br />

Garbage Collection in the Object Cache.................................................................................. 3-18<br />

Transactional Consistency of References ................................................................................ 3-18<br />

Overview of Complex Object Retrieval ....................................................................................... 3-19<br />

Retrieving Complex Objects ..................................................................................................... 3-20<br />

Prefetching Complex Objects.................................................................................................... 3-22<br />

Working with Collections ............................................................................................................... 3-22<br />

Fetching Embedded Objects...................................................................................................... 3-23<br />

Nullness ....................................................................................................................................... 3-24<br />

v

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

Saved successfully!

Ooh no, something went wrong!