Skip Headers

Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 1 (10.1)

Part Number B10119-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

OConnection

A connection object is primarily an internal bookkeeper. Multiple database objects within the same session that use the same connection information (database name, username, and password) share a single connection to the Oracle database. You can use an OConnection object to ask for the database name and connection string that were used to start the connection. OConnection is a subclass of OOracleObject.

You can get OConnection objects, using the GetConnection method, from an OConnectionCollection object, an ODatabase object, or an ODynaset object.

The OConnection class supports the following methods:

Construction and destruction:

OConnection

~OConnection

operator=

Attributes:

operator==

operator!=

IsOpen

Operations:

Close

GetConnectString

GetDatabaseName

GetSession

Error Handling:

ErrorNumber

ErrorReset

GetErrorText

LookupErrorText