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//-----------------------------------------------------------------------------
36//-----------------------------------------------------------------------------
37#include "GloTypes.h"
38#include "GloBasePersistent.h"
39#include "GloGenPersObjectSpy.h"
40//-----------------------------------------------------------------------------
41namespace glo
42{
43 //---------------------------------------------------------------------------
84 {
85 private:
86 //============== Attribute
87 //-----------------------------------------------------------------------
97 unsigned long m_ulClassID;
98 //-----------------------------------------------------------------------
99
100 private:
101 //============== Constructor
102 //-----------------------------------------------------------------------
113 //-----------------------------------------------------------------------
114
115 public:
116 //============== Constructor
117 //-----------------------------------------------------------------------
132 GenericPersistent( unsigned long ulDBClassID );
133 //-----------------------------------------------------------------------
134
135 protected:
136 //============== Destructor
137 //-----------------------------------------------------------------------
154 //-----------------------------------------------------------------------
155
156 private:
157 //============== Konstruktoren
158 //-----------------------------------------------------------------------
169 //-----------------------------------------------------------------------
170
171 public:
172 //============== Methoden
173 //-----------------------------------------------------------------------
185 virtual void removeBase() override;
186 //-----------------------------------------------------------------------
200 ObjID getObjID() const override;
201 //-----------------------------------------------------------------------
211 virtual unsigned long getGloClassID() const override;
212 //-----------------------------------------------------------------------
226 virtual int getTypeAsString( std::string & rsTypeName ) override;
227 //-----------------------------------------------------------------------
239 virtual std::time_t getCreateDate() const override;
240 //-----------------------------------------------------------------------
252 virtual std::time_t getLastChangeDate() const override;
253 //-----------------------------------------------------------------------
267 virtual void takeOverRecord( Record * pRecord ) override;
268 //-----------------------------------------------------------------------
269 #ifdef _DEBUG
270 //-----------------------------------------------------------------------
271 virtual unsigned int remember() override;
272 //-----------------------------------------------------------------------
273 virtual unsigned int forget() override;
274 //-----------------------------------------------------------------------
275 #endif // _DEBUG
276 //-----------------------------------------------------------------------
277
278
279 protected:
280 //============== Methoden
281 //-----------------------------------------------------------------------
291 virtual void insertInObjectSpy() const override;
292 //-----------------------------------------------------------------------
302 virtual void removeInObjectSpy() const override;
303 //-----------------------------------------------------------------------
313 virtual void setCreateDate() override;
314 //-----------------------------------------------------------------------
315
316 public:
317 //============== Operatoren
318 //-----------------------------------------------------------------------
320
331 bool operator== ( const GenericPersistent & rT ) const;
332 bool operator!= ( const GenericPersistent & rT ) const;
334 //-----------------------------------------------------------------------
335
336 private:
337 //-----------------------------------------------------------------------
347 GenericPersistent & operator= ( const GenericPersistent & );
348 //-----------------------------------------------------------------------
349 };
350 //---------------------------------------------------------------------------
351} // namespace glo
352#endif
Header for BasePersistent
Header for GenPersObjectSpy
For each library, here 'GlobalObjects' there is a type file.
#define __glo_export_dll
Definition GloTypes.h:63
Abstract base class for Persistent and the generic GenericPersistent.
Definition GloBasePersistent.h:102
Generic persistent class. Does not require ObjCreator or ObjectMaker. Objects from the database can b...
Definition GloGenericPersistent.h:84
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:97
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:77
Objects of this class transport the data from the tables into the persistent object and from these ag...
Definition GloRecord.h:101
Definition GloAbstractBaseLot.h:42