Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SQLDBC::SQLDBC_ConnectProperties Class Reference

List of all members.

Detailed Description

Specification of connection options.

Together with the command for opening a database session you can set several options. The following options are possible

OptionData TypeDescription
COMPNAME VARCHAR(64) The component name used to initialise the runtime environment. If it is a runtime library, the name must start with an "R". Otherwise the system considers it an application.
APPLICATION CHAR(3) The application to be connected to the database. Possible values are: CAL | CPC | CON | DOM | LOA | ODB | QUE | SQL | TPL| UTI| XCI
APPVERSION NUMBER(5) Version of the application. This is computed: major * 10000 + minor * 100 + correction_level. E.g. version 7.4.04 has the version identifier "70404".
SQLMODE VARCHAR The SQL Mode. Possible values are: INTERNAL | ORACLE | ANSI | DB2.
UNICODE BOOLEAN TRUE | 1, the connection is an unicode (UCS2) client or FALSE | 0 it is an ASCII client.
TIMEOUT NUMBER The maximum allowed time of inactivity after which the connection to the database is closed by the system.
ISOLATIONLEVEL NUMBER The ISOLATION LEVEL specifies whether and how shared locks and exclusive locks are implicitly requested or released. For possible values see: setTransactionIsolation()
PACKETCOUNT NUMBER | STRING The number of different request packets used for the connection. Enter a positive number or UNLIMITED for an unlimited number of request packets
STATEMENTCACHESIZE NUMBER | STRING The number of prepared statements to be cached for the connection for re-use. Possible values are: <n>: desired number of statements 0: no statements are cached UNLIMITED: unlimited number of statements is cached.
CURSORPREFIX STRING The prefix to use for result tables that are automatically named.

Definition at line 2645 of file SQLDBC.h.

Public Member Functions


Constructor & Destructor Documentation

SQLDBC::SQLDBC_ConnectProperties::SQLDBC_ConnectProperties  ) 
 

Creates an empty set of options.

A default allocator is used.

SQLDBC::SQLDBC_ConnectProperties::SQLDBC_ConnectProperties const SQLDBC_ConnectProperties copy  ) 
 

The copy constructor.

Parameters:
copy The options be copied.

SQLDBC::SQLDBC_ConnectProperties::SQLDBC_ConnectProperties SAPDBMem_IRawAllocator &  allocator  ) 
 

SQLDBC::SQLDBC_ConnectProperties::~SQLDBC_ConnectProperties  ) 
 

The destructor.


Member Function Documentation

const char* SQLDBC::SQLDBC_ConnectProperties::getProperty const char *  key,
const char *  defaultvalue = 0
const
 

Retrieves an option.

Parameters:
key The option key to be requested
defaultvalue The value to be returned. If the option is not found the default value is returned.
Returns:
The value found in the options set, or the default value specified.

void SQLDBC::SQLDBC_ConnectProperties::setProperty const char *  key,
const char *  value
 

Sets an option.

Parameters:
key The option to be set (ASCII string)
value The option value to be set (ASCII string)