Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

ConnectionODBC Class Reference

#include <DatabaseODBC.h>

Inheritance diagram for ConnectionODBC

Inheritance graph

[legend]
Collaboration diagram for ConnectionODBC:

Collaboration graph

[legend]
List of all members.

Public Methods

 ConnectionODBC (ConnectionPoolODBC* pPool)
virtual ~ConnectionODBC ()
void setAutoCommit (bool state)
void commit ()
void close ()
 Doesn't actually close the connection, but instead returns itself back to the pool to be re-used. More...

void rollback ()
StatementcreateStatement ()

Protected Methods

ConnectionPoolgetPool ()
PreparedStatementnewPreparedStatement (const nsAReadableString& sql)
CallableStatementnewCallableStatement (const nsAReadableString& sql)

Private Methods

bool connect ()

Private Attributes

friend PreparedStatementODBC
friend CallableStatementODBC
friend StatementODBC
ConnectionPoolODBCm_pPool
SQLHDBC m_hdbc

Constructor & Destructor Documentation

ConnectionODBC::ConnectionODBC ( ConnectionPoolODBC * pPool )
 

Definition at line 76 of file DatabaseODBC.cpp.

ConnectionODBC::~ConnectionODBC ( ) [virtual]
 

Definition at line 188 of file DatabaseODBC.cpp.


Member Function Documentation

void ConnectionODBC::close ( ) [virtual]
 

Doesn't actually close the connection, but instead returns itself back to the pool to be re-used.

However, if you specified maxCheckouts in the constructor, then this *will* close the JDBC Connection and re-open it if the number of checkouts has been exceeded.

Reimplemented from Connection.

Definition at line 183 of file DatabaseODBC.cpp.

void ConnectionODBC::commit ( ) [virtual]
 

Reimplemented from Connection.

Definition at line 168 of file DatabaseODBC.cpp.

bool ConnectionODBC::connect ( ) [private]
 

Definition at line 82 of file DatabaseODBC.cpp.

Referenced by ConnectionODBC().

Statement * ConnectionODBC::createStatement ( ) [virtual]
 

Reimplemented from Connection.

Definition at line 178 of file DatabaseODBC.cpp.

ConnectionPool * ConnectionODBC::getPool ( ) [inline, protected, virtual]
 

Reimplemented from Connection.

Definition at line 57 of file DatabaseODBC.h.

CallableStatement * ConnectionODBC::newCallableStatement ( const nsAReadableString & sql ) [protected, virtual]
 

Reimplemented from Connection.

Definition at line 199 of file DatabaseODBC.cpp.

PreparedStatement * ConnectionODBC::newPreparedStatement ( const nsAReadableString & sql ) [protected, virtual]
 

Reimplemented from Connection.

Definition at line 194 of file DatabaseODBC.cpp.

void ConnectionODBC::rollback ( ) [virtual]
 

Reimplemented from Connection.

Definition at line 173 of file DatabaseODBC.cpp.

void ConnectionODBC::setAutoCommit ( bool state ) [virtual]
 

Reimplemented from Connection.

Definition at line 163 of file DatabaseODBC.cpp.


Member Data Documentation

CallableStatementODBC [private]
 

Definition at line 46 of file DatabaseODBC.h.

Referenced by newCallableStatement().

PreparedStatementODBC [private]
 

Definition at line 45 of file DatabaseODBC.h.

Referenced by newPreparedStatement().

StatementODBC [private]
 

Definition at line 47 of file DatabaseODBC.h.

Referenced by createStatement().

SQLHDBC ConnectionODBC::m_hdbc [private]
 

Definition at line 63 of file DatabaseODBC.h.

ConnectionPoolODBC * ConnectionODBC::m_pPool [private]
 

Definition at line 62 of file DatabaseODBC.h.


The documentation for this class was generated from the following files:
Generated at Tue Sep 12 16:29:47 2000 by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000