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.

Object Support<br />

Multiple applications running against the same server will each have their own<br />

object cache. The client-side object cache tracks the objects that are currently in<br />

memory, maintains references to objects, manages automatic object swapping and<br />

tracks the meta-attributes or type information about objects. The client-side object<br />

cache provides the following benefits:<br />

■ Improved application performance by reducing the number of client/server<br />

round-trips required to fetch and operate on objects<br />

■ Enhanced scalability by supporting object swapping from the client-side cache<br />

■ Improved concurrency by supporting object-level locking<br />

Runtime Environment for Objects<br />

OCCI provides a runtime environment for objects that offers a set of methods for<br />

managing how <strong>Oracle</strong> objects are used on the client side. These methods provide<br />

the necessary functionality for performing these tasks:<br />

■ Connecting to an <strong>Oracle</strong> database server in order to access its object<br />

functionality<br />

■ Allocating the client-side object cache and tuning its parameters<br />

■ Retrieving error and warning messages<br />

■ Controlling transactions that access objects in the database<br />

■ Associatively accessing objects through SQL<br />

■ Describing a PL/SQL procedure or function whose parameters or result are of<br />

<strong>Oracle</strong> object type system types<br />

Associative and Navigational <strong>Interface</strong>s<br />

Applications that use OCCI can access objects in the database through several types<br />

of interfaces:<br />

■ SQL SELECT, INSERT, and UPDATE statements<br />

■ <strong>C++</strong> pointers and references to access objects in the client-side object cache by<br />

traversing the corresponding references<br />

OCCI provides a set of methods to support object manipulation by using SQL<br />

SELECT, INSERT, and UPDATE statements. To access <strong>Oracle</strong> objects, these SQL<br />

statements use a consistent set of steps as if they were accessing relational tables.<br />

OCCI provides methods to access objects by using SQL statements for:<br />

1-10 <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!