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

nontransaction.hxx

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  *   FILE
00004  *      pqxx/nontransaction.hxx
00005  *
00006  *   DESCRIPTION
00007  *      definition of the pqxx::nontransaction class.
00008  *   pqxx::nontransaction provides nontransactional database access
00009  *   DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/nontransaction instead.
00010  *
00011  * Copyright (c) 2002-2003, 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/connection_base"
00020 #include "pqxx/result"
00021 #include "pqxx/transaction_base"
00022 
00023 /* Methods tested in eg. self-test program test1 are marked with "//[t1]"
00024  */
00025 
00026 
00027 namespace pqxx
00028 {
00029 class nontransaction;
00030 
00032 template<> inline PGSTD::string Classname(const nontransaction *) 
00033 { 
00034   return "nontransaction"; 
00035 }
00036 
00037 
00038 
00040 
00061 class PQXX_LIBEXPORT nontransaction : public transaction_base
00062 {
00063 public:
00065 
00070   explicit nontransaction(connection_base &C, 
00071                           const PGSTD::string &NName=PGSTD::string()) : //[t14]
00072     transaction_base(C, NName) { Begin(); }
00073 
00074   virtual ~nontransaction();                                            //[t14]
00075 
00076 private:
00077   virtual void do_begin() {}                                            //[t14]
00078   virtual result do_exec(const char C[]);                               //[t14]
00079   virtual void do_commit() {}                                           //[t14]
00080   virtual void do_abort() {}                                            //[t14]
00081 };
00082 
00083 
00084 }
00085 
00086 

Generated on Fri Nov 14 19:37:18 2003 for libpqxx by doxygen 1.3.4