![]() |
MAK Data Logger API Documentation for DIS
|
Abstract Database command factory. More...
Inheritance diagram for DtDatabaseCommandFactory:Public Types | |
| enum | ConditionOperator { Equals, NotEquals } |
| enum | MergeOperator { And, Or } |
Public Member Functions | |
| DtDatabaseCommandFactory () | |
| Default CTOR. More... | |
| virtual | ~DtDatabaseCommandFactory () |
| Default DTOR. More... | |
| virtual DtString | createDatabase (const DtString &databaseName)=0 |
| virtual DtString | deleteDatabase (const DtString &dbName)=0 |
| virtual DtString | createTable (const DtDatabaseTable &table)=0 |
| Generate the command to create a table. More... | |
| virtual DtString | deleteTable (const DtDatabaseTable &table)=0 |
| Generate the command to delete a table. More... | |
| virtual void | insertTable (std::vector< DtString > &commands, const DtDatabaseTable &table)=0 |
| Generate the commands to insert data from the table. More... | |
| virtual DtString | updateTable (const DtDatabaseTable &table, const std::vector< DtString > &columnsToSet, const DtString &whereCondition)=0 |
| Generate the command to update data in the table. More... | |
| virtual DtString | createConditionString (const DtDatabaseColumn &column, const DtString &columnValue, ConditionOperator anOperator)=0 |
| Create a condition string. More... | |
| virtual DtString | combineConditionStrings (const DtString &conditionOne, const DtString &conditionTwo, MergeOperator anOperator)=0 |
| Create a condition string from two existing conditions. More... | |
Abstract Database command factory.
Provides interface for creating properly formed database commands/queries.
| DtDatabaseCommandFactory::DtDatabaseCommandFactory | ( | ) |
Default CTOR.
|
virtual |
Default DTOR.
|
pure virtual |
Create a condition string from two existing conditions.
Implemented in DtAccessCommandFactory, and DtSqlCommandFactory.
|
pure virtual |
Create a condition string.
Implemented in DtAccessCommandFactory, and DtSqlCommandFactory.
|
pure virtual |
Implemented in DtAccessCommandFactory, and DtSqlCommandFactory.
|
pure virtual |
Generate the command to create a table.
Implemented in DtAccessCommandFactory, and DtSqlCommandFactory.
|
pure virtual |
Implemented in DtAccessCommandFactory, and DtSqlCommandFactory.
|
pure virtual |
Generate the command to delete a table.
Implemented in DtAccessCommandFactory, and DtSqlCommandFactory.
|
pure virtual |
Generate the commands to insert data from the table.
Implemented in DtAccessCommandFactory, and DtSqlCommandFactory.
|
pure virtual |
Generate the command to update data in the table.
Implemented in DtAccessCommandFactory, and DtSqlCommandFactory.