libjmmcg  release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::NTUtils::Database::ODBC::RORecordsetBase Class Referenceabstract

#include <ODBCWrapper.hpp>

Inheritance diagram for jmmcg::NTUtils::Database::ODBC::RORecordsetBase:
[legend]
Collaboration diagram for jmmcg::NTUtils::Database::ODBC::RORecordsetBase:
[legend]

Public Member Functions

 RORecordsetBase (const tstring &cnx, const SQLUINTEGER timeout=15) throw (Database::ODBC::Exceptions::ODBCExceptionErr &, std::bad_alloc)
 
 ~RORecordsetBase (void) noexcept(true)
 
const tstring &__fastcall sql_string (void) const noexcept(true)
 
void __fastcall execute (const tstring &sql)
 
virtual void __fastcall moveNext (void)=0
 
bool __fastcall eof () const noexcept(true)
 
SQLINTEGER __fastcall count ()
 
SQLSMALLINT __fastcall GetColumnIdx (const tstring &col_name) noexcept(true)
 
- Public Member Functions inherited from jmmcg::NTUtils::Database::ODBC::RecordsetBase
 RecordsetBase (const tstring &cnx, const bool read_only, const SQLUINTEGER timeout=15)
 
 ~RecordsetBase () noexcept(true)
 
- Public Member Functions inherited from jmmcg::NTUtils::Database::ODBC::Connection
 Connection (const tstring &cnx, const bool read_only, const SQLUINTEGER timeout=15)
 
 ~Connection (void) noexcept(true)
 
const tstring &__fastcall cnx_string () const noexcept(true)
 
virtual void __fastcall execute (const tstringstream &sql)
 

Protected Member Functions

SQLSMALLINT __fastcall NumColumns (void) const noexcept(true)
 
- Protected Member Functions inherited from jmmcg::NTUtils::Database::ODBC::RecordsetBase
void __fastcall RowsAffected ()
 
- Protected Member Functions inherited from jmmcg::NTUtils::Database::ODBC::Connection
void __fastcall AllocateStmt ()
 
- Protected Member Functions inherited from jmmcg::NTUtils::Database::ODBC::Environment
 Environment (const bool read_only=true, const SQLUINTEGER timeout=15)
 
virtual ~Environment (void) noexcept(true)
 

Protected Attributes

std::map< tstring, SQLSMALLINT > column_names
 
bool no_more_data
 
- Protected Attributes inherited from jmmcg::NTUtils::Database::ODBC::RecordsetBase
SQLINTEGER row_count
 
- Protected Attributes inherited from jmmcg::NTUtils::Database::ODBC::Connection
const SQLUINTEGER stmt_timeout
 
SQLHSTMT hstmt
 
- Protected Attributes inherited from jmmcg::NTUtils::Database::ODBC::Environment
SQLHDBC hdbc
 

Detailed Description

Definition at line 410 of file ODBCWrapper.hpp.

Constructor & Destructor Documentation

◆ RORecordsetBase()

RORecordsetBase::RORecordsetBase ( const tstring cnx,
const SQLUINTEGER  timeout = 15 
)
throw (Database::ODBC::Exceptions::ODBCExceptionErr &,
std::bad_alloc
)
inline

Definition at line 330 of file ODBCWrapper.cpp.

◆ ~RORecordsetBase()

RORecordsetBase::~RORecordsetBase ( void  )
inlinenoexcept

Definition at line 334 of file ODBCWrapper.cpp.

Member Function Documentation

◆ count()

SQLINTEGER __fastcall RORecordsetBase::count ( void  )
inlinevirtual

Reimplemented from jmmcg::NTUtils::Database::ODBC::RecordsetBase.

Definition at line 350 of file ODBCWrapper.cpp.

◆ eof()

bool __fastcall jmmcg::NTUtils::Database::ODBC::RORecordsetBase::eof ( ) const
inlinenoexcept

Definition at line 419 of file ODBCWrapper.hpp.

◆ execute()

void __fastcall RORecordsetBase::execute ( const tstring sql)
inlinevirtual

◆ GetColumnIdx()

SQLSMALLINT __fastcall RORecordsetBase::GetColumnIdx ( const tstring col_name)
noexcept

Definition at line 364 of file ODBCWrapper.cpp.

◆ moveNext()

virtual void __fastcall jmmcg::NTUtils::Database::ODBC::RORecordsetBase::moveNext ( void  )
inlinepure virtual

◆ NumColumns()

SQLSMALLINT __fastcall jmmcg::NTUtils::Database::ODBC::RORecordsetBase::NumColumns ( void  ) const
inlineprotectednoexcept

Definition at line 441 of file ODBCWrapper.hpp.

◆ sql_string()

const tstring& __fastcall jmmcg::NTUtils::Database::ODBC::RORecordsetBase::sql_string ( void  ) const
inlinenoexcept

Definition at line 414 of file ODBCWrapper.hpp.

Member Data Documentation

◆ column_names

std::map<tstring, SQLSMALLINT> jmmcg::NTUtils::Database::ODBC::RORecordsetBase::column_names
protected

Definition at line 436 of file ODBCWrapper.hpp.

◆ no_more_data

bool jmmcg::NTUtils::Database::ODBC::RORecordsetBase::no_more_data
protected

Definition at line 437 of file ODBCWrapper.hpp.


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