|
ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
|
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>
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... | |
Helper class for transactions. Will lock the database interface from new transaction until commit() or rollback() is called or the object destroyed.
|
pure virtual |
Commits the transaction and release the lock on the database interface.
Implemented in ocpp::common::DatabaseTransaction.
|
pure virtual |
Aborts the transaction and release the lock on the database interface.
Implemented in ocpp::common::DatabaseTransaction.