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.

iv<br />

Data Manipulation LanguageSQL Statements ......................................................................... 1-6<br />

Queries ........................................................................................................................................... 1-6<br />

Overview of PL/SQL .......................................................................................................................... 1-7<br />

Special OCCI/SQL Terms.................................................................................................................. 1-8<br />

Object Support .................................................................................................................................... 1-9<br />

Client-Side Object Cache ............................................................................................................. 1-9<br />

Runtime Environment for Objects............................................................................................ 1-10<br />

Associative and Navigational <strong>Interface</strong>s................................................................................. 1-10<br />

Metadata Class ............................................................................................................................ 1-11<br />

Object Type Translator Utility .................................................................................................. 1-11<br />

2 Relational Programming<br />

Connecting to a Database.................................................................................................................. 2-2<br />

Creating and Terminating an Environment ............................................................................. 2-2<br />

Opening and Closing a Connection ........................................................................................... 2-3<br />

Creating a Connection Pool......................................................................................................... 2-3<br />

Executing SQL DDL and DML Statements ................................................................................... 2-6<br />

Creating a Statement Handle ...................................................................................................... 2-6<br />

Creating a Statement Handle to Execute SQL Commands..................................................... 2-6<br />

Reusing a Statement Handle ....................................................................................................... 2-7<br />

Terminating a Statement Handle ............................................................................................... 2-8<br />

Types of SQL Statements in the OCCI Environment .................................................................. 2-8<br />

Standard Statements..................................................................................................................... 2-9<br />

Parameterized Statements ........................................................................................................... 2-9<br />

<strong>Call</strong>able Statements .................................................................................................................... 2-10<br />

Streamed Reads and Writes ...................................................................................................... 2-12<br />

Modifying Rows Iteratively ...................................................................................................... 2-12<br />

Executing SQL Queries.................................................................................................................... 2-13<br />

Result Set...................................................................................................................................... 2-14<br />

Specifying the Query.................................................................................................................. 2-15<br />

Optimizing Performance by Setting Prefetch Count............................................................. 2-15<br />

Executing Statements Dynamically............................................................................................... 2-16<br />

Status Definitions........................................................................................................................ 2-17<br />

Committing a Transaction ............................................................................................................... 2-20<br />

Error Handling................................................................................................................................... 2-20

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

Saved successfully!

Ooh no, something went wrong!