subtransaction.hxx
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef PQXX_H_SUBTRANSACTION
00020 #define PQXX_H_SUBTRANSACTION
00021
00022 #include "pqxx/compiler-public.hxx"
00023 #include "pqxx/compiler-internal-pre.hxx"
00024
00025 #include "pqxx/dbtransaction"
00026
00027
00028
00029
00030
00031
00032
00033 namespace pqxx
00034 {
00035
00039
00040
00081 class PQXX_LIBEXPORT subtransaction :
00082 public internal::transactionfocus,
00083 public dbtransaction
00084 {
00085 public:
00086 explicit subtransaction(dbtransaction &T,
00087 const PGSTD::string &Name=PGSTD::string());
00088
00089 private:
00090 virtual void do_begin();
00091 virtual void do_commit();
00092 virtual void do_abort();
00093
00094 void check_backendsupport() const;
00095
00096 dbtransaction &m_parent;
00097 };
00098
00099 }
00100
00101
00102 #include "pqxx/compiler-internal-post.hxx"
00103
00104 #endif
00105