GlobalObjects
Lade ...
Suche ...
Keine Treffer
GloGenericPersistent.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_GLOGENERICPERSISTENT_H
2#define INC_GLOGENERICPERSISTENT_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include "GloTypes.h"
45#include "GloBasePersistent.h"
46#include "GloGenPersObjectSpy.h"
47//-----------------------------------------------------------------------------
48namespace glo
49{
50 //---------------------------------------------------------------------------
91 {
92 private:
93 //============== Attribute
94 //-----------------------------------------------------------------------
104 unsigned long m_ulClassID;
105 //-----------------------------------------------------------------------
106
107 private:
108 //============== Constructor
109 //-----------------------------------------------------------------------
120 //-----------------------------------------------------------------------
121
122 public:
123 //============== Constructor
124 //-----------------------------------------------------------------------
140 GenericPersistent( unsigned long ulDBClassID );
141 //-----------------------------------------------------------------------
142
143 protected:
144 //============== Destructor
145 //-----------------------------------------------------------------------
162 //-----------------------------------------------------------------------
163
164 private:
165 //============== Konstruktoren
166 //-----------------------------------------------------------------------
177 //-----------------------------------------------------------------------
178
179 public:
180 //============== Methoden
181 //-----------------------------------------------------------------------
193 virtual void removeBase() override;
194 //-----------------------------------------------------------------------
208 ObjID getObjID() const override;
209 //-----------------------------------------------------------------------
219 virtual unsigned long getGloClassID() const override;
220 //-----------------------------------------------------------------------
234 virtual int getTypeAsString( std::string & rsTypeName ) override;
235 //-----------------------------------------------------------------------
247 virtual std::time_t getCreateDate() const override;
248 //-----------------------------------------------------------------------
260 virtual std::time_t getLastChangeDate() const override;
261 //-----------------------------------------------------------------------
275 virtual void takeOverRecord( Record * pRecord ) override;
276 //-----------------------------------------------------------------------
277 #ifdef _DEBUG
278 //-----------------------------------------------------------------------
279 virtual unsigned int remember() override;
280 //-----------------------------------------------------------------------
281 virtual unsigned int forget() override;
282 //-----------------------------------------------------------------------
283 #endif // _DEBUG
284 //-----------------------------------------------------------------------
285
286
287 protected:
288 //============== Methoden
289 //-----------------------------------------------------------------------
299 virtual void insertInObjectSpy() const override;
300 //-----------------------------------------------------------------------
310 virtual void removeInObjectSpy() const override;
311 //-----------------------------------------------------------------------
321 virtual void setCreateDate() override;
322 //-----------------------------------------------------------------------
323
324 public:
325 //============== Operatoren
326 //-----------------------------------------------------------------------
328
339 bool operator== ( const GenericPersistent & rT ) const;
340 bool operator!= ( const GenericPersistent & rT ) const;
342 //-----------------------------------------------------------------------
343
344 private:
345 //-----------------------------------------------------------------------
355 GenericPersistent & operator= ( const GenericPersistent & );
356 //-----------------------------------------------------------------------
357 };
358 //---------------------------------------------------------------------------
359} // namespace glo
360#endif
Header für BasePersistent
Header für GenPersObjectSpy
Für jede Bibliothek, hier 'GlobalObjects' gibt es eine Typen-Datei.
#define __glo_export_dll
Definition GloTypes.h:70
Abstrakte Basisklasse für Persistent und die generische GenericPersistent.
Definition GloBasePersistent.h:124
Generische persistente Klasse. Benötigt keinen ObjCreator oder ObjectMaker. Es können Objekte aus der...
Definition GloGenericPersistent.h:91
virtual void removeInObjectSpy() const override
virtual std::time_t getCreateDate() const override
virtual void removeBase() override
virtual ~GenericPersistent()
virtual unsigned int remember() override
GenericPersistent(unsigned long ulDBClassID)
ObjID getObjID() const override
virtual unsigned int forget() override
virtual void insertInObjectSpy() const override
virtual unsigned long getGloClassID() const override
virtual int getTypeAsString(std::string &rsTypeName) override
virtual std::time_t getLastChangeDate() const override
virtual void setCreateDate() override
GenericPersistent(const GenericPersistent &)
unsigned long m_ulClassID
Definition GloGenericPersistent.h:104
virtual void takeOverRecord(Record *pRecord) override
Ein Objekt-ID besteht aus der Klassen-ID, einer Datenbank-ID und der eigentlichen eindeutigen ObjektZ...
Definition GloObjID.h:84
Objekte dieser Klasse transportieren die Daten von den Tabellen ins persistente Objekt und von diesen...
Definition GloRecord.h:108
Definition GloAbstractBaseLot.h:49