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 />

Client-Side Object Cache<br />

Object Support<br />

program. In this guide, specifying the placeholder variable for data is called a bind<br />

operation. For input variables, this is called an in bind operation. For output<br />

variables, this is called an out bind operation.<br />

OCCI has facilities for working with object types and objects. An object type is a<br />

user-defined data structure representing an abstraction of a real-world entity. For<br />

example, the database might contain a definition of a person object. That object<br />

type might have attributes—first_name, last_name, and age—which represent<br />

a person’s identifying characteristics.<br />

The object type definition serves as the basis for creating objects, which represent<br />

instances of the object type. By using the object type as a structural definition, a<br />

person object could be created with the attributes John, Bonivento, and 30.<br />

Object types may also contain methods—programmatic functions that represent the<br />

behavior of that object type.<br />

OCCI provides a comprehensive API for programmers seeking to use the <strong>Oracle</strong><br />

database server’s object capabilities. These features can be divided into several<br />

major categories:<br />

■ Client-side object cache<br />

■ Runtime environment for objects<br />

■ Associative and navigational interfaces to access and manipulate objects<br />

■ Metadata class to describe object type metadata<br />

■ Object Type Translator (OTT) utility, which maps internal <strong>Oracle</strong> schema<br />

information to client-side language bind variables<br />

See Also:<br />

■ <strong>Oracle</strong>9i Database Concepts and<br />

■ <strong>Oracle</strong>9i Application Developer’s <strong>Guide</strong> - Object-Relational Features<br />

for a more detailed explanation of object types and objects<br />

The object cache is a client-side memory buffer that provides lookup and memory<br />

management support for objects. It stores and tracks objects which have been<br />

fetched by an OCCI application from the server to the client side. The client-side<br />

object cache is created when the OCCI environment is initialized in object mode.<br />

Introduction to OCCI 1-9

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

Saved successfully!

Ooh no, something went wrong!