libimgdoc2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
imgdoc2::IDatabaseTransaction Class Referenceabstract

Interface for controlling database transactions. More...

#include <IDatabaseTransaction.h>

Inheritance diagram for imgdoc2::IDatabaseTransaction:
imgdoc2::IDocWrite2d imgdoc2::IDocWrite3d

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
 
IDatabaseTransactionoperator= (const IDatabaseTransaction &)=delete
 
 IDatabaseTransaction (IDatabaseTransaction &&)=delete
 
IDatabaseTransactionoperator= (IDatabaseTransaction &&)=delete
 

Detailed Description

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.

Member Function Documentation

◆ BeginTransaction()

virtual void imgdoc2::IDatabaseTransaction::BeginTransaction ( )
pure virtual

Begins a transaction. Nested transactions are not allowed, calling BeginTransaction multiple times (i.e. without ending the transaction) results in an exception.


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