subtransaction.hxx
/*-------------------------------------------------------------------------
*
* FILE
* pqxx/subtransaction.hxx
*
* DESCRIPTION
* definition of the pqxx::subtransaction class.
* pqxx::subtransaction is a nested transaction, i.e. one within a transaction
* DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/subtransaction instead.
*
* Copyright (c) 2005-2011, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this mistake,
* or contact the author.
*
*-------------------------------------------------------------------------
*/
#ifndef PQXX_H_SUBTRANSACTION
#define PQXX_H_SUBTRANSACTION
#include "pqxx/compiler-public.hxx"
#include "pqxx/compiler-internal-pre.hxx"
#include "pqxx/dbtransaction"
/* Methods tested in eg. self-test program test1 are marked with "//[t1]"
*/
namespace pqxx
{
class PQXX_LIBEXPORT subtransaction :
public internal::transactionfocus,
public dbtransaction
{
public:
explicit subtransaction( //[t88]
dbtransaction &T, const PGSTD::string &Name=PGSTD::string());
explicit subtransaction(
subtransaction &T, const PGSTD::string &Name=PGSTD::string());
private:
virtual void do_begin(); //[t88]
virtual void do_commit(); //[t88]
virtual void do_abort(); //[t88]
void check_backendsupport() const;
dbtransaction &m_parent;
};
}
#include "pqxx/compiler-internal-post.hxx"
#endif
pqxx::dbtransaction
Definition: dbtransaction.hxx:73
pqxx::internal::transactionfocus
Definition: transaction_base.hxx:52
pqxx::subtransaction
"Transaction" nested within another transaction
Definition: subtransaction.hxx:86
pqxx
The home of all libpqxx classes, functions, templates, etc.
Definition: basic_connection.hxx:35