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

nontransaction.h

Go to the documentation of this file.
00001 /*-------------------------------------------------------------------------
00002  *
00003  *   FILE
00004  *      pqxx/nontransaction.h
00005  *
00006  *   DESCRIPTION
00007  *      definition of the pqxx::NonTransaction class.
00008  *   pqxx::NonTransaction provides nontransactional database access
00009  *
00010  * Copyright (c) 2002-2003, Jeroen T. Vermeulen <jtv@xs4all.nl>
00011  *
00012  *-------------------------------------------------------------------------
00013  */
00014 #ifndef PQXX_NONTRANSACTION_H
00015 #define PQXX_NONTRANSACTION_H
00016 
00017 #include "pqxx/connection.h"
00018 #include "pqxx/result.h"
00019 #include "pqxx/transactionitf.h"
00020 
00021 /* Methods tested in eg. self-test program test1 are marked with "//[t1]"
00022  */
00023 
00024 
00025 namespace pqxx
00026 {
00028 
00041 class PQXX_LIBEXPORT NonTransaction : public TransactionItf
00042 {
00043 public:
00045 
00050   explicit NonTransaction(Connection &C, 
00051                           const PGSTD::string &NName=PGSTD::string()) : //[t14]
00052     TransactionItf(C, NName) { Begin(); }
00053 
00054   virtual ~NonTransaction();                                            //[t14]
00055 
00056 private:
00057   virtual void DoBegin() {}                                             //[t14]
00058   virtual Result DoExec(const char C[]);                                //[t14]
00059   virtual void DoCommit() {}                                            //[t14]
00060   virtual void DoAbort() {}                                             //[t20]
00061 };
00062 
00063 }
00064 
00065 #endif
00066 

Generated on Fri Feb 28 19:23:32 2003 for libpqxx by doxygen1.3-rc3