MAK Data Logger API Documentation for DIS
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vlDatabase
sqlCommandFactory.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef sqlCommandFactory_H_
10
#define sqlCommandFactory_H_
11
12
#include "
databaseCommandFactory.h
"
13
#include "
databaseColumn.h
"
14
15
class
DtString;
16
class
DT_DLL_VLDB
DtSqlCommandFactory
:
public
DtDatabaseCommandFactory
17
{
18
public
:
19
DtSqlCommandFactory
();
20
virtual
~
DtSqlCommandFactory
();
21
22
// Request the creation of a database (currently, you must be connected to
23
// a master database to perform this operation)
24
virtual
DtString
createDatabase
(
const
DtString& databaseName );
25
26
// Request the creation of a database, if it exists (currently, you must be
27
// connected to a master database to perform this operation)
28
virtual
DtString
deleteDatabase
(
const
DtString& dbName );
29
31
virtual
DtString
createTable
(
const
DtDatabaseTable
& table);
32
34
virtual
DtString
deleteTable
(
const
DtDatabaseTable
& table);
35
37
virtual
void
insertTable
( std::vector<DtString>& commands,
const
DtDatabaseTable
& table);
38
39
virtual
DtString
updateTable
(
const
DtDatabaseTable
& table,
40
const
std::vector<DtString>& columnsToSet,
41
const
DtString& whereCondition);
42
44
virtual
DtString
createConditionString
(
const
DtDatabaseColumn
& column,
45
const
DtString& columnValue,
ConditionOperator
anOperator);
46
48
virtual
DtString
combineConditionStrings
(
const
DtString& conditionOne,
49
const
DtString& conditionTwo,
MergeOperator
anOperator );
50
51
protected
:
52
virtual
DtString createArgList(
const
DtDatabaseTable
& table);
53
virtual
DtString createColumnList(
const
DtDatabaseTable
& table);
54
virtual
DtString createColumnRep(
const
DtDatabaseColumn
& column);
55
virtual
DtString dataTypeToSqlString(
DtDatabaseColumn::DataType
storageType);
56
57
};
58
59
#endif
Document ID: Generated on Wed Jun 5 18:45:18 EDT 2019 from SVN revision 198968
Copyright © 2019 VT MAK. All Rights Reserved (
www.mak.com
)