ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | List of all members
ocpp::common::DatabaseTransaction Class Reference
Inheritance diagram for ocpp::common::DatabaseTransaction:
ocpp::common::DatabaseTransactionInterface

Public Member Functions

 DatabaseTransaction (DatabaseConnection &database, std::unique_lock< std::timed_mutex > mutex)
 
void commit () override
 Commits the transaction and release the lock on the database interface. More...
 
void rollback () override
 Aborts the transaction and release the lock on the database interface. More...
 
- Public Member Functions inherited from ocpp::common::DatabaseTransactionInterface
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...
 

Member Function Documentation

◆ commit()

void ocpp::common::DatabaseTransaction::commit ( )
inlineoverridevirtual

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

Implements ocpp::common::DatabaseTransactionInterface.

◆ rollback()

void ocpp::common::DatabaseTransaction::rollback ( )
inlineoverridevirtual

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

Implements ocpp::common::DatabaseTransactionInterface.


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