1#ifndef INC_GLOPERSISTENT_H
2#define INC_GLOPERSISTENT_H
46#include "GloPersObjectSpy.h"
47#include "GloAttributeID.h"
50#include "GloTPointerSet.h"
51#include "GloTOndemandSet.h"
52#include "GloTPointerList.h"
53#include "GloTOndemandList.h"
54#include "EuException.h"
82#define GLO_OBJECT(...) \
84 virtual unsigned long getGloClassID() const override; \
85 virtual int getTypeAsString( std::string & rsTypeName ) override; \
86 virtual int setGloAttribute( const glo::AttributeID & rAttributeID, void * pPara ) override; \
87 virtual void * getGloAttribute( const glo::AttributeID & rAttributeID ) override; \
88 virtual int setGloAttribute( const std::string & rstrAttributeName, void * pPara ) override; \
89 virtual void * getGloAttribute( const std::string & rstrAttributeName ) override; \
90 virtual bool isSameOrSuperClassFrom( const glo::Persistent * pPersistent ) const override; \
91 virtual bool isSameOrSuperClassFrom( const std::shared_ptr<glo::Persistent> spPersistent ) const override; \
92 virtual void _postAssign( glo::Base & rBase ) override; \
134#define GLO_INDEX(...)
137#define GLO_ANNOTATE_ACCESS_SPECIFIER(x)
144#define GLO_PERSISTENT_AREA GLO_ANNOTATE_ACCESS_SPECIFIER(x)
166#define persistent GLO_PERSISTENT_AREA
181#define transient GLO_PERSISTENT_AREA
386 virtual int assign( Base & rBase )
override;
490 virtual int preStore( EnDeepMode eDeepMode,
void *& prData );
526 virtual int store( EnDeepMode eDeepMode = DM_SHALLOW )
override;
549 virtual void postStore(
int iStoreErr, EnDeepMode eDeepMode,
void * pData );
617 virtual int deleteInBase( EnDeepMode eDeepMode = DM_SHALLOW )
override;
771 virtual int preLock( EnLockMode eLockMode, EnDeepMode eDeepMode,
void *& prData );
810 virtual int lock( EnLockMode eLockMode = LK_DELETEvWRITE,
811 EnDeepMode eDeepMode = DM_SHALLOW )
override;
838 virtual void postLock(
int iLockErr, EnLockMode eLockMode, EnDeepMode eDeepMode,
void * pData );
878 virtual int preRelock( EnLockMode eLockMode, EnDeepMode eDeepMode,
void *& prData );
927 virtual int relock( EnLockMode eLockMode = LK_DELETEvWRITE,
928 EnDeepMode eDeepMode = DM_SHALLOW )
override;
955 virtual void postRelock(
int iLockErr, EnLockMode eLockMode, EnDeepMode eDeepMode,
void * pData );
995 virtual int preUnlock( EnLockMode eLockMode, EnDeepMode eDeepMode,
void *& prData );
1036 virtual int unlock( EnLockMode eLockMode = LK_DELETEvWRITE,
1037 EnDeepMode eDeepMode = DM_SHALLOW )
override;
1065 virtual void postUnlock(
int iUnlockErr, EnLockMode eLockMode, EnDeepMode eDeepMode,
void * pData );
1111 EnDeepMode eDeepMode,
1187 EnDeepMode eDeepMode,
1188 CallBack * pCallBack = 0 )
override;
1224 TdWatchNotifyMode ulWatchMode,
1225 EnDeepMode eDeepMode,
1273 EnDeepMode eDeepMode,
1348 EnDeepMode eDeepMode,
1349 CallBack * pCallBack = 0 )
override;
1384 TdWatchNotifyMode ulWatchMode,
1385 EnDeepMode eDeepMode,
Header for BasePersistent
Header and source for TOndemand
Abstract base class for Persistent and the generic GenericPersistent.
Definition GloBasePersistent.h:124
Superclass for the classes that are 'connected' to a Base.
Definition GloCallBack.h:81
An object ID consists of the class ID, a database ID and the actual unique object number (all unsigne...
Definition GloObjID.h:84
The base class of the persistent classes. All persistent classes must be derived from this class to b...
Definition GloPersistent.h:242
virtual int setGloAttribute(const AttributeID &rAttributeID, void *pPara)
virtual int setWatch(TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack=0) override
virtual int preDeleteInBase(EnDeepMode eDeepMode, void *&prData)
virtual void removeInObjectSpy() const override
virtual int lock(EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) override
virtual unsigned long getGloClassID() const override
virtual int refresh() override
virtual int store(EnDeepMode eDeepMode=DM_SHALLOW) override
virtual void * getGloAttribute(const AttributeID &rAttributeID)
std::time_t m_dtCreateDate
Definition GloPersistent.h:268
virtual int unlock(EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) override
virtual int unsetWatch(TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack=0) override
virtual int relock(EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) override
virtual void _postAssign(Base &rBase)
Persistent(const Persistent &rT)
ObjID m_ObjID
Definition GloPersistent.h:256
virtual void postSetWatch(int iSetWatchErr, TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack, void *pData)
virtual void takeOverRecord(Record *pRecord) override
virtual int assign(Base &rBase) override
virtual std::time_t getCreateDate() const override
virtual void * getGloAttribute(const std::string &rstrAttributName)
virtual ObjID getObjID() const override
std::time_t m_dtLastChange
Definition GloPersistent.h:281
virtual void setCreateDate() override
virtual int preLock(EnLockMode eLockMode, EnDeepMode eDeepMode, void *&prData)
virtual void postUnlock(int iUnlockErr, EnLockMode eLockMode, EnDeepMode eDeepMode, void *pData)
virtual void postDeleteInBase(int iDeleteErr, EnDeepMode eDeepMode, void *pData)
virtual void postLock(int iLockErr, EnLockMode eLockMode, EnDeepMode eDeepMode, void *pData)
virtual int deleteInBase(EnDeepMode eDeepMode=DM_SHALLOW) override
virtual bool isSameOrSuperClassFrom(const std::shared_ptr< glo::Persistent > pPersistent) const
Checks if passed object can be cast to this.
virtual void insertInObjectSpy() const override
virtual int getTypeAsString(std::string &rsTypeName) override
virtual int preRelock(EnLockMode eLockMode, EnDeepMode eDeepMode, void *&prData)
virtual int preStore(EnDeepMode eDeepMode, void *&prData)
virtual bool isSameOrSuperClassFrom(const glo::Persistent *pPersistent) const
Checks if passed object can be cast to this.
virtual void removeBase() override
virtual void postRelock(int iLockErr, EnLockMode eLockMode, EnDeepMode eDeepMode, void *pData)
virtual void postStore(int iStoreErr, EnDeepMode eDeepMode, void *pData)
virtual int preRefresh(void *&prData)
virtual void postRefresh(int iRefreshErr, void *pData)
virtual int preUnsetWatch(TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack, void *&prData)
virtual int setGloAttribute(const std::string &rstrAttributName, void *pPara)
virtual int preUnlock(EnLockMode eLockMode, EnDeepMode eDeepMode, void *&prData)
virtual std::time_t getLastChangeDate() const override
virtual void postUnsetWatch(int iUnsetWatchErr, TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack, void *pData)
virtual int preSetWatch(TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack, void *&prData)
Definition GloBasePersistent.h:60