ScopedTransaction(te::da::DataSourceTransactor &transactor)
Constructor.
void commit()
It commits the transaction.
virtual void begin()=0
It starts a new transaction.
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...
~ScopedTransaction()
Destructor.
An utitily class to coordinate transactions.
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...
te::da::DataSourceTransactor & m_t
A reference to the underlying transactor.
bool m_rollback
A flag that indicates if the transaction may be aborted at the end.
virtual bool isInTransaction() const =0
It returns true if a transaction is in progress, otherwise, it returns false.