ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/DBS/Servers/AppServer/include/Managers.hpp
Revision: 1.5
Committed: Thu Jan 19 22:56:32 2006 UTC (19 years, 3 months ago) by sekhri
Branch: MAIN
CVS Tags: BeforeJan2006SchemaChanges
Changes since 1.4: +35 -160 lines
Log Message:
Removed Message layer completely from the Server

File Contents

# Content
1 #ifndef _MANAGER_H_
2 #define _MANAGER_H_
3 ///Class that creates a manager
4 ///parent class of all managers
5 /// creates DBManager
6
7
8 #include "DBManagement.hpp"
9 #include "TableInterface.hpp"
10 #include "ObjectLayerTables.hpp"
11 #include "TableInterface.hpp"
12 #include "Util.hpp"
13 #include <string>
14 #include "RowInterface.hpp"
15 #include <log4cxx/logger.h>
16
17
18 typedef vector<RowInterface*> Rows;
19 typedef Rows::iterator RowIter;
20
21 class Manager {
22
23 public:
24
25 Manager();
26 Manager(std::string, std::string);
27
28 int doInsert(TableInterface* inTable);
29 int doWrite(TableInterface* inTable, std::string name);
30 int doWrite(TableInterface* inTable, RowInterface* aRow, std::string name);
31 std::string makeClause(TableInterface* inTable, RowInterface* aRow);
32 virtual ~Manager();
33 void cleanup();
34
35 protected:
36 DBManagement* dbManager;
37 Util util;
38 Dictionary* schema;
39 log4cxx::LoggerPtr logger;
40 };
41
42
43 class PrimaryDatasetManager : public Manager {
44 public:
45 PrimaryDatasetManager();
46 int write(Primarydatasetmultirow* aRow, PrimarydatasetMultiTable* table);
47 int read(Primarydatasetmultirow* aRow, PrimarydatasetMultiTable* table);
48 ~PrimaryDatasetManager();
49
50 };
51
52 class ProcessedDatasetManager : public Manager {
53 public:
54 ProcessedDatasetManager();
55 int write(Processingpathmultirow* aRow, ProcessingpathMultiTable* table);
56 int read(Processingpathmultirow* aRow, ProcessingpathMultiTable* table);
57 ~ProcessedDatasetManager();
58 };
59
60 class ECManager : public Manager {
61 public:
62 ECManager();
63 int write(Evcollviewmultirow* aRow, EvcollviewMultiTable* table);
64 int read(Evcollviewmultirow* aRow, EvcollviewMultiTable* table);
65 ~ECManager();
66 };
67
68 class FileManager : public Manager {
69 public:
70 FileManager();
71 int write(std::vector<Fileviewmultirow*> rowVector, FileviewMultiTable* table);
72 int read(Fileviewmultirow* aRow, FileviewMultiTable* table);
73 ~FileManager();
74 };
75
76 class BlockManager : public Manager {
77 public:
78 BlockManager();
79 int write(Blockviewmultirow* aRow, BlockviewMultiTable* table);
80 int read(Blockviewmultirow* aRow, BlockviewMultiTable* table);
81 ~BlockManager();
82 };
83
84
85 class DatasetProvcChildManager : public Manager {
86 public:
87 DatasetProvcChildManager();
88 int write(Datasetprovenenceevchildmultirow* aRow, DatasetprovenenceevchildMultiTable* table);
89 int read(Datasetprovenenceevchildmultirow* aRow, DatasetprovenenceevchildMultiTable* table);
90 ~DatasetProvcChildManager();
91 };
92
93 class DatasetProvcParentManager : public Manager {
94 public:
95 DatasetProvcParentManager();
96 int write(Datasetprovenenceevparentmultirow* aRow, DatasetprovenenceevparentMultiTable* table);
97 int read(Datasetprovenenceevparentmultirow* aRow, DatasetprovenenceevparentMultiTable* table);
98 ~DatasetProvcParentManager();
99 };
100
101 class CrabECManager : public Manager {
102 public:
103 CrabECManager();
104 int write(Crabevcollviewmultirow* aRow, CrabevcollviewMultiTable* table);
105 int read(Crabevcollviewmultirow* aRow, CrabevcollviewMultiTable* table);
106 ~CrabECManager();
107 };
108
109 #endif