subtransaction.hxx

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  *   FILE
00004  *      pqxx/subtransaction.hxx
00005  *
00006  *   DESCRIPTION
00007  *      definition of the pqxx::subtransaction class.
00008  *   pqxx::subtransaction is a nested transaction, i.e. one within a transaction
00009  *   DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/subtransaction instead.
00010  *
00011  * Copyright (c) 2005-2006, 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/compiler-public.hxx"
00020 #include "pqxx/compiler-internal-pre.hxx"
00021 
00022 #include "pqxx/dbtransaction"
00023 
00024 
00025 
00026 /* Methods tested in eg. self-test program test1 are marked with "//[t1]"
00027  */
00028 
00029 
00030 namespace pqxx
00031 {
00032 
00036 
00037 
00078 class PQXX_LIBEXPORT subtransaction :
00079   public internal::transactionfocus,
00080   public dbtransaction
00081 {
00082 public:
00083   explicit subtransaction(dbtransaction &T,
00084         const PGSTD::string &Name=PGSTD::string());                     //[t88]
00085 
00086 private:
00087   virtual void do_begin();                                              //[t88]
00088   virtual void do_commit();                                             //[t88]
00089   virtual void do_abort();                                              //[t88]
00090 
00091   void check_backendsupport() const;
00092 
00093   dbtransaction &m_parent;
00094 };
00095 
00096 }
00097 
00098 
00099 #include "pqxx/compiler-internal-post.hxx"

Generated on Thu Feb 1 17:12:08 2007 for libpqxx by  doxygen 1.5.1