|
Nemiver
0.3
|
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>
Public Member Functions | |
| Transaction (Connection &a_con) | |
| Transaction (const Transaction &) | |
| Transaction & | operator= (const Transaction &) |
| virtual | ~Transaction () |
| Connection & | get_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 &) | |
| Object & | operator= (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< ObjectPriv > | m_priv |
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.
| nemiver::common::Transaction::Transaction | ( | Connection & | a_con | ) |
| nemiver::common::Transaction::Transaction | ( | const Transaction & | ) |
|
virtual |
| bool nemiver::common::Transaction::begin | ( | const common::UString & | a_subtransaction_name = "" | ) |
| bool nemiver::common::Transaction::commit | ( | const common::UString & | a_subtransaction_name = "" | ) |
Referenced by nemiver::common::TransactionAutoHelper::end().
| Connection& nemiver::common::Transaction::get_connection | ( | ) |
| long long nemiver::common::Transaction::get_id | ( | ) |
| Glib::Mutex& nemiver::common::Transaction::get_mutex | ( | ) | const |
| bool nemiver::common::Transaction::is_commited | ( | ) |
| Transaction& nemiver::common::Transaction::operator= | ( | const Transaction & | ) |
| bool nemiver::common::Transaction::rollback | ( | ) |
|
friend |
1.8.17