MDBL Library
|
#include <ODBCSource.hpp>
Public Member Functions | |
CODBCSource () | |
virtual | ~CODBCSource () |
virtual void | Open (const tchar *pszConnection) |
virtual void | Close () |
virtual bool | IsOpen () const |
virtual CSQLParams * | CreateParams (const tchar *pszStmt, size_t nParams) |
virtual void | ExecStmt (const tchar *pszStmt) |
virtual void | ExecStmt (const tchar *pszStmt, CSQLParams &oParams) |
virtual CSQLCursor * | ExecQuery (const tchar *pszQuery) |
virtual void | ExecQuery (const tchar *pszQuery, CODBCCursor &oCursor) |
virtual bool | InTrans () |
virtual void | BeginTrans () |
virtual void | CommitTrans () |
virtual void | RollbackTrans () |
Static Public Member Functions | |
static COLTYPE | MDBType (SQLSMALLINT nODBCType) |
static SQLSMALLINT | ODBCType (COLTYPE eMDBType) |
static size_t | BufferSize (COLTYPE eColType, size_t nColSize) |
static size_t | ColumnSize (COLTYPE eColType, size_t nColSize) |
static void | InstalledDrivers (CStrArray &astrDrivers) |
static void | InstalledSources (CStrArray &astrSources) |
Protected Attributes | |
SQLHENV | m_hEnv |
SQLHDBC | m_hDBC |
bool | m_bInTrans |
Private Member Functions | |
CODBCSource (const CODBCSource &) | |
CODBCSource & | operator= (const CODBCSource &) |
Friends | |
class | CODBCCursor |
CODBCSource::~CODBCSource | ( | ) | [virtual] |
CODBCSource::CODBCSource | ( | const CODBCSource & | ) | [private] |
void CODBCSource::Open | ( | const tchar * | pszConnection | ) | [virtual] |
Implements CSQLSource.
void CODBCSource::Close | ( | ) | [virtual] |
Implements CSQLSource.
bool CODBCSource::IsOpen | ( | ) | const [virtual] |
Implements CSQLSource.
CSQLParams * CODBCSource::CreateParams | ( | const tchar * | pszStmt, |
size_t | nParams | ||
) | [virtual] |
Implements CSQLSource.
void CODBCSource::ExecStmt | ( | const tchar * | pszStmt | ) | [virtual] |
Implements CSQLSource.
void CODBCSource::ExecStmt | ( | const tchar * | pszStmt, |
CSQLParams & | oParams | ||
) | [virtual] |
Implements CSQLSource.
CSQLCursor * CODBCSource::ExecQuery | ( | const tchar * | pszQuery | ) | [virtual] |
Implements CSQLSource.
void CODBCSource::ExecQuery | ( | const tchar * | pszQuery, |
CODBCCursor & | oCursor | ||
) | [virtual] |
bool CODBCSource::InTrans | ( | ) | [virtual] |
Implements CSQLSource.
void CODBCSource::BeginTrans | ( | ) | [virtual] |
Implements CSQLSource.
void CODBCSource::CommitTrans | ( | ) | [virtual] |
Implements CSQLSource.
void CODBCSource::RollbackTrans | ( | ) | [virtual] |
Implements CSQLSource.
COLTYPE CODBCSource::MDBType | ( | SQLSMALLINT | nODBCType | ) | [static] |
SQLSMALLINT CODBCSource::ODBCType | ( | COLTYPE | eMDBType | ) | [static] |
size_t CODBCSource::BufferSize | ( | COLTYPE | eColType, |
size_t | nColSize | ||
) | [static] |
size_t CODBCSource::ColumnSize | ( | COLTYPE | eColType, |
size_t | nColSize | ||
) | [static] |
void CODBCSource::InstalledDrivers | ( | CStrArray & | astrDrivers | ) | [static] |
void CODBCSource::InstalledSources | ( | CStrArray & | astrSources | ) | [static] |
CODBCSource& CODBCSource::operator= | ( | const CODBCSource & | ) | [private] |
friend class CODBCCursor [friend] |
SQLHENV CODBCSource::m_hEnv [protected] |
SQLHDBC CODBCSource::m_hDBC [protected] |
bool CODBCSource::m_bInTrans [protected] |