#include <connectionImpl.h>
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 CursorImpl * | getCursor (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. |
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.
virtual void iopc::ConnectionImpl::savepoint | ( | const std::string & | name | ) | [pure virtual] |
Creates a savepoint.
name | Savepoint name |
virtual void iopc::ConnectionImpl::rollbackToSavepoint | ( | const std::string & | name | ) | [pure virtual] |
Rolls back to the specified savepoint.
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.
sqlCommand | The SQL statement |
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.
cur | Implementation of the cursor |