Transaction interface.
More...
#include <transaction.hpp>
Constructor.
- Parameters
-
[in] | name_ | name of the transaction (for logging purpose only) |
[in] | stm_ | database interface needed by the virtual machine to execute the transaction |
virtual _Wolframe::db::Transaction::~Transaction |
( |
| ) |
|
|
inlinevirtual |
_Wolframe::db::Transaction::Transaction |
( |
const Transaction & |
| ) |
|
|
inlineprivate |
void _Wolframe::db::Transaction::begin |
( |
| ) |
|
Begin of a new transaction.
void _Wolframe::db::Transaction::close |
( |
| ) |
|
|
inline |
Close of the committed or rolled back transaction.
void _Wolframe::db::Transaction::commit |
( |
| ) |
|
Commit of the running transaction.
const std::string& _Wolframe::db::Transaction::databaseID |
( |
| ) |
const |
|
inline |
Configured ID of the underlaying database.
Get the lower lever database specific execution statemachine of the transaction.
Execute a transaction.
- Returns
- true if successful, otherwise false (use getLastError to get details)
bool _Wolframe::db::Transaction::executeStatement |
( |
Result & |
result, |
|
|
const std::string & |
stm, |
|
|
const std::vector< types::Variant > & |
params = std::vector< types::Variant >() |
|
) |
| |
Execute a single statement with result.
- Returns
- true if successful, otherwise false (use getLastError to get details)
bool _Wolframe::db::Transaction::executeStatement |
( |
const std::string & |
stm, |
|
|
const std::vector< types::Variant > & |
params = std::vector< types::Variant >() |
|
) |
| |
Execute a single statement without result.
- Returns
- true if successful, otherwise false (use getLastError to get details)
const DatabaseError* _Wolframe::db::Transaction::getLastError |
( |
| ) |
const |
|
inline |
Get the last error occurred.
const std::string& _Wolframe::db::Transaction::name |
( |
| ) |
const |
|
inline |
Get the name of the transaction.
void _Wolframe::db::Transaction::rollback |
( |
| ) |
|
Rollback of the running transaction.
std::string _Wolframe::db::Transaction::m_name |
|
private |
The documentation for this class was generated from the following file: