PARTONS
|
PARtonic Tomography Of Nucleon Software
|
Basic object storing database information. More...
Static Public Member Functions | |
static int | getNumberOfRows (const QSqlQuery &query) |
If position in given query is set to the last record, return number of records and set position to -1. More... | |
static int | execSelectQuery (QSqlQuery &query) |
Execute SQL SELECT-like query. More... | |
static std::string | getLastExecutedQuery (const QSqlQuery &query) |
Get the last executed query. More... | |
static bool | checkUniqueResult (const std::string &className, const std::string &funcName, const unsigned int resultSize, const QSqlQuery &query) |
Check if the result of given query contains only one record. More... | |
static bool | checkManyResults (const std::string &className, const std::string &funcName, const unsigned int resultSize, const QSqlQuery &query) |
Check if the result of given query contains any record. More... | |
static std::string | getPreFormatedColumnNamesFromVector (const std::vector< std::string > &columnNames) |
Get pre-formated string containing column names. More... | |
static std::string | getPreFormatedColumnValuesFromVector (const std::vector< std::string > &columnValues) |
Get pre-formated string containing column values. More... | |
Static Public Attributes | |
static const std::string | TABLE_NAME_COMPUTATION = "computation" |
static const std::string | COLUMN_NAME_COMPUTATION_ID = "computation_id" |
static const std::string | COLUMN_NAME_COMPUTATION_MODULE_NAME |
static const std::string | TABLE_NAME_SCENARIO = "scenario" |
static const std::string | COLUMN_NAME_SCENARIO_ID = "scenario_id" |
static const std::string | COLUMN_NAME_SCENARIO_STORE_DATE |
static const std::string | COLUMN_NAME_SCENARIO_DESCRIPTION |
static const std::string | COLUMN_NAME_SCENARIO_XML_FILE = "scenario_xml_file" |
static const std::string | COLUMN_NAME_SCENARIO_HASH_SUM = "scenario_hash_sum" |
static const std::string | TABLE_NAME_ENVIRONMENT_CONFIGURATION |
static const std::string | COLUMN_NAME_ENVIRONMENT_CONFIGURATION_ID |
static const std::string | COLUMN_NAME_ENVIRONMENT_CONFIGURATION_STORE_DATE |
static const std::string | COLUMN_NAME_ENVIRONMENT_CONFIGURATION_CONFIGURATION |
static const std::string | COLUMN_NAME_ENVIRONMENT_CONFIGURATION_HASH_SUM |
static const std::string | TABLE_NAME_GPD_KINEMATIC = "gpd_kinematic" |
static const std::string | COLUMN_NAME_GPD_KINEMATIC_ID = "gpd_kinematic_id" |
static const std::string | TABLE_NAME_GPD_RESULT = "gpd_result" |
static const std::string | COLUMN_NAME_GPD_RESULT_ID = "gpd_result_id" |
static const std::string | TABLE_NAME_COLLINEAR_DISTRIBUTION_KINEMATIC = "collinear_distribution_kinematic" |
static const std::string | COLUMN_NAME_COLLINEAR_DISTRIBUTION_KINEMATIC_ID = "collinear_distribution_kinematic_id" |
static const std::string | TABLE_NAME_COLLINEAR_DISTRIBUTION_RESULT = "collinear_distribution_result" |
static const std::string | COLUMN_NAME_COLLINEAR_DISTRIBUTION_RESULT_ID = "collinear_distribution_result_id" |
static const std::string | COLUMN_NAME_PARTON_DISTRIBUTION_ID |
static const std::string | TABLE_NAME_OBSERVABLE_KINEMATIC |
static const std::string | COLUMN_NAME_OBSERVABLE_KINEMATIC_ID |
static const std::string | TABLE_NAME_OBSERVABLE_RESULT = "observable_result" |
static const std::string | COLUMN_NAME_OBSERVABLE_RESULT_ID |
static const std::string | COLUMN_NAME_OBSERVABLE_NAME = "observable_name" |
static const std::string | COLUMN_NAME_OBSERVABLE_VALUE = "observable_value" |
static const std::string | COLUMN_NAME_GPD_TYPE_ID = "gpd_type_id" |
static const std::string | COLUMN_NAME_COLLINEAR_DISTRIBUTION_TYPE_ID = "collinear_distribution_type_id" |
static const std::string | COLUMN_NAME_GLUON_DISTRIBUTION |
static const std::string | COLUMN_NAME_QUARK_FLAVOR_ID = "quark_flavor_id" |
static const std::string | COLUMN_NAME_QUARK_DISTRIBUTION |
static const std::string | COLUMN_NAME_QUARK_DISTRIBUTION_PLUS |
static const std::string | COLUMN_NAME_QUARK_DISTRIBUTION_MINUS |
static const std::string | TABLE_NAME_CCF_KINEMATIC = "ccf_kinematic" |
static const std::string | COLUMN_NAME_CCF_KINEMATIC_ID = "ccf_kinematic_id" |
static const std::string | TABLE_NAME_CCF_RESULT = "ccf_result" |
static const std::string | COLUMN_NAME_CCF_RESULT_ID = "ccf_result_id" |
Basic object storing database information.
It stores names of tables and columns used in all kinds of database queries. In addition, it provides a set of useful tools for handling the queries.
|
static |
Check if the result of given query contains any record.
className | Name of class to be used in eventual exception. |
funcName | Name of function to be used in eventual exception. |
resultSize | Number of records returned by given query. |
query | Input QSqlQuery query. |
|
static |
Check if the result of given query contains only one record.
If 0 or 1 result returns false or true, respectively, if >1 throw exception.
className | Name of class to be used in eventual exception. |
funcName | Name of function to be used in eventual exception. |
resultSize | Number of records returned by given query. |
query | Input QSqlQuery query. |
|
static |
Execute SQL SELECT-like query.
query | Input QSqlQuery query. |
|
static |
Get the last executed query.
query | Input QSqlQuery query. |
|
static |
If position in given query is set to the last record, return number of records and set position to -1.
Otherwise, return 0.
query | Input QSqlQuery query. |
|
static |
Get pre-formated string containing column names.
columnNames | Vector containing column names. |
|
static |
Get pre-formated string containing column values.
columnValues | Vector containing column values. |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |