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

pqxx::TransactionItf Class Reference

Interface definition (and common code) for "transaction" classes. More...

#include <transactionitf.h>

Inheritance diagram for pqxx::TransactionItf:

pqxx::NonTransaction pqxx::RobustTransaction pqxx::Transaction List of all members.

Public Member Functions

virtual ~TransactionItf ()=0
void Commit ()
void Abort ()
Result Exec (const char[])
 Execute query directly.

Result Exec (const PGSTD::string &Q)
 Execute query directly.

void ProcessNotice (const char Msg[])
void ProcessNotice (const PGSTD::string &Msg)
PGSTD::string Name () const

Protected Member Functions

 TransactionItf (Connection &, const PGSTD::string &TName=PGSTD::string())
void Begin ()
void End () throw ()
 End transaction. To be called by implementing class' destructor.

virtual void DoBegin ()=0
 To be implemented by derived implementation class.

virtual Result DoExec (const char C[])=0
virtual void DoCommit ()=0
virtual void DoAbort ()=0
Result DirectExec (const char C[], int Retries, const char OnReconnect[])
 Execute query on connection directly.

ConnectionConn () const

Friends

class Cursor
class TableStream
class TableReader
class TableWriter

Detailed Description

Interface definition (and common code) for "transaction" classes.

All database access must be channeled through one of these classes for safety, although not all implementations of this interface need to provide full transactional integrity.


Constructor & Destructor Documentation

pqxx::TransactionItf::~TransactionItf   [pure virtual]
 

pqxx::TransactionItf::TransactionItf Connection  ,
const PGSTD::string &    TName = PGSTD::string()
[explicit, protected]
 

Create a transaction. The optional name, if given, must begin with a letter and may contain letters and digits only.


Member Function Documentation

void pqxx::TransactionItf::Abort  
 

void pqxx::TransactionItf::Begin   [protected]
 

Begin transaction. To be called by implementing class, typically from constructor.

void pqxx::TransactionItf::Commit  
 

Connection& pqxx::TransactionItf::Conn   const [protected]
 

pqxx::Result pqxx::TransactionItf::DirectExec const char    C[],
int    Retries,
const char    OnReconnect[]
[protected]
 

Execute query on connection directly.

virtual void pqxx::TransactionItf::DoAbort   [protected, pure virtual]
 

virtual void pqxx::TransactionItf::DoBegin   [protected, pure virtual]
 

To be implemented by derived implementation class.

virtual void pqxx::TransactionItf::DoCommit   [protected, pure virtual]
 

virtual Result pqxx::TransactionItf::DoExec const char    C[] [protected, pure virtual]
 

void pqxx::TransactionItf::End   throw () [protected]
 

End transaction. To be called by implementing class' destructor.

Result pqxx::TransactionItf::Exec const PGSTD::string &    Q
 

Execute query directly.

pqxx::Result pqxx::TransactionItf::Exec const    char[]
 

Execute query directly.

PGSTD::string pqxx::TransactionItf::Name   const
 

void pqxx::TransactionItf::ProcessNotice const PGSTD::string &    Msg
 

void pqxx::TransactionItf::ProcessNotice const char    Msg[]
 


Friends And Related Function Documentation

friend class Cursor [friend]
 

friend class TableReader [friend]
 

friend class TableStream [friend]
 

friend class TableWriter [friend]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 28 19:23:33 2003 for libpqxx by doxygen1.3-rc3