MDBL Library
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
CODBCCursor Class Reference

#include <ODBCCursor.hpp>

Inheritance diagram for CODBCCursor:
CSQLCursor

List of all members.

Public Member Functions

 CODBCCursor (CODBCSource &oSource)
virtual ~CODBCCursor ()
virtual void Open (const tchar *pszStmt, SQLHSTMT hStmt)
virtual void Close ()
virtual bool IsOpen () const
virtual size_t NumColumns () const
virtual SQLColumnColumn (size_t n) const
virtual bool Fetch ()
virtual void GetRow (CRow &oRow)

Protected Types

enum  { FETCH_SIZE = 10 }

Protected Member Functions

virtual void Bind ()

Protected Attributes

CODBCSourcem_oSource
CString m_strStmt
SQLHSTMT m_hStmt
size_t m_nColumns
SQLColumnm_pColumns
size_t m_nRowLen
size_t m_nTotalLen
size_t * m_pOffsets
byte * m_pRowData
SQLUSMALLINT * m_pRowStatus
bool m_bDoneBind
SQLUINTEGER m_nFetched
SQLUINTEGER m_nCurRow

Private Member Functions

 CODBCCursor (const CODBCCursor &)
CODBCCursoroperator= (const CODBCCursor &)

Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
FETCH_SIZE 

Constructor & Destructor Documentation

CODBCCursor::CODBCCursor ( const CODBCCursor ) [private]

Member Function Documentation

void CODBCCursor::Open ( const tchar *  pszStmt,
SQLHSTMT  hStmt 
) [virtual]
void CODBCCursor::Close ( ) [virtual]
bool CODBCCursor::IsOpen ( ) const [virtual]
size_t CODBCCursor::NumColumns ( ) const [virtual]

Implements CSQLCursor.

SQLColumn & CODBCCursor::Column ( size_t  n) const [virtual]

Implements CSQLCursor.

bool CODBCCursor::Fetch ( ) [virtual]

Implements CSQLCursor.

void CODBCCursor::GetRow ( CRow oRow) [virtual]

Implements CSQLCursor.

void CODBCCursor::Bind ( ) [protected, virtual]
CODBCCursor& CODBCCursor::operator= ( const CODBCCursor ) [private]

Member Data Documentation

CString CODBCCursor::m_strStmt [protected]
SQLHSTMT CODBCCursor::m_hStmt [protected]
size_t CODBCCursor::m_nColumns [protected]
size_t CODBCCursor::m_nRowLen [protected]
size_t CODBCCursor::m_nTotalLen [protected]
size_t* CODBCCursor::m_pOffsets [protected]
byte* CODBCCursor::m_pRowData [protected]
SQLUSMALLINT* CODBCCursor::m_pRowStatus [protected]
bool CODBCCursor::m_bDoneBind [protected]
SQLUINTEGER CODBCCursor::m_nFetched [protected]
SQLUINTEGER CODBCCursor::m_nCurRow [protected]

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