odbc::DriverManager Class Reference

List of all members.

Detailed Description

The DriverManager.

Definition at line 100 of file drivermanager.h.

Static Public Member Functions

static ConnectiongetConnection (const ODBCXX_STRING &connectString)
 Opens a connection using an ODBC connect string.
static ConnectiongetConnection (const ODBCXX_STRING &dsn, const ODBCXX_STRING &user, const ODBCXX_STRING &password)
 Opens a connection by it's DSN, a username and a password.
static ConnectiongetConnection (const ODBCXX_STRING &connectString)
 Opens a connection using an ODBC connect string.
static ConnectiongetConnection (const ODBCXX_STRING &dsn, const ODBCXX_STRING &user, const ODBCXX_STRING &password)
 Opens a connection by it's DSN, a username and a password.
static DataSourceListgetDataSources ()
 Fetch a list of all available data sources.
static DataSourceListgetDataSources ()
 Fetch a list of all available data sources.
static DriverListgetDrivers ()
 Fetch a list of the available drivers.
static DriverListgetDrivers ()
 Fetch a list of the available drivers.
static int getLoginTimeout ()
 Gets the current login timeout in seconds.
static int getLoginTimeout ()
 Gets the current login timeout in seconds.
static void setLoginTimeout (int seconds)
 Sets the login timeout in seconds.
static void setLoginTimeout (int seconds)
 Sets the login timeout in seconds.
static void shutdown ()
 Should be called before an application is to exit and after all connections have been closed.
static void shutdown ()
 Should be called before an application is to exit and after all connections have been closed.


Member Function Documentation

static Connection* odbc::DriverManager::getConnection ( const ODBCXX_STRING &  connectString  )  [static]

Opens a connection using an ODBC connect string.

Parameters:
connectString Usually something like "DSN=db;uid=user;pwd=password"

static Connection* odbc::DriverManager::getConnection ( const ODBCXX_STRING &  connectString  )  [static]

Opens a connection using an ODBC connect string.

Parameters:
connectString Usually something like "DSN=db;uid=user;pwd=password"

static int odbc::DriverManager::getLoginTimeout (  )  [static]

Gets the current login timeout in seconds.

Returns:
The current login timeout in seconds, or 0 if disabled.

static int odbc::DriverManager::getLoginTimeout (  )  [static]

Gets the current login timeout in seconds.

Returns:
The current login timeout in seconds, or 0 if disabled.

static void odbc::DriverManager::setLoginTimeout ( int  seconds  )  [static]

Sets the login timeout in seconds.

Parameters:
seconds The number of seconds to wait for a connection to open. Set to 0 to disable.

static void odbc::DriverManager::setLoginTimeout ( int  seconds  )  [static]

Sets the login timeout in seconds.

Parameters:
seconds The number of seconds to wait for a connection to open. Set to 0 to disable.


The documentation for this class was generated from the following files:
GridLAB-DTM Version 1.0
An open-source project initiated by the US Department of Energy