Environment configuration Data Access Object (DAO).
More...
|
| BaseObject (const BaseObject &other) |
| Copy constructor. More...
|
|
void | info (const std::string &functionName, const std::string &message) const |
| Print info message into logger. More...
|
|
void | debug (const std::string &functionName, const std::string &message) const |
| Print debug message into logger. More...
|
|
void | warn (const std::string &functionName, const std::string &message) const |
| Print warning message into logger. More...
|
|
void | errorMissingParameter (const std::string ¶meterName) const |
| Use in automation process to throw exception when a parameter is missing from the XML scenario file. More...
|
|
Environment configuration Data Access Object (DAO).
This DAO is used to insert, select and delete environment configurations from the database. This class in not intended to be used by regular users who should deal with EnvironmentConfigurationDaoService instead.
◆ EnvironmentConfigurationDao()
PARTONS::EnvironmentConfigurationDao::EnvironmentConfigurationDao |
( |
| ) |
|
◆ ~EnvironmentConfigurationDao()
PARTONS::EnvironmentConfigurationDao::~EnvironmentConfigurationDao |
( |
| ) |
|
|
virtual |
◆ getConfigurationByIndexId()
std::string PARTONS::EnvironmentConfigurationDao::getConfigurationByIndexId |
( |
const int |
indexId | ) |
const |
Retrieve environment configuration by given unique id.
- Parameters
-
indexId | Unique id of row containing environment configuration to be selected. |
- Returns
- String containing environment configuration.
◆ getEnvironmentConfigurationFromQuery()
EnvironmentConfiguration * PARTONS::EnvironmentConfigurationDao::getEnvironmentConfigurationFromQuery |
( |
QSqlQuery & |
query | ) |
const |
|
private |
◆ getEnvironmentConfigurationIdByHashSum()
int PARTONS::EnvironmentConfigurationDao::getEnvironmentConfigurationIdByHashSum |
( |
const std::string & |
md5 | ) |
const |
Retrieve unique id of row containing environment configuration in the database by given hash sum.
- Parameters
-
md5 | Hash sum of environment configuration to be selected. |
- Returns
- Unique id of database entry that matches with hash sum value.
◆ insert()
int PARTONS::EnvironmentConfigurationDao::insert |
( |
const time_t & |
storeDate, |
|
|
const std::string & |
configuration, |
|
|
const std::string & |
md5 |
|
) |
| const |
Insert environment configuration into the database.
- Parameters
-
storeDate | Insertion time. |
configuration | Environment configuration to be stored. |
md5 | Hash sum of environment configuration. |
- Returns
- Unique id of inserted row in the database.
◆ selectByIndexId()
Try to find an entry in the database containing environment configuration that matches with given unique id value.
- Parameters
-
indexId | Unique id of database entry to be found. |
- Returns
- Pointer to EnvironmentConfiguration object filled with the retrieved data or null pointer if couldn't find it.
The documentation for this class was generated from the following files: