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

#include <ODBCWrapper.hpp>

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

Public Member Functions

 ROBulkRecordset (const tstring &cnx, const SQLUINTEGER row_arr_sz=1, const SQLUINTEGER timeout=15)
 
 ~ROBulkRecordset () noexcept(true)
 
void __fastcall execute (const tstring &sql)
 
void __fastcall moveNext ()
 
SQLUINTEGER __fastcall NumRowsInDataBlock (void) const noexcept(true)
 
template<class T >
void __fastcall item (const SQLUSMALLINT col_num, T &data) const
 
template<>
void __fastcall item (const SQLUSMALLINT col_num, tstring &data) const
 
template<>
void __fastcall item (const SQLUSMALLINT col_num, long &data) const
 
template<>
void __fastcall item (const SQLUSMALLINT col_num, char &data) const
 
template<class T >
void __fastcall item (const tstring &col_name, T &data) const
 
- Public Member Functions inherited from jmmcg::NTUtils::Database::ODBC::RORecordsetBase
 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)
 
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 Types

typedef unsigned char RowBufferElementType
 

Protected Member Functions

void __fastcall AllocateDataBlock ()
 
- Protected Member Functions inherited from jmmcg::NTUtils::Database::ODBC::RORecordsetBase
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)
 

Additional Inherited Members

- Protected Attributes inherited from jmmcg::NTUtils::Database::ODBC::RORecordsetBase
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 522 of file ODBCWrapper.hpp.

Member Typedef Documentation

◆ RowBufferElementType

Definition at line 579 of file ODBCWrapper.hpp.

Constructor & Destructor Documentation

◆ ROBulkRecordset()

ROBulkRecordset::ROBulkRecordset ( const tstring cnx,
const SQLUINTEGER  row_arr_sz = 1,
const SQLUINTEGER  timeout = 15 
)
inline

Definition at line 409 of file ODBCWrapper.cpp.

◆ ~ROBulkRecordset()

ROBulkRecordset::~ROBulkRecordset ( void  )
inlinenoexcept

Definition at line 413 of file ODBCWrapper.cpp.

Member Function Documentation

◆ AllocateDataBlock()

void __fastcall ROBulkRecordset::AllocateDataBlock ( void  )
inlineprotected

Definition at line 532 of file ODBCWrapper.cpp.

◆ execute()

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

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

Definition at line 417 of file ODBCWrapper.cpp.

◆ item() [1/5]

template<>
void __fastcall jmmcg::NTUtils::Database::ODBC::ROBulkRecordset::item ( const SQLUSMALLINT  col_num,
char &  data 
) const
inline

Definition at line 563 of file ODBCWrapper.hpp.

◆ item() [2/5]

template<>
void __fastcall jmmcg::NTUtils::Database::ODBC::ROBulkRecordset::item ( const SQLUSMALLINT  col_num,
long &  data 
) const
inline

Definition at line 552 of file ODBCWrapper.hpp.

◆ item() [3/5]

template<class T >
void __fastcall jmmcg::NTUtils::Database::ODBC::ROBulkRecordset::item ( const SQLUSMALLINT  col_num,
T &  data 
) const
inline

Definition at line 530 of file ODBCWrapper.hpp.

◆ item() [4/5]

template<>
void __fastcall jmmcg::NTUtils::Database::ODBC::ROBulkRecordset::item ( const SQLUSMALLINT  col_num,
tstring data 
) const
inline

Definition at line 541 of file ODBCWrapper.hpp.

◆ item() [5/5]

template<class T >
void __fastcall jmmcg::NTUtils::Database::ODBC::ROBulkRecordset::item ( const tstring col_name,
T &  data 
) const
inline

Definition at line 574 of file ODBCWrapper.hpp.

◆ moveNext()

void __fastcall ROBulkRecordset::moveNext ( void  )
inlinevirtual

Implements jmmcg::NTUtils::Database::ODBC::RORecordsetBase.

Definition at line 509 of file ODBCWrapper.cpp.

◆ NumRowsInDataBlock()

SQLUINTEGER __fastcall jmmcg::NTUtils::Database::ODBC::ROBulkRecordset::NumRowsInDataBlock ( void  ) const
inlinenoexcept

Definition at line 528 of file ODBCWrapper.hpp.


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