| Oracle C++ Call Interface Programmer's Guide Release 2 (9.2) Part Number A96583-01 |
|
This chapter describes the OCCI classes and methods for C++.
The topics discussed include:
Table 8-1 provides a brief description of all the OCCI classes. This section is followed by detailed descriptions of each class and its methods.
OCCI classes are defined in the oracle::occi namespace. An OCCI class name within the oracle::occi namespace can be referred to in one of three ways:
::) for each OCCI class name.using declaration for each OCCI class name.using directive for all OCCI class name.The scope resolution operator (::) is used to explicitly specify the oracle::occi namespace and the OCCI class name. To declare myConnection, a Connection object, using the scope resolution operator, you would use the following syntax:
oracle::occi::Connection myConnection;
The using declaration is used when the OCCI class name can be used in a compilation unit without conflict. To declare the OCCI class name in the oracle::occi namespace, you would use the following syntax:
using oracle::occi::Connection;
Connection now refers to oracle::occi::Connection, and myConnection can be declared as:
Connection myConnection;
The using directive is used when all OCCI class names can be used in a compilation unit without conflict. To declare all OCCI class names in the oracle::occi namespace, you would use the following syntax:
using oracle::occi;
Then, just as with the using declaration, the following declaration would now refer to the OCCI class Connection:
Connection myConnection;
|
![]() Copyright © 2001, 2002 Oracle Corporation. All Rights Reserved. |
|