Computation information 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...
|
|
Computation information Data Access Object (DAO).
This DAO is used to insert, select and delete computation information from the database. This class in not intended to be used by regular users who should deal with ComputationDaoService instead.
◆ ComputationDao()
PARTONS::ComputationDao::ComputationDao |
( |
| ) |
|
◆ ~ComputationDao()
PARTONS::ComputationDao::~ComputationDao |
( |
| ) |
|
|
virtual |
◆ fillComputation()
void PARTONS::ComputationDao::fillComputation |
( |
Computation & |
computation, |
|
|
QSqlQuery & |
query |
|
) |
| const |
|
private |
Fill Computation object from given query.
- Parameters
-
computation | Computation object to be filled. |
query | Input QSqlQuery query. |
◆ getByComputationId()
Computation PARTONS::ComputationDao::getByComputationId |
( |
const int |
indexId | ) |
const |
Retrieve computation information from the database by given unique id of row.
- Parameters
-
indexId | Unique id of row in the database to be selected. |
- Returns
- Computation object containing computation information retrieved from the database.
◆ getComputationIdByDateTime()
int PARTONS::ComputationDao::getComputationIdByDateTime |
( |
const time_t & |
dateTime | ) |
const |
Retrieve computation information from the database by given computation time.
- Parameters
-
- Returns
- Unique id of selected row in the database.
◆ insert()
int PARTONS::ComputationDao::insert |
( |
const time_t & |
dateTime, |
|
|
const int |
environmentConfigurationId |
|
) |
| const |
Insert computation information into the database.
- Parameters
-
dateTime | Computation time. |
environmentConfigurationId | Unique id of row in the database containing environment configuration information associated to this result. |
- Returns
- Unique id of inserted row in the database.
◆ insertIntoScenarioComputation()
int PARTONS::ComputationDao::insertIntoScenarioComputation |
( |
const unsigned int |
scenarioTaskIndexNumber, |
|
|
const int |
scenarioId, |
|
|
const int |
computationId |
|
) |
| const |
Associate row in the database representing Task in Scenario object to that representing Computation.
- Parameters
-
scenarioTaskIndexNumber | Task object index in given Scenario. |
scenarioId | Unique id of row in the database representing Scenario object. |
computationId | Unique id of row in the database representing Computation object. |
- Returns
- Unique id of inserted row in the database.
◆ isAvailable()
bool PARTONS::ComputationDao::isAvailable |
( |
const int |
computationId | ) |
const |
Check if row containing computation information of given id exists in the database.
- Parameters
-
computationId | Unique id to be checked. |
- Returns
- True if requested information is available, false otherwise.
The documentation for this class was generated from the following files: