rwlogo
SourcePro C++ 12.0

SourcePro® C++ API Reference Guide



   SourcePro C++
Documentation Home

RWDBDB2CLILibSystemHandle Class Reference
[DB Access Module for DB2 CLI]

Encapsulates a single SQLHDBC used by the RWDBConnection. More...

#include <rw/db/db2clisrc/db2sysh.h>

Inheritance diagram for RWDBDB2CLILibSystemHandle:
RWDBSystemHandle

List of all members.

Public Member Functions

SQLHDBC hdbc () const

Detailed Description

Class RWDBDB2CLILibSystemHandle contains the SQLHDBC used by the RWDBConnection.

Note:
Use of this class reduces an application's portability.
When using runtime loading of the DB2 CLI client, the SQLHDBC is not available. For information, see the section "Using Static Libraries with DB2 CLI Access Module and Microsoft SQL Server Module" in the DB Access Module for DB2 CLI User's Guide.

Synopsis

 #include <rw/db/db2clisrc/db2sysh.h>
 
 RWDBDB2CLILibSystemHandle* sys =
       (RWDBDB2CLILibSystemHandle*)myConnection.systemHandle();

Examples

If it is necessary for your application to make calls directly to the DB2 CLI, proceed as in the following example.

 #include <rw/db/db2clisrc/db2sysh.h>
 
 RWDBDB2CLILibSystemHandle* sys =
       (RWDBDB2CLILibSystemHandle*)myConnection.systemHandle(); 

 SQLHDBC hdbc = sys->hdbc();
 // Use hdbc for DB2 CLI calls.

Member Function Documentation

SQLHDBC RWDBDB2CLILibSystemHandle::hdbc (  )  const

Returns the SQLHDBC encapsulated by the respective RWDBConnection.

 All Classes Functions Variables Typedefs Enumerations Enumerator Friends

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.