Nemiver  0.3
Public Member Functions | Friends | List of all members
nemiver::common::Transaction Class Reference

the application level persistence transaction class. abstracts a transaction several persistent objects can be part of. This class is used to model the fact that there the persistence of several instances can be part of the same transaction. Either they all succeed in persisting their data, or they all fail. Read docs/nmv-persistence.txt to learn more. More...

#include <nmv-transaction.h>

Inheritance diagram for nemiver::common::Transaction:
nemiver::common::Object

Public Member Functions

 Transaction (Connection &a_con)
 
 Transaction (const Transaction &)
 
Transactionoperator= (const Transaction &)
 
virtual ~Transaction ()
 
Connectionget_connection ()
 
bool begin (const common::UString &a_subtransaction_name="")
 
bool commit (const common::UString &a_subtransaction_name="")
 
bool is_commited ()
 
bool rollback ()
 
long long get_id ()
 
Glib::Mutex & get_mutex () const
 
- Public Member Functions inherited from nemiver::common::Object
 Object ()
 
 Object (Object const &)
 
Objectoperator= (Object const &)
 
virtual ~Object ()
 
void ref ()
 
void unref ()
 
void enable_refcount (bool a_enabled=true)
 
bool is_refcount_enabled () const
 
long get_refcount () const
 
void attach_object (const UString &a_key, const Object *a_object)
 
bool get_attached_object (const UString &a_key, const Object *&a_object)
 

Friends

struct TransactionPriv
 

Additional Inherited Members

- Protected Attributes inherited from nemiver::common::Object
SafePtr< ObjectPrivm_priv
 

Detailed Description

the application level persistence transaction class. abstracts a transaction several persistent objects can be part of. This class is used to model the fact that there the persistence of several instances can be part of the same transaction. Either they all succeed in persisting their data, or they all fail. Read docs/nmv-persistence.txt to learn more.

Constructor & Destructor Documentation

◆ Transaction() [1/2]

nemiver::common::Transaction::Transaction ( Connection a_con)

◆ Transaction() [2/2]

nemiver::common::Transaction::Transaction ( const Transaction )

◆ ~Transaction()

virtual nemiver::common::Transaction::~Transaction ( )
virtual

Member Function Documentation

◆ begin()

bool nemiver::common::Transaction::begin ( const common::UString a_subtransaction_name = "")

◆ commit()

bool nemiver::common::Transaction::commit ( const common::UString a_subtransaction_name = "")

◆ get_connection()

Connection& nemiver::common::Transaction::get_connection ( )

◆ get_id()

long long nemiver::common::Transaction::get_id ( )

◆ get_mutex()

Glib::Mutex& nemiver::common::Transaction::get_mutex ( ) const

◆ is_commited()

bool nemiver::common::Transaction::is_commited ( )

◆ operator=()

Transaction& nemiver::common::Transaction::operator= ( const Transaction )

◆ rollback()

bool nemiver::common::Transaction::rollback ( )

Friends And Related Function Documentation

◆ TransactionPriv

friend struct TransactionPriv
friend

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