Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

dbtransaction.hxx

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  *   FILE
00004  *      pqxx/dbtransaction.hxx
00005  *
00006  *   DESCRIPTION
00007  *      definition of the pqxx::dbtransaction abstract base class.
00008  *   pqxx::dbransaction defines a real transaction on the database
00009  *   DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/dbtransaction instead.
00010  *
00011  * Copyright (c) 2004-2005, Jeroen T. Vermeulen <jtv@xs4all.nl>
00012  *
00013  * See COPYING for copyright license.  If you did not receive a file called
00014  * COPYING with this source code, please notify the distributor of this mistake,
00015  * or contact the author.
00016  *
00017  *-------------------------------------------------------------------------
00018  */
00019 #include "pqxx/libcompiler.h"
00020 
00021 #include "pqxx/transaction_base"
00022 
00023 namespace pqxx
00024 {
00025 
00027 
00057 class PQXX_LIBEXPORT dbtransaction : public transaction_base
00058 {
00059 protected:
00060   explicit dbtransaction(connection_base &,
00061                          const PGSTD::string &IsolationString,
00062                          const PGSTD::string &NName,
00063                          const PGSTD::string &CName);
00064 
00065   virtual ~dbtransaction();
00066 
00068   void start_backend_transaction();
00069 
00070 private:
00072   virtual void do_begin() =0;
00074   virtual result do_exec(const char Query[]);
00076   virtual void do_commit() =0;
00078   virtual void do_abort() =0;
00079 
00081   PGSTD::string m_StartCmd;
00082 };
00083 
00084 
00085 } // namespace pqxx
00086 

Generated on Mon Oct 3 20:28:58 2005 for libpqxx by  doxygen 1.4.2