ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | List of all members
ocpp::common::DatabaseTransactionInterface Class Referenceabstract

Helper class for transactions. Will lock the database interface from new transaction until commit() or rollback() is called or the object destroyed. More...

#include <database_connection.hpp>

Inheritance diagram for ocpp::common::DatabaseTransactionInterface:
ocpp::common::DatabaseTransaction

Public Member Functions

virtual ~DatabaseTransactionInterface ()=default
 Destructor of transaction: Will by default rollback unless commit() is called.
 
virtual void commit ()=0
 Commits the transaction and release the lock on the database interface. More...
 
virtual void rollback ()=0
 Aborts the transaction and release the lock on the database interface. More...
 

Detailed Description

Helper class for transactions. Will lock the database interface from new transaction until commit() or rollback() is called or the object destroyed.

Member Function Documentation

◆ commit()

virtual void ocpp::common::DatabaseTransactionInterface::commit ( )
pure virtual

Commits the transaction and release the lock on the database interface.

Implemented in ocpp::common::DatabaseTransaction.

◆ rollback()

virtual void ocpp::common::DatabaseTransactionInterface::rollback ( )
pure virtual

Aborts the transaction and release the lock on the database interface.

Implemented in ocpp::common::DatabaseTransaction.


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