Skip Headers
Oracle® Objects for OLE C++ Class Library Developer's Guide
10g Release 2 (10.2)

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

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