iopc::ConnectionImpl Class Reference
[iopcdb]

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

#include <connectionImpl.h>

List of all members.

Public Member Functions

virtual void commit ()=0
 Commits current transaction.
virtual void rollback ()=0
 Rolls back current transaction.
virtual void savepoint (const std::string &name)=0
 Creates a savepoint.
virtual void rollbackToSavepoint (const std::string &name)=0
 Rolls back to the specified savepoint.
virtual void open ()=0
 Opens the connection.
virtual void close ()=0
 Closes the connection.
virtual void setAutoCommit (bool ac)=0
 Changes the autocommit state set on this connection.
virtual CursorImplgetCursor (const std::string &sqlCommand)=0
 Executes a SQL statement and returns a CursorImpl object which is responsible for the statement execution, parameter binding and query results retrieval.
virtual void returnCursor (CursorImpl *cur)=0
 Cursors that are no longer needed are returned to the driver using this method.


Detailed Description

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

Each database driver must provide a class that implements this interface

Instances of this class are obtained using the DatabaseImpl::getConnection() method and are returned using the DatabaseImpl::returnConnection() method.


Member Function Documentation

virtual void iopc::ConnectionImpl::savepoint ( const std::string &  name  )  [pure virtual]

Creates a savepoint.

Parameters:
name Savepoint name

virtual void iopc::ConnectionImpl::rollbackToSavepoint ( const std::string &  name  )  [pure virtual]

Rolls back to the specified savepoint.

Parameters:
name Name of the savepoint to which to roll back to.

virtual void iopc::ConnectionImpl::open (  )  [pure virtual]

Opens the connection.

This call should open a physical link to the DBMS

virtual void iopc::ConnectionImpl::close (  )  [pure virtual]

Closes the connection.

This call should close the physical link to the DBMS

virtual CursorImpl* iopc::ConnectionImpl::getCursor ( const std::string &  sqlCommand  )  [pure virtual]

Executes a SQL statement and returns a CursorImpl object which is responsible for the statement execution, parameter binding and query results retrieval.

Parameters:
sqlCommand The SQL statement
Returns:
Implementation of the cursor

virtual void iopc::ConnectionImpl::returnCursor ( CursorImpl cur  )  [pure virtual]

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

Database driver should release all allocated resources associated with the cursor.

Parameters:
cur Implementation of the cursor


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

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