Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

2.16 Contents of RWDBEnvironmentHandle

The DBTools.h++ Sybase CT access library returns an environment handle that has the type RWDBSybCtLibEnvironmentHandle. This handle provides methods that an application can use to set or retrieve certain connect time and configuration parameters. In addition, this handle contains the CS_CONTEXT pointer:

CS_CONTEXT* cscontext() const;

This pointer can be used to set or retrieve configuration parameters that are not directly supported by the environment handle.

2.16.1 Login Timeout

The loginTimeout method defines the length of time in seconds that the Sybase Client-Library waits for a login response when making a connection attempt:

In the Sybase Client-Library documentation, the default value is 60 seconds.

2.16.2 Timeout

The timeout method defines the length of time in seconds that the Sybase Client-Library waits for a server response when making a request:

In the Sybase Client-Library documentation, the default is an infinite timeout period. The application can set this value any time. It takes effect for all open connections immediately upon being called.

2.16.3 Maximum Connections

The maximumConnections method defines the maximum number of simultaneously open connections that an application can have:

The default value is 25, according to the Sybase Client-Library documentation. This method has no effect if the maximum number of connections being set is less than the number of currently open connections. This behavior is determined by Sybase, not the access library.

2.16.4 Text Limit

The textLimit method defines the length in bytes of the longest text or image value an application is prepared to receive:

The Sybase Client-Library will read but ignore any part of the text or image value that goes over the limit defined by this function. Refer to the Sybase Client-Library documentation for more information.


NOTE: This method affects only the client side text limit, not the server side text limit for this connection. To change the server side limit, you must call ct.option() directly.

2.16.5 Expose Hidden Keys

The exposeHiddenKeys method determines whether the Sybase Client-Library exposes any hidden keys that are part of a result set:

Please see the Sybase Client-Library documentation for hidden keys semantics. The default behavior of the Sybase Client-Library is not to expose any hidden keys. Setting it to TRUE will change the default behavior.

2.16.6 Foreign Keys from Views

The DBTools.h++ Sybase CT access library has not implemented the virtual functions:

Both functions are therefore no-ops which return false.

2.16.7 Using RWDBSybCtLibEnvironmentHandle

The following example shows how to gain access to RWDBSybCtLibEnvironmentHandle. Note that the application must be compiled with an include path to the Sybase Client-Library include files.


Previous fileTop of DocumentContentsIndexNext file

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