![]() |
libimgdoc2
|
Interface for controlling database transactions. More...
#include <IDatabaseTransaction.h>
Public Member Functions | |
virtual void | BeginTransaction ()=0 |
virtual void | CommitTransaction ()=0 |
Commits a pending transaction. | |
virtual void | RollbackTransaction ()=0 |
Rolls back a pending transaction. | |
IDatabaseTransaction (const IDatabaseTransaction &)=delete | |
IDatabaseTransaction & | operator= (const IDatabaseTransaction &)=delete |
IDatabaseTransaction (IDatabaseTransaction &&)=delete | |
IDatabaseTransaction & | operator= (IDatabaseTransaction &&)=delete |
Interface for controlling database transactions.
A transaction is started with calling into BeginTransaction. All write/modify-operations after this call are then part of the transaction. The transaction is then completed by calling CommitTransaction, or dismissed by calling into RollbackTransaction. Note that nested transactions are not supported.
|
pure virtual |
Begins a transaction. Nested transactions are not allowed, calling BeginTransaction multiple times (i.e. without ending the transaction) results in an exception.