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

GQL::Connection Class Reference

Connection. More...

#include <connection.h>

Inheritance diagram for GQL::Connection:

GQL::Warnable List of all members.

Public Member Functions

 Connection ()
virtual ~Connection ()
virtual Statementcreate_statement ()=0
 Create a empty statement.

virtual PreparedStatementprepare_statement (const std::string &sql)=0
 Create a prepared statement.

virtual CallableStatementprepare_call (const std::string &sql)=0
 Create a callable statement.

virtual void commit ()=0
 Commit the current transaction.

virtual bool get_auto_commit () const=0
 Return true if automatic commitment is enabled.

virtual void set_auto_commit (bool auto_commit=true)=0
 Return set automatic commitment.

virtual void rollback ()=0
 Rollback current transaction.

virtual std::string get_catalog () const=0
virtual std::string native_sql (const std::string &sql) const=0
 Returns a std::string with the native SQL grammar of the database.

virtual DatabaseMetaDataget_meta_data ()=0
virtual void set_read_only (bool read_only=true)=0
virtual bool is_read_only () const=0
virtual SQLObjectcreate_object ()
virtual SQLObjectcreate_blob ()
virtual void destroy_blob (SQLObject *blob)

Detailed Description

Connection.

This is the base class of the various connections provided by the database drivers.


Constructor & Destructor Documentation

GQL::Connection::Connection  )  [inline]
 

virtual GQL::Connection::~Connection  )  [virtual]
 


Member Function Documentation

virtual void GQL::Connection::commit  )  [pure virtual]
 

Commit the current transaction.

virtual SQLObject* GQL::Connection::create_blob  )  [virtual]
 

virtual SQLObject* GQL::Connection::create_object  )  [virtual]
 

virtual Statement* GQL::Connection::create_statement  )  [pure virtual]
 

Create a empty statement.

virtual void GQL::Connection::destroy_blob SQLObject blob  )  [virtual]
 

virtual bool GQL::Connection::get_auto_commit  )  const [pure virtual]
 

Return true if automatic commitment is enabled.

virtual std::string GQL::Connection::get_catalog  )  const [pure virtual]
 

virtual DatabaseMetaData* GQL::Connection::get_meta_data  )  [pure virtual]
 

virtual bool GQL::Connection::is_read_only  )  const [pure virtual]
 

virtual std::string GQL::Connection::native_sql const std::string &  sql  )  const [pure virtual]
 

Returns a std::string with the native SQL grammar of the database.

virtual CallableStatement* GQL::Connection::prepare_call const std::string &  sql  )  [pure virtual]
 

Create a callable statement.

virtual PreparedStatement* GQL::Connection::prepare_statement const std::string &  sql  )  [pure virtual]
 

Create a prepared statement.

virtual void GQL::Connection::rollback  )  [pure virtual]
 

Rollback current transaction.

virtual void GQL::Connection::set_auto_commit bool  auto_commit = true  )  [pure virtual]
 

Return set automatic commitment.

virtual void GQL::Connection::set_read_only bool  read_only = true  )  [pure virtual]
 


The documentation for this class was generated from the following file:
Generated on Thu May 1 18:08:01 2003 for gql by doxygen1.3