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

#include <ODBCWrapper.hpp>

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

Public Member Functions

 WOBulkConnection (const tstring &cnx, const SQLUINTEGER row_arr_sz=1, const SQLUINTEGER timeout=15)
 
 ~WOBulkConnection () noexcept(true)
 
const tstring &__fastcall sql_string () const noexcept(true)
 
void __fastcall execute ()
 
void __fastcall commit ()
 
void __fastcall rollback ()
 
void __fastcall prepare (const tstring &sql)
 
- Public Member Functions inherited from jmmcg::NTUtils::Database::ODBC::WOConnectionBase
 WOConnectionBase (const tstring &cnx, const SQLUINTEGER timeout=15)
 
 ~WOConnectionBase (void) noexcept(true)
 
SQLINTEGER __fastcall count ()
 
bool __fastcall in_trans () const noexcept(true)
 
template<class T >
void __fastcall BindParam (const SQLUSMALLINT col_num, const SQLSMALLINT inp_or_out, T &data)
 
template<>
void __fastcall BindParam (const SQLUSMALLINT col_num, const SQLSMALLINT inp_or_out, long &data)
 
template<>
void __fastcall BindParam (const SQLUSMALLINT col_num, const SQLSMALLINT inp_or_out, tstring &data)
 
- 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)
 

Additional Inherited Members

- 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 inherited from jmmcg::NTUtils::Database::ODBC::WOConnectionBase
bool in_transaction
 
std::map< SQLSMALLINT, str_data_at_exec_typeexec_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 720 of file ODBCWrapper.hpp.

Constructor & Destructor Documentation

◆ WOBulkConnection()

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

Definition at line 632 of file ODBCWrapper.cpp.

◆ ~WOBulkConnection()

WOBulkConnection::~WOBulkConnection ( void  )
inlinenoexcept

Definition at line 648 of file ODBCWrapper.cpp.

Member Function Documentation

◆ commit()

void __fastcall WOBulkConnection::commit ( void  )
inlinevirtual

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

Definition at line 701 of file ODBCWrapper.cpp.

◆ execute()

void __fastcall jmmcg::NTUtils::Database::ODBC::WOBulkConnection::execute ( )
inline

◆ prepare()

void __fastcall WOBulkConnection::prepare ( const tstring sql)
inline

Definition at line 652 of file ODBCWrapper.cpp.

◆ rollback()

void __fastcall WOBulkConnection::rollback ( void  )
inlinevirtual

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

Definition at line 710 of file ODBCWrapper.cpp.

◆ sql_string()

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

Definition at line 724 of file ODBCWrapper.hpp.


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