Is the base class of Template-Ondemand-Set.
Objects can be inserted only once.
More...
#include <GloOndemandSet.h>
Public Member Functions | |
OndemandSet () | |
OndemandSet (Base &rBase) | |
virtual | ~OndemandSet () |
virtual void | clear () |
virtual Reference * | getOndemand (EnSeekMode eMode) |
virtual int | getPersistent (BasePersistent *&prRetVal, const ObjID &rObjID) |
virtual int | insertOndemand (const Reference &rNewOndemand) |
virtual int | insertPers (BasePersistent *pNewObj) |
virtual int | insertPers (std::shared_ptr< BasePersistent > spNewObj) |
virtual int | removeOndemand (const Reference &rOndemand) |
virtual int | setCurrentObject (const ObjID &rObjID) |
virtual int | setPosition (std::size_t nPosition) |
virtual std::size_t | size () const |
virtual bool | inLot (const ObjID &object) const |
See description in superclass. | |
virtual bool | inLot (const BasePersistent &object) const |
See description in superclass. | |
virtual bool | inLot (const std::shared_ptr< BasePersistent > object) const |
See description in superclass. | |
virtual bool | inLot (const Reference &object) const |
See description in superclass. | |
![]() | |
OndemandLot () | |
OndemandLot (Base &rBase) | |
virtual | ~OndemandLot () |
virtual Base * | getBase () const override |
virtual int | getObjID (ObjID &rObjID, EnSeekMode eMode) override |
virtual int | getPers (BasePersistent *&prRetVal, EnSeekMode eMode) override |
virtual int | getPers (glo::ObjID &rObjID, BasePersistent *&prRetVal, EnSeekMode eMode) |
virtual int | getPers (glo::ObjID &rObjID, std::shared_ptr< BasePersistent > &rRetVal, EnSeekMode eMode) |
virtual int | getPers (std::shared_ptr< BasePersistent > &rRetVal, EnSeekMode eMode) override |
std::list< Reference * > & | List () |
virtual int | removePers (BasePersistent *pObject) override |
virtual int | setBase (Base *pBase) override |
![]() | |
BaseLot () | |
virtual | ~BaseLot () |
virtual int | getTypeAsString (std::string &rsTypeName) override |
virtual int | lock (const LockSpecification &rLockSpecification) |
virtual int | lock (EnLockMode eLockMode=LK_DELETEvWRITE, EnDeepMode eDeepMode=DM_SHALLOW) |
virtual int | removePers (std::shared_ptr< BasePersistent > spObject) |
virtual int | setWatch (const WatchSpecification &rWatchSpec) |
virtual int | setWatch (TdWatchNotifyMode ulWatchMode, EnDeepMode eDeepMode, CallBack *pCallBack=0) |
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) |
![]() | |
AbstractBaseLot () | |
virtual | ~AbstractBaseLot () |
virtual int | getPersistent (std::shared_ptr< BasePersistent > &rRetVal, const ObjID &rObjID) |
virtual int | setCurrentObject (const BasePersistent &rObject) |
![]() | |
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. | |
Private Member Functions | |
OndemandSet (const OndemandSet &) | |
OndemandSet & | operator= (const OndemandSet &) |
virtual int | appendPers (BasePersistent *) |
Is not available for a set. | |
virtual int | appendPers (std::shared_ptr< BasePersistent >) |
Is not available for a set. | |
virtual int | appendOndemand (const Reference &) |
Is not available for a set. | |
virtual int | insertOndemandBefore (const Reference &, const Reference &) |
Is not available for a set. | |
virtual int | insertPersBefore (BasePersistent *, const BasePersistent *) |
Is not available for a set. | |
virtual int | insertPersBefore (std::shared_ptr< BasePersistent >, const std::shared_ptr< BasePersistent >) |
Is not available for a set. | |
Additional Inherited Members | |
![]() | |
std::string | m_strDebugInfo |
![]() | |
int | lockObjID (const ObjID &rObjID) |
int | setWatchObjID (const ObjID &rObjID) |
int | takeOverBase (const BasePersistent *pObj) |
int | takeOverBase (const Reference *pRef) |
int | unlockObjID (const ObjID &rObjID) |
int | unsetWatchObjID (const ObjID &rObjID) |
![]() | |
CallBack (const CallBack &rT) | |
void | deinit () |
void | init () |
![]() | |
std::list< Reference * > | m_odRefList |
std::list< Reference * >::iterator | m_odRefListIterator |
unsigned long | m_ulDatabaseID |
![]() | |
unsigned long | m_ulClassID |
Is the base class of Template-Ondemand-Set.
Objects can be inserted only once.
glo::OndemandSet::OndemandSet | ( | ) |
Standard constructor.
Referenced by OndemandSet(), and operator=().
glo::OndemandSet::OndemandSet | ( | Base & | rBase | ) |
Constructor with parameter passing.
[in] | rBase | The database is passed. |
|
virtual |
Destructor, for all objects in the object set the own lock and watch mode is cancelled and then the object set is emptied.
|
private |
|
inlineprivatevirtual |
Is not available for a set.
Reimplemented from glo::OndemandLot.
References glo::ERR_METHOD_FORBIDDEN.
|
inlineprivatevirtual |
Is not available for a set.
Reimplemented from glo::OndemandLot.
References glo::ERR_METHOD_FORBIDDEN.
|
inlineprivatevirtual |
|
virtual |
All objects are removed from the set. The set-specific lock and watching mode is removed for all objects in the set.
Reimplemented from glo::OndemandLot.
|
virtual |
Returns a Reference from the m_odRefList in relation to eMode.
[in] | eMode | The seek mode. |
Parameter examples:
Implements glo::OndemandLot.
|
virtual |
Returns an object with passed object ID from the container.
[in,out] | prRetVal | If no error, the fetched object. |
[in] | rObjID | The object ID. |
Reimplemented from glo::OndemandLot.
|
virtual |
See description in superclass.
Reimplemented from glo::OndemandLot.
|
virtual |
See description in superclass.
Reimplemented from glo::OndemandLot.
|
virtual |
See description in superclass.
Reimplemented from glo::OndemandLot.
|
virtual |
See description in superclass.
Reimplemented from glo::OndemandLot.
|
virtual |
Inserts a reference to a persistent object in the set.
If the set is locked, the referenced object of the reference to be inserted is locked with the set lock mode.
If the set is monitored, the referenced object of the reference to be inserted is also monitored with the monitoring mode of the set.
[in] | rNewOndemand | The reference to a persistent object to be inserted. |
Reimplemented from glo::OndemandLot.
|
inlineprivatevirtual |
Is not available for a set.
Reimplemented from glo::OndemandLot.
References glo::ERR_METHOD_FORBIDDEN.
|
virtual |
Inserts a persistent object in the set.
If the set is locked, the object to be inserted is locked with the lock mode of the set.
If the set is monitored, the object to be inserted is also monitored with the monitoring mode of the set.
[in] | pNewObj | The persistent object to be inserted. |
Reimplemented from glo::OndemandLot.
|
virtual |
Inserts a persistent object in the set.
If the set is locked, the object to be inserted is locked with the lock mode of the set.
If the set is monitored, the object to be inserted is also monitored with the monitoring mode of the set.
[in] | spNewObj | The persistent object in a std::shared_ptr to be inserted. |
Reimplemented from glo::OndemandLot.
|
inlineprivatevirtual |
Is not available for a set.
Reimplemented from glo::OndemandLot.
References glo::ERR_METHOD_FORBIDDEN.
|
inlineprivatevirtual |
|
inlineprivate |
The assignment operator is not available.
References OndemandSet().
|
virtual |
Removes the passed reference to a persistent object from the set.
If the set is locked, the referenced object of the reference to be removed is released with the set lock mode.
If the set is monitored, the monitoring of the referenced object of the reference to be removed is ended with the monitoring mode of the set.
[in] | rOndemand | The reference to a persistent object to be removed. |
Reimplemented from glo::OndemandLot.
|
virtual |
Sets the internal iterator to the position of the reference to a persistent object with passed object ID.
[in] | rObjID | The object ID. |
Reimplemented from glo::OndemandLot.
|
virtual |
Sets the internal iterator to the passed position.
[in] | nPosition | The position to be set. |
Reimplemented from glo::OndemandLot.
|
virtual |
Returns the number of objects in the set.
Reimplemented from glo::OndemandLot.