1 #ifndef INCLUDE_ORA_SCOPEDTRANSACTION_H
2 #define INCLUDE_ORA_SCOPEDTRANSACTION_H
24 bool start(
bool readOnly=
true );
33 bool isActive(
bool checkIfReadOnly=
false )
const;
bool start(bool readOnly=true)
Starts a new transaction. Returns the success of the operation.
ScopedTransaction(Transaction &dbTransaction)
bool commit()
Commits the transaction.
bool isActive(bool checkIfReadOnly=false) const
Checks if the transaction is active.
Transaction & m_dbTransaction
virtual ~ScopedTransaction()
Default destructor.
bool rollback()
Rolls back the transaction.