#include "CTBodbcConnect.hxx"
Public Methods | |
CTBodbcConnect () | |
~CTBodbcConnect () | |
bool | Connect (const char *c_dcs) |
bool | Disconnect () |
bool | Connected () const |
bool | AutoCommit (bool b_val) |
bool | Commit () |
bool | Rollback () |
bool | Trace (bool b_trace) |
void | PrintError (ostream &os=cout) |
HENV & | Henv () |
HDBC & | Hdbc () |
void | ToStream (ostream &os=cout) const |
bool | operator! () const |
operator bool () const | |
Private Methods | |
void | TraceODBCCall (const char *c_text, RETCODE i_rc) |
void | PrintInfo (UWORD i_infotype, const char *c_prefix, ostream &os=cout) const |
Private Attributes | |
HDBC | m_hdbc |
bool | mb_connected |
bool | mb_trace |
Static Private Attributes | |
HENV | m_henv |
Friends | |
class | CTBodbcStatement |
Related Functions | |
(Note that these are not member functions.) | |
ostream & | operator<< (ostream &os, const CTBodbcConnect &obj) |
Definition at line 18 of file CTBodbcConnect.hxx.
|
Default constructor.
Definition at line 26 of file CTBodbcConnect.cxx. |
|
Destructor.
Definition at line 36 of file CTBodbcConnect.cxx. |
|
Connect with DCS.
Definition at line 44 of file CTBodbcConnect.cxx. |
|
Disconnect.
Definition at line 104 of file CTBodbcConnect.cxx. Referenced by ~CTBodbcConnect().
|
|
Returns
Definition at line 15 of file CTBodbcConnect.icc. |
|
Set autocommit mode to b_val.
Definition at line 123 of file CTBodbcConnect.cxx. |
|
Commit all outstanding transactions.
Definition at line 141 of file CTBodbcConnect.cxx. |
|
Rollback all outstanding transactions.
Definition at line 158 of file CTBodbcConnect.cxx. |
|
Enable or disable ODBC call trace.
Definition at line 175 of file CTBodbcConnect.cxx. |
|
Print c+e errors to stream os.
Definition at line 185 of file CTBodbcConnect.cxx. Referenced by AutoCommit(), Commit(), Connect(), CTBodbcStatement::PrintError(), and Rollback().
|
|
Access environment handle.
Definition at line 23 of file CTBodbcConnect.icc. |
|
Access connection handle.
Definition at line 31 of file CTBodbcConnect.icc. |
|
ostream insertion.
Definition at line 204 of file CTBodbcConnect.cxx. Referenced by operator<<().
|
|
Returns
Definition at line 39 of file CTBodbcConnect.icc. |
|
Returns
Definition at line 47 of file CTBodbcConnect.icc. |
|
Trace ODBC call.
Print the message c_text to Definition at line 339 of file CTBodbcConnect.cxx. Referenced by CTBodbcStatement::AllocIfNull(), AutoCommit(), CTBodbcStatement::BindCol(), CTBodbcStatement::BindIParameter(), CTBodbcStatement::Close(), Commit(), Connect(), CTBodbcStatement::DescribeCol(), Disconnect(), CTBodbcStatement::Execute(), CTBodbcStatement::Fetch(), CTBodbcStatement::GetData(), CTBodbcStatement::NumResultCols(), CTBodbcStatement::Prepare(), Rollback(), CTBodbcStatement::UnbindCol(), CTBodbcStatement::UnbindParameter(), and CTBodbcStatement::~CTBodbcStatement().
|
|
Print info.
Definition at line 371 of file CTBodbcConnect.cxx. Referenced by ToStream().
|
|
Definition at line 21 of file CTBodbcConnect.hxx. |
|
ostream insertion operator.
Definition at line 58 of file CTBodbcConnect.icc. |
|
ODBC DBconnect handle.
Definition at line 54 of file CTBodbcConnect.hxx. |
|
connected flag.
Definition at line 55 of file CTBodbcConnect.hxx. |
|
trace all ODBC calls.
Definition at line 56 of file CTBodbcConnect.hxx. |
|
ODBC Environment handle.
Definition at line 386 of file CTBodbcConnect.cxx. |