MDBL Library
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Friends
CODBCSource Class Reference

#include <ODBCSource.hpp>

Inheritance diagram for CODBCSource:
CSQLSource

List of all members.

Public Member Functions

 CODBCSource ()
virtual ~CODBCSource ()
virtual void Open (const tchar *pszConnection)
virtual void Close ()
virtual bool IsOpen () const
virtual CSQLParamsCreateParams (const tchar *pszStmt, size_t nParams)
virtual void ExecStmt (const tchar *pszStmt)
virtual void ExecStmt (const tchar *pszStmt, CSQLParams &oParams)
virtual CSQLCursorExecQuery (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 &)
CODBCSourceoperator= (const CODBCSource &)

Friends

class CODBCCursor

Constructor & Destructor Documentation

CODBCSource::CODBCSource ( const CODBCSource ) [private]

Member Function Documentation

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]

Friends And Related Function Documentation

friend class CODBCCursor [friend]

Member Data Documentation

SQLHENV CODBCSource::m_hEnv [protected]
SQLHDBC CODBCSource::m_hDBC [protected]
bool CODBCSource::m_bInTrans [protected]

The documentation for this class was generated from the following files: