MAK Data Logger API Documentation for HLA
databaseCommandFactory.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 databaseCommandFactory_H_
10 #define databaseCommandFactory_H_
11 
12 #include "vlDatabase.h"
13 #include <vector>
14 
15 class DtDatabaseTable;
16 class DtDatabaseColumn;
17 class DtString;
18 
22 {
23 public:
24 
26  {
28  NotEquals
29  };
30 
32  {
33  And,
34  Or
35  };
38 
40  virtual ~DtDatabaseCommandFactory();
41 
42  // Request the creation of a database (currently, you must be connected to
43  // a master database to perform this operation)
44  virtual DtString createDatabase( const DtString& databaseName ) = 0;
45 
46  // Request the creation of a database, if it exists (currently, you must be
47  // connected to a master database to perform this operation)
48  virtual DtString deleteDatabase( const DtString& dbName ) = 0;
49 
51  virtual DtString createTable( const DtDatabaseTable& table) = 0;
52 
54  virtual DtString deleteTable( const DtDatabaseTable& table) = 0;
55 
57  virtual void insertTable( std::vector<DtString>& commands, const DtDatabaseTable& table) = 0;
58 
60  virtual DtString updateTable( const DtDatabaseTable& table,
61  const std::vector<DtString>& columnsToSet,
62  const DtString& whereCondition) = 0;
63 
65  virtual DtString createConditionString( const DtDatabaseColumn& column,
66  const DtString& columnValue,ConditionOperator anOperator) = 0;
67 
69  virtual DtString combineConditionStrings( const DtString& conditionOne,
70  const DtString& conditionTwo, MergeOperator anOperator ) = 0;
71 
72 
73 };
74 
75 #endif

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)