Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

2.15 Contents of RWDBSystemHandle

The RWDBConnection::systemHandle() method returns a pointer to a base class from which a family of implementation-specific classes are derived. To use the database API directly, you can downcast this pointer to the appropriate type, and use its implementation-specific features. Naturally, this usage reduces an application's portability.

For the Oracle access library, the implementation-specific system handle has the datatype RWDBOracleSystemHandle. It contains a pointer to the Logon Data Area (LDA) and to the Host Data Area (HDA). These provide access to the server. The handle also maintains control parameters used when accessing the database. The production of a new RWDBConnection creates a new RWDBOracleSystemHandle. The handle starts the session and maintains the LDA and HDA. The following functions may be used to retrieve these components:


NOTE: The following function has been eliminated:
Hda_Def* hda();
The type Hda_Def is not available on all clients and is functionally identical to ub1.

2.15.1 Obsolete Functions

The following functions were made obsolete by changes in DBTools.h++ 4.0. These functions have been removed from the API:

The fetchSize() functions became redundant when caches were added to RWDBReader. Please see the caching chapter in the User's Guide for information on how to alter the size of a fetch. Existing programs that use fetchSize() should change the cache size of their RWDBReaders instead.

The function parameterSize() was superseded by the function maximumNumberOfParameters(). Calls to parameterSize() can safely be replaced with equivalent calls to maximumNumberOfParameters().

The function maxStoredProcParameterSize() was superseded by the function maximumBlobSize(). Calls to maxStoredProcParameterSize() can safely be replaced with equivalent calls to maximumBlobSize().

2.15.2 Number of Parameters

Class RWDBOracleSystemHandle allows you to set and to access the maximum on the number of parameters in a stored procedure. The functions to use are:

The maximum number of parameters is used to allocate buffers for the call to odessp. The default value is 32.

2.15.3 Blob Size

Class RWDBOracleSystemHandle allows you to set and access the size of the buffer used for retrieving LONG and LONG RAW data. The functions to use are:

The default blob size is 32k - 1 bytes.

2.15.4 Using RWDBSytemHandle

If it is necessary for your application to make calls directly to OCI, proceed as in the following example:

Please be aware that there are complications associated with making direct OCI calls, which do not use the internal logic of the Oracle access library.

Also note that your application must be compiled with an include path to the Oracle library include files.


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.