1 |
#ifndef _TableInterface_hpp_included_
|
2 |
#define _TableInterface_hpp_included_
|
3 |
|
4 |
|
5 |
#include <iostream>
|
6 |
#include "DBManagement.hpp"
|
7 |
#include "RowInterface.hpp"
|
8 |
#include "common.hpp"
|
9 |
|
10 |
|
11 |
class TableInterface {
|
12 |
|
13 |
public:
|
14 |
//Default constructor
|
15 |
TableInterface(){
|
16 |
//static Log l("TableTemplate", "../../var/log/server.log");
|
17 |
//this->logger = l.getLogger();
|
18 |
};
|
19 |
TableInterface(DBManagement*){};
|
20 |
virtual ~TableInterface(){};
|
21 |
|
22 |
virtual void delRows(){};
|
23 |
virtual void addRow(RowInterface* aRow){};
|
24 |
virtual void insert(){};
|
25 |
virtual void update(){};
|
26 |
//virtual std::vector<RowInterface*>& select(std::string whereClause){cout<<"INSIDE VIRTUAL SELECT"<<endl; };
|
27 |
virtual std::string* getTableName(){};
|
28 |
virtual void setDBManager(DBManagement*){};
|
29 |
virtual Dictionary* getSchema(){cout<<"INSIDE VIRTUAL"<<endl; };
|
30 |
virtual Dictionary* getMultiRefrence(){cout<<"INSIDE VIRTUAL"<<endl; };
|
31 |
protected:
|
32 |
//static log4cxx::LoggerPtr logger;
|
33 |
};
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
#endif
|
39 |
|