dbixx::transaction Class Reference

Transaction scope guard. More...

#include <dbixx.h>

List of all members.

Public Member Functions

 transaction (session &s)
void commit ()
void rollback ()
 ~transaction ()


Detailed Description

Transaction scope guard.

It automatically rollbacks the transaction during stack unwind if it wasn't committed


Constructor & Destructor Documentation

dbixx::transaction::transaction ( session s  )  [inline]

Begin transaction on session s

dbixx::transaction::~transaction (  ) 

If commit wasn't called, calls rollback()


Member Function Documentation

void dbixx::transaction::commit (  ) 

Commit translation to database

void dbixx::transaction::rollback (  ) 

Rollbacks the transaction


The documentation for this class was generated from the following file:

Generated on Mon Dec 13 21:46:02 2010 for DbiXX by  doxygen 1.5.6