GlobalObjects
Loading...
Searching...
No Matches
GloGenericPersistent.h
Go to the documentation of this file.
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 for BasePersistent
Header for GenPersObjectSpy
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:70
Abstract base class for Persistent and the generic GenericPersistent.
Definition GloBasePersistent.h:124
Generic persistent class. Does not require ObjCreator or ObjectMaker. Objects from the database can b...
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
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:84
Objects of this class transport the data from the tables into the persistent object and from these ag...
Definition GloRecord.h:108
Definition GloAbstractBaseLot.h:49