Definition at line 3272 of file SQLDBC.h.
SQLDBC::SQLDBC_Environment::SQLDBC_Environment | ( | SQLDBC_IRuntime * | runtime | ) |
Creates a new SQLDBC_Environment, using the provided interface to the runtime environment.
runtime | The runtime to be used, must not be 0. Implement the interface using SQLDBC_IRuntime or use the SQLDBC::GetClientRuntime() in a client application to obtain a valid argument for this constructor. |
SQLDBC::SQLDBC_Environment::~SQLDBC_Environment | ( | ) |
The destructor.
SQLDBC_Connection* SQLDBC::SQLDBC_Environment::createConnection | ( | ) | const |
Creates a new SQLDBC_Connection object.
SQLDBC_Connection* SQLDBC::SQLDBC_Environment::createConnection | ( | SAPDBMem_IRawAllocator & | allocator | ) | const |
Creates a new SQLDBC_Connection object.
void SQLDBC::SQLDBC_Environment::releaseConnection | ( | SQLDBC_Connection * | connection | ) | const |
Closes a SQLDBC_Connection.
connection | The SQLDBC_Connection to be closed. |
const char* SQLDBC::SQLDBC_Environment::getLibraryVersion | ( | ) |
Returns the version of used SQLDBC runtime.
This is the version of the used SQLDBC library. The version of the loaded runtime may differ from the version inidacted in the used header. It is our aim that newer versions of the runtime will run with old applications without the need to be re-compiling.
const char* SQLDBC::SQLDBC_Environment::getSDKVersion | ( | ) | const [inline] |
SAPDBMem_IRawAllocator& SQLDBC::SQLDBC_Environment::getAllocator | ( | ) |
Requests the allocator associated to this connection item.
void SQLDBC::SQLDBC_Environment::setTraceOptions | ( | const SQLDBC_ConnectProperties & | traceoptions | ) |
Sets tracing options.
Take care that the trace options may be set process-wide, not only for the this environment instance. Also, some options may be ignored if they are not applicable to the current runtime environment (e.g. setting the name of trace output file).
traceoptions | The options to be set in the trace. The following options are supported:
|
void SQLDBC::SQLDBC_Environment::getTraceOptions | ( | SQLDBC_ConnectProperties & | traceoptions | ) |
Retrieves the current tracing options.
traceoptions | The options to be set in the trace. See setTraceOptions for a descriptions of the supported trace options. |