Wt  4.11.1
Public Member Functions | List of all members
Wt::Auth::AbstractUserDatabase::Transaction Class Referenceabstract

An abstract transaction. More...

#include <AbstractUserDatabase.h>

Inherited by Wt::Auth::Dbo::UserDatabase< DboType >::TransactionImpl.

Public Member Functions

virtual ~Transaction () noexcept(false)
 Destructor. More...
 
virtual void commit ()=0
 Commits the transaction. More...
 
virtual void rollback ()=0
 Rolls back the transaction. More...
 

Detailed Description

An abstract transaction.

An abstract transaction interface.

See also
startTransaction()

Constructor & Destructor Documentation

◆ ~Transaction()

Wt::Auth::AbstractUserDatabase::Transaction::~Transaction ( )
virtualnoexcept

Destructor.

If the transaction is not yet finished (committed or rolled back), it will be rolled back.

See also
rollback()

Member Function Documentation

◆ commit()

virtual void Wt::Auth::AbstractUserDatabase::Transaction::commit ( )
pure virtual

Commits the transaction.

See also
rollback()

◆ rollback()

virtual void Wt::Auth::AbstractUserDatabase::Transaction::rollback ( )
pure virtual

Rolls back the transaction.

See also
commit()