MAK Data Logger API Documentation for DIS
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;
17 {
18 public:
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 Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)