All Classes Functions Variables
Persistor.hpp
1 #ifndef PERSISTOR_H
2 #define PERSISTOR_H
3 
4 class wxString;
5 class Entity;
6 class DatabaseAbstract;
7 class Table;
8 
9 class Persistor
10 {
11  public:
13  virtual ~Persistor();
14  void Presist( Entity * entity ) const;
15  void Delete( Entity * entity ) const;
16  void DeleteTable( const Table & table ) const;
17  protected:
18  private:
19  wxString PrepareStatementGetLastId( const Entity & entity ) const;
20  wxString PrepareStatementInsert( const Entity & entity ) const;
21  wxString PrepareStatementUpdate( const Entity & entity ) const;
22  wxString PrepareStatementDelete( const Entity & entity ) const;
23 
24  DatabaseAbstract * m_db;
25 };
26 
27 #endif // PERSISTOR_H