|
| GenericPersistent (unsigned long ulDBClassID) |
|
virtual unsigned int | forget () override |
|
virtual std::time_t | getCreateDate () const override |
|
virtual unsigned long | getGloClassID () const override |
|
virtual std::time_t | getLastChangeDate () const override |
|
ObjID | getObjID () const override |
|
virtual int | getTypeAsString (std::string &rsTypeName) override |
|
virtual unsigned int | remember () override |
|
virtual void | removeBase () override |
|
virtual void | takeOverRecord (Record *pRecord) override |
|
|
bool | operator== (const GenericPersistent &rT) const |
| Comparison operator.
|
|
bool | operator!= (const GenericPersistent &rT) const |
| Comparison operator.
|
|
| BasePersistent () |
|
| BasePersistent (const BasePersistent &rT) |
|
virtual int | assign (Base &rBase) |
|
virtual int | deleteInBase (EnDeepMode eDeepMode=DM_SHALLOW) |
|
int | getAllPersAttributeNames (std::list< std::string > &rRetValList, const std::vector< unsigned long > *pClassIdVector=0) const |
|
int | getAllPersAttributeNamesSortByID (std::map< AttributeID, std::string > &rRetValMap, const std::vector< unsigned long > *pClassIdVector=0) const |
|
int | getAllPersAttributes (std::list< BaseRecordAttribute * > &rRetValList, const std::vector< unsigned long > *pClassIdVector=0) const |
|
int | getAllPersAttributes (std::list< std::shared_ptr< BaseRecordAttribute > > &rRetValList, const std::vector< unsigned long > *pClassIdVector=0) const |
|
int | getAllPersAttributesSortByID (std::map< AttributeID, BaseRecordAttribute *, std::less< AttributeID > > &rRetValMap, const std::vector< unsigned long > *pClassIdVector=0) const |
|
int | getAllPersAttributesSortByID (std::map< AttributeID, std::shared_ptr< BaseRecordAttribute >, std::less< AttributeID > > &rRetValMap, const std::vector< unsigned long > *pClassIdVector=0) const |
|
int | getAllPersAttributesSortByName (std::map< std::string, BaseRecordAttribute *, std::less< std::string > > &rRetValMap, const std::vector< unsigned long > *pClassIdVector=0) const |
|
int | getAllPersAttributesSortByName (std::map< std::string, std::shared_ptr< BaseRecordAttribute >, std::less< std::string > > &rRetValMap, const std::vector< unsigned long > *pClassIdVector=0) const |
|
virtual Base * | getBase () const override |
|
virtual int | getClassInfo (ClassInfo *&prClassInfo) |
|
unsigned int | getLinkCount () const |
|
int | getPersAttribute (BaseRecordAttribute *&prRetVal, const AttributeID &rAttributeID) const |
|
int | getPersAttribute (BaseRecordAttribute *&prRetVal, const std::string &sName) const |
|
int | getPersAttribute (std::shared_ptr< BaseRecordAttribute > &rRetVal, const AttributeID &rAttributeID) const |
|
int | getPersAttribute (std::shared_ptr< BaseRecordAttribute > &rRetVal, const std::string &sName) const |
|
virtual int | getProcessingPossibilities (LockPossibleSpecification &rLockPossibleSpec, EnDeepMode eDeepMode=DM_SHALLOW) const |
|
int | getRecord (Record *&prRecord) const |
|
int | getRecord (std::shared_ptr< Record > &rRetVal) const |
|
virtual bool | isAssigned () const |
|
virtual bool | isDeletedInBase () |
|
virtual int | isLocked (const LockSpecification &rLockSpecification) const |
|
virtual int | isLocked (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) const |
|
virtual int | isPossible (bool bRead, bool bWrite, bool bDelete, EnDeepMode eDeepMode=DM_SHALLOW) const |
|
virtual int | isPossible (const LockPossibleSpecification &rLockPossibleSpec, EnDeepMode eDeepMode=DM_SHALLOW) const |
|
virtual bool | isStored () |
|
virtual int | lock (const LockSpecification &rLockSpecification) |
|
virtual int | lock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) |
|
BasePersistent & | operator= (const BasePersistent &rT) |
|
virtual int | refresh () |
|
virtual int | relock (const LockSpecification &rLockSpecification) |
|
virtual int | relock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) |
|
virtual int | setBase (Base *pBase) override |
|
virtual int | setWatch (const WatchSpecification &rWatchSpec) |
|
virtual int | setWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack=0) |
|
virtual int | store (EnDeepMode eDeepMode=DM_SHALLOW) |
|
virtual int | unlock (const LockSpecification &rLockSpecification) |
|
virtual int | unlock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) |
|
virtual int | unsetWatch (const WatchSpecification &rWatchSpec) |
|
virtual int | unsetWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack=0) |
|
bool | operator== (const BasePersistent &rT) const |
| Comparison operator, all attributes are compared.
|
|
bool | operator!= (const BasePersistent &rT) const |
| Comparison operator, all attributes are compared.
|
|
| CallBack () |
|
virtual | ~CallBack () |
|
virtual void | notify (NotifyNote &rNote) |
|
CallBack & | operator= (const CallBack &rT) |
|
bool | operator== (const CallBack &rT) const |
| Comparison operator, all attributes are compared.
|
|
bool | operator!= (const CallBack &rT) const |
| Comparison operator, all attributes are compared.
|
|
Generic persistent class. Does not require ObjCreator or ObjectMaker. Objects from the database can be edited without having to know their type.
Objects of this type have a reference counter and must not be removed from memory using the destructor.
Objects with reference counters may only be instantiated once. When passing to another instance, the reference counter must be incremented using GenericPersistent::remember().
If the owning instance no longer needs the object, the reference counter is decremented via GenericPersistent::forget().
When the reference counter runs to 0, the destructor is called automatically.
- Copyright
- © 2010 Helmut Jakoby
- Author
- Helmut Jakoby