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

ConnectionDB2 Class Reference

#include <DatabaseDB2.h>

Inheritance diagram for ConnectionDB2

Inheritance graph

[legend]
Collaboration diagram for ConnectionDB2:

Collaboration graph

[legend]
List of all members.

Public Methods

 ConnectionDB2 (ConnectionPoolDB2* pPool)
virtual ~ConnectionDB2 ()
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 Attributes

ConnectionPoolDB2m_pPool

Constructor & Destructor Documentation

ConnectionDB2::ConnectionDB2 ( ConnectionPoolDB2 * pPool )
 

Definition at line 39 of file DatabaseDB2.cpp.

ConnectionDB2::~ConnectionDB2 ( ) [virtual]
 

Definition at line 76 of file DatabaseDB2.cpp.


Member Function Documentation

void ConnectionDB2::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 71 of file DatabaseDB2.cpp.

void ConnectionDB2::commit ( ) [virtual]
 

Reimplemented from Connection.

Definition at line 48 of file DatabaseDB2.cpp.

Statement * ConnectionDB2::createStatement ( ) [virtual]
 

Reimplemented from Connection.

Definition at line 56 of file DatabaseDB2.cpp.

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

Reimplemented from Connection.

Definition at line 36 of file DatabaseDB2.h.

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

Reimplemented from Connection.

Definition at line 66 of file DatabaseDB2.cpp.

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

Reimplemented from Connection.

Definition at line 61 of file DatabaseDB2.cpp.

void ConnectionDB2::rollback ( ) [virtual]
 

Reimplemented from Connection.

Definition at line 52 of file DatabaseDB2.cpp.

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

Reimplemented from Connection.

Definition at line 44 of file DatabaseDB2.cpp.


Member Data Documentation

ConnectionPoolDB2 * ConnectionDB2::m_pPool [private]
 

Definition at line 40 of file DatabaseDB2.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