|
gSAFE
1.3.8
|
#include <datalib.h>
Public Slots | |
| int | readSql (void) |
| int | updateSql (void) |
Signals | |
| void | justReaded (void) |
| void | justUpdated (void) |
Signals inherited from HSqlHandler | |
| void | errorSignal (QString err) |
Public Member Functions | |
| HDynTableSqlConnector (HDynTable *dynt, QString tablename, QString filterpart="") | |
| void | insertSql (QString additionaldefpart="", QString additionalvaluepart="") |
| QString | sqlCreateString (QString switches="") |
Public Member Functions inherited from HSqlHandler | |
| HSqlHandler (void) | |
| ~HSqlHandler (void) | |
| QSqlQuery * | allocateQSqlQuery (void) |
| void | cloneSqlSettingsFrom (HSqlHandler *other) |
| void | commit (void) |
| bool | errorStatus (void) |
| void | rollback (void) |
| bool | submit0ResultQuery (QString q, QString err, bool tdisabled=false) |
| QVariant | submit1ResultQuery (QString q, QString err, bool tdisabled=false) |
| HPlainDataMatrix * | submitNResultQuery (int N, QString q, QString err, bool tdisabled=false) |
| void | transaction (void) |
| QSqlDatabase | workDB (void) |
Public Member Functions inherited from HSqlInterface | |
| HSqlInterface () | |
| ~HSqlInterface () | |
| void | cloneSqlInterfaceSettingsFrom (HSqlInterface *other) |
| HSqlSingleInterface * | myInterface (void) |
| QString | sqlConcatenateToLocal (QString string) |
| QString | sqlConcatenateToLocal (QStringList fields) |
Public Member Functions inherited from HBase | |
| HBase (void) | |
| ~HBase (void) | |
| QString | getWhoami (void) |
Public Attributes | |
| QString | errorText |
| bool | tdisabled |
Additional Inherited Members | |
Static Public Member Functions inherited from HSqlHandler | |
| static void | setCustomSqlDatabase (QString databaseName, QString sqlinterfacename="") |
| static void | setDefaultSqlDatabase (void) |
Static Public Member Functions inherited from HSqlInterface | |
| static HSqlSingleInterface * | currentDefaultSqlInterface (void) |
| static HSqlSingleInterface * | getSqlInterface (QString interfacename) |
| static void | setSqlMode (QString modename) |
| static void | setSqlModeBackToFirst (void) |
Static Public Attributes inherited from HSqlHandler | |
| static int | trans = 0 |
Protected Attributes inherited from HSqlHandler | |
| bool | query_error_occured |
Protected Attributes inherited from HBase | |
| QString | whoami |
This class can connect a HDynTable object to the sql database. It can read/update/insert the data according the emelent's sqlname attribute and the given parameters. (You can see an example in HDynTable describe)
|
inline |
| void HDynTableSqlConnector::insertSql | ( | QString | additionaldefpart = "", |
| QString | additionalvaluepart = "" |
||
| ) |
Inserts the content of table to the database according the parameters given to the constructor
| additionaldefpart | Additional fields to insert, definitions (Example: "id,lastmod") |
| additionalvaluepart | Additional filelds to insert, values (Example: "\'001\',now()") |
Definition at line 8318 of file datalib.cpp.
|
signal |
Emitted when the data just readed from the sql database
|
signal |
Emitted when the data just updated to the sql database
|
slot |
Reads the data from sql
Definition at line 8362 of file datalib.cpp.
| QString HDynTableSqlConnector::sqlCreateString | ( | QString | switches = "" | ) |
Generates the sql create (DDL) string of the meta table. (CREATE TABLE ...)
| switches | string can contain modifiers. Currently there is not implemented any modifier. |
Definition at line 8434 of file datalib.cpp.
|
slot |
Updates the data to the sql
Definition at line 8404 of file datalib.cpp.
| QString HDynTableSqlConnector::errorText |
This text is passed to the HSqlHandler when a new sql query started. Default is "Error in HDynTableSqlConnector"
| bool HDynTableSqlConnector::tdisabled |
1.8.5