A type-safe list of references to persistent objects in the database (intended as an attribute for persistent objects).
More...
|
| TOndemandList () |
|
| TOndemandList (Base &rBase) |
|
virtual | ~TOndemandList () |
|
virtual int | get (std::shared_ptr< T > &rRetVal, const ObjID &rObjID) |
|
virtual int | get (T *&prRetVal, const ObjID &rObjID) |
|
virtual int | get (T *&prRetVal, EnSeekMode eMode) |
|
virtual int | getTypeAsString (std::string &rsTypeName) override |
|
|
virtual int | insert (T *NewObj) |
| Inserts the passed persistent object into the list behind the current position.
|
|
virtual int | insert (std::shared_ptr< T > NewObj) |
| Inserts the passed persistent object into the list behind the current position.
|
|
|
virtual int | insertBefore (T *NewObj, const T *Object) |
| Inserts a persistent object before another object in the list.
|
|
virtual int | insertBefore (std::shared_ptr< T > NewObj, const std::shared_ptr< T > Object) |
| Inserts a persistent object before another object in the list.
|
|
|
virtual int | append (T *NewObj) |
| Appends a persistent object to the end of the list.
|
|
virtual int | append (std::shared_ptr< T > NewObj) |
| Appends a persistent object to the end of the list.
|
|
|
virtual int | remove (T *Object) |
| Removes the passed persistent object from the list.
|
|
virtual int | remove (std::shared_ptr< T > Object) |
| Removes the passed persistent object from the list.
|
|
|
virtual int | get (std::shared_ptr< T > &rRetVal, EnSeekMode eMode) |
| Returns an object from the list in relation to eMode.
|
|
virtual int | get (TOndemand< T > &rRetVal, EnSeekMode eMode) |
| Returns an object from the list in relation to eMode.
|
|
Public Member Functions inherited from glo::OndemandList |
| OndemandList () |
|
| OndemandList (Base &rBase) |
|
virtual | ~OndemandList () |
|
virtual int | appendOndemand (const Reference &rNewOndemand) |
|
virtual void | clear () |
|
virtual Reference * | getOndemand (EnSeekMode eMode) |
|
virtual int | getPersistent (BasePersistent *&prRetVal, const ObjID &rObjID) |
|
virtual int | insertOndemand (const Reference &rNewOndemand) |
|
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.
|
|
Public Member Functions inherited from glo::OndemandLot |
| OndemandLot () |
|
| OndemandLot (Base &rBase) |
|
virtual | ~OndemandLot () |
|
virtual int | appendPers (BasePersistent *pNewObj) |
|
virtual int | getObjID (ObjID &rObjID, EnSeekMode eMode) |
|
virtual int | getPers (BasePersistent *&prRetVal, EnSeekMode eMode) |
|
virtual int | insertOndemandBefore (const Reference &rNewOndemand, const Reference &rOndemand) |
|
virtual int | insertPers (BasePersistent *pNewObj) |
|
virtual int | insertPers (std::shared_ptr< BasePersistent > spNewObj) |
|
virtual int | insertPersBefore (BasePersistent *pNewObj, const BasePersistent *pObject) |
|
std::list< Reference * > & | List () |
|
virtual int | removePers (BasePersistent *pObject) |
|
| BaseLot () |
|
| BaseLot (Base &rBase) |
|
virtual | ~BaseLot () |
|
virtual int | appendPers (std::shared_ptr< BasePersistent > spNewObj) |
|
virtual int | getPers (std::shared_ptr< BasePersistent > &rRetVal, EnSeekMode eMode) |
|
virtual int | insertPersBefore (std::shared_ptr< BasePersistent > spNewObj, const std::shared_ptr< BasePersistent > spObject) |
|
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 () |
|
| CallBack (Base &rBase) |
|
virtual | ~CallBack () |
|
Base * | getBase () const |
|
virtual void | notify (NotifyNote &rNote) |
|
CallBack & | operator= (const CallBack &rT) |
|
virtual void | setBase (Base *pBase) |
|
bool | operator== (const CallBack &rT) const |
| Comparison operator, all attributes are compared.
|
|
bool | operator!= (const CallBack &rT) const |
| Comparison operator, all attributes are compared.
|
|
template<class T>
class glo::TOndemandList< T >
A type-safe list of references to persistent objects in the database (intended as an attribute for persistent objects).
Objects can also be inserted multiple times and in any order.
In contrast to a TPointerList (where the referenced objects are automatically 'loaded'), the TOndemandList is a list of references; the referenced objects are not loaded from the database with the referencing object, but can be 'reloaded' if required.
It is always useful if an object is to reference several 'large' objects that do not have to be available.
- Copyright
- © 2010 Helmut Jakoby
- Author
- Helmut Jakoby