Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | 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-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/connection_base"
00022 #include "pqxx/result"
00023 #include "pqxx/transaction_base"
00024 
00025 /* Methods tested in eg. self-test program test001 are marked with "//[t1]"
00026  */
00027 
00028 
00029 namespace pqxx
00030 {
00031 
00033 
00054 class PQXX_LIBEXPORT nontransaction : public transaction_base
00055 {
00056 public:
00058 
00063   explicit nontransaction(connection_base &C,
00064                           const PGSTD::string &NName=PGSTD::string()) : //[t14]
00065     transaction_base(C, NName, "nontransaction") { Begin(); }
00066 
00067   virtual ~nontransaction();                                            //[t14]
00068 
00069 private:
00070   virtual void do_begin() {}                                            //[t14]
00071   virtual result do_exec(const char C[]);                               //[t14]
00072   virtual void do_commit() {}                                           //[t14]
00073   virtual void do_abort() {}                                            //[t14]
00074 };
00075 
00076 
00077 }
00078 
00079 

Generated on Mon Feb 28 10:24:56 2005 for libpqxx by  doxygen 1.4.1