iopc::DatabaseImpl Class Reference
[iopcdb]

Interface of driver-side part of the Database class implementation. More...

#include <databaseImpl.h>

List of all members.

Public Member Functions

virtual ConnectionImplgetConnection (const std::string &connStr)=0
 This method is invoked when user requests a new database connection by calling Database::getConnection().
virtual void returnConnection (ConnectionImpl *conn)=0
 Connections that are no longer needed are returned to the driver using this method.


Detailed Description

Interface of driver-side part of the Database class implementation.

Each database driver must provide a class that implements this interface

Instances of this class are obtained from the driver using Driver::getDatabaseImpl() method and are returned using the Driver::returnDatabaseImpl() method.


Member Function Documentation

virtual ConnectionImpl* iopc::DatabaseImpl::getConnection ( const std::string &  connStr  )  [pure virtual]

This method is invoked when user requests a new database connection by calling Database::getConnection().

The implementation should create and return a new ConnectionImpl object.

Parameters:
connStr A connection string. Its format is defined by the database driver. Usually it identifies the database user/schema.
Returns:
Implementation of the connection
See also:
Database

Connection

virtual void iopc::DatabaseImpl::returnConnection ( ConnectionImpl conn  )  [pure virtual]

Connections that are no longer needed are returned to the driver using this method.

Database driver should release all allocated resources associated with the connection. This method is invoked from Database::returnConnection()

Parameters:
conn Implementation of the connection.
See also:
Database

Connection


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

Generated on Tue Apr 14 16:46:39 2009 for IOPC 2 by  doxygen 1.5.6