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

odbc::Connection Class Reference

A database connection. More...

#include <connection.h>

Inheritance diagram for odbc::Connection::

odbc::ErrorHandler List of all members.

Public Types

Public Methods


Detailed Description

A database connection.


Member Enumeration Documentation

enum odbc::Connection::TransactionIsolation
 

Transaction isolation constants.

Enumeration values:
TRANSACTION_NONE  The data source does not support transactions.
TRANSACTION_READ_UNCOMMITTED  Dirty reads, non-repeatable reads and phantom reads can occur.
TRANSACTION_READ_COMMITTED  Non-repeatable and phantom reads can occur.
TRANSACTION_REPEATABLE_READ  Phantom reads can occur.
TRANSACTION_SERIALIZABLE  Simply no problems.


Constructor & Destructor Documentation

virtual odbc::Connection::~Connection   [virtual]
 

Destructor.

Closes the connection


Member Function Documentation

Statement* odbc::Connection::createStatement int    resultSetType,
int    resultSetConcurrency
 

Creates a non-prepared statement.

Parameters:
resultSetType  The type for ResultSets created by this statement
resultSetConcurrency  The concurrency for ResultSets created by this statement

DatabaseMetaData* odbc::Connection::getMetaData  
 

Returns meta information for this connection.

Note that the returned object is 'owned' by this connection and should in no way be deleted by the caller.

CallableStatement* odbc::Connection::prepareCall const std::string &    sql,
int    resultSetType,
int    resultSetConcurrency
 

Create a callable prepared statement.

Parameters:
sql  The string to prepare, optionally containing parameter markers for input and/or output parameters
resultSetType  The type for ResultSets created by this statement
resultSetConcurrency  The concurrency for ResultSets created by this statement

CallableStatement* odbc::Connection::prepareCall const std::string &    sql
 

Create a callable prepared statement.

Parameters:
sql  The string to prepare, optionally containing parameter markers for input and/or output parameters

PreparedStatement* odbc::Connection::prepareStatement const std::string &    sql,
int    resultSetType,
int    resultSetConcurrency
 

Create a prepared statement.

Parameters:
sql  The string to prepare, optionally containing parameter markers.
resultSetType  The type for ResultSets created by this statement
resultSetConcurrency  The concurrency for ResultSets created by this statement

PreparedStatement* odbc::Connection::prepareStatement const std::string &    sql
 

Create a prepared statement.

Parameters:
sql  The string to prepare, optionally containing parameter markers (?).

void odbc::Connection::setAutoCommit bool    autoCommit
 

Sets the autocommit state of this connection.

Parameters:
autoCommit  true for on, false for off


The documentation for this class was generated from the following file:
Go back to the freeodbc++ homepage