29 friend class StorageCommon;
30 friend class CursorCommon;
51 mutable std::map<uint32_t, CursorCommon*>
cursors;
An object to manage cursor internals and state.
Definition cursorcommon.h:31
Definition storagecommon.h:33
bool active
Transaction state.
Definition transaction.h:49
TransactionID txn
Transaction inner handler.
Definition transaction.h:48
virtual ~Transaction()
Destroys transaction.
Definition transaction.cpp:80
void reset()
Resets inner transaction properties to inactive state.
Definition transaction.cpp:125
void closeCursors()
Closes attached curors;.
Definition transaction.cpp:135
std::map< uint32_t, CursorCommon * > cursors
a collection of cursors curently opened under this transaction
Definition transaction.h:51
void terminate()
Terminates transaction if it was active.
Definition transaction.cpp:112
Transaction()
Constructs inactive transaction.
Definition transaction.cpp:42
const Base * parent
Pointer to the database this transaction belongs to.
Definition transaction.h:50
bool isActive() const
Returns transaction states.
Definition transaction.cpp:145
WriteTransaction()
Constructs inactive write transaction.
Definition transaction.cpp:182
void commit()
Commits transaction submitting all changes.
Definition transaction.cpp:213
void abort()
Aborts transaction cancelling all changes.
Definition transaction.cpp:204