AllSet, which returns objects from the database. More...
#include <GloTAllSet.h>
Public Member Functions | |
TAllSet () | |
TAllSet (Base &rBase, bool bWithSubClasses=true) | |
TAllSet (Base &rBase, const char *pszFullIndexName) | |
TAllSet (Base &rBase, const std::string &rsFullIndexName) | |
virtual | ~TAllSet () |
int | get (glo::ObjID &rObjID, std::shared_ptr< T > &rRetVal, EnSeekMode eMode) |
int | get (glo::ObjID &rObjID, T *&prRetVal, EnSeekMode eMode) |
int | get (std::shared_ptr< T > &rRetVal, const glo::ObjID &rObjID) |
int | get (std::shared_ptr< T > &rRetVal, EnSeekMode eMode) |
int | get (T *&prRetVal, EnSeekMode eMode) |
int | getOndemand (glo::TOndemand< T > &rRetVal, EnSeekMode eMode) |
int | getOndemand (glo::TOndemand< T > *&prRetVal, EnSeekMode eMode) |
int | getOndemand (std::shared_ptr< glo::TOndemand< T > > &rRetVal, EnSeekMode eMode) |
virtual int | getPersistent (std::shared_ptr< BasePersistent > &rRetVal, const glo::ObjID &rObjID) |
virtual int | setWatch (TdWatchNotifyMode ulWatchMode, CallBack *pCallBack=0) |
virtual int | unsetWatch (TdWatchNotifyMode ulWatchMode, CallBack *pCallBack=0) |
virtual int | getPersistent (BasePersistent *&prRetVal, const glo::ObjID &rObjID) |
Returns an object from the AllSet of the database with passed object ID. | |
int | get (T *&prRetVal, const glo::ObjID &rObjID) |
Returns an object from the AllSet of the database with passed object ID. | |
int | getIndexedOndemands (std::vector< glo::TOndemand< T > > &rOndemandContainer, const std::string &rsIndexSearchValue, EnQueryType eQuerryType) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (glo::TOndemandList< T > &rOndemandContainer, const std::string &rsIndexSearchValue, EnQueryType eQuerryType) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (std::vector< glo::TOndemand< T > > &rOndemandContainer, const std::string &rsFullIndexName, const std::string &rsIndexSearchValue, EnQueryType eQuerryType) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (glo::TOndemandList< T > &rOndemandContainer, const std::string &rsFullIndexName, const std::string &rsIndexSearchValue, EnQueryType eQuerryType) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (std::vector< glo::TOndemand< T > > &rOndemandContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsIndexSearchValue, EnQueryType eQuerryType) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (glo::TOndemandList< T > &rOndemandContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsIndexSearchValue, EnQueryType eQuerryType) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (std::vector< glo::TOndemand< T > > &rOndemandContainer, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (glo::TOndemandList< T > &rOndemandContainer, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (std::vector< glo::TOndemand< T > > &rOndemandContainer, const std::string &rsFullIndexName, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (glo::TOndemandList< T > &rOndemandContainer, const std::string &rsFullIndexName, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (std::vector< glo::TOndemand< T > > &rOndemandContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (glo::TOndemandList< T > &rOndemandContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (std::vector< glo::TOndemand< T > > &rOndemandContainer, const std::string &rsRangeStartIndex, const std::string &rsRangeEndIndex) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (glo::TOndemandList< T > &rOndemandContainer, const std::string &rsRangeStartIndex, const std::string &rsRangeEndIndex) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (std::vector< glo::TOndemand< T > > &rOndemandContainer, const std::string &rsFullIndexName, const std::string &rsRangeStartIndexSearchValue, const std::string &rsRangeEndIndexSearchValue) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (glo::TOndemandList< T > &rOndemandContainer, const std::string &rsFullIndexName, const std::string &rsRangeStartIndexSearchValue, const std::string &rsRangeEndIndexSearchValue) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (std::vector< glo::TOndemand< T > > &rOndemandContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsRangeStartIndexSearchValue, const std::string &rsRangeEndIndexSearchValue) |
Returns a list of glo::TOndemand's from AllSet in relation to the passed parameters. | |
int | getIndexedOndemands (glo::TOndemandList< T > &rOndemandContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsRangeStartIndexSearchValue, const std::string &rsRangeEndIndexSearchValue) |
Returns a list of glo::TOndemand's from AllSet in relation to the passed parameters. | |
![]() | |
BaseAllSet () | |
BaseAllSet (Base &rBase) | |
BaseAllSet (Base &rBase, unsigned long ulClassID, bool bWithSubClasses=true) | |
BaseAllSet (Base &rBase, unsigned long ulClassID, const std::string &rsFullIndexName) | |
virtual | ~BaseAllSet () |
int | close () |
std::vector< AllSetIndexInfo > | getAvailableIndices () |
std::size_t | getAvailableIndicesSize () |
virtual Base * | getBase () const override |
unsigned long | getClassID () const |
std::string | getFullIndexName () const |
unsigned long | getIndexClassID () const |
int | getIndexedObjIds (std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsFullIndexName, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp) |
int | getIndexedObjIds (std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsFullIndexName, const std::string &rsIndexSearchValue, EnQueryType eQuerryType) |
int | getIndexedObjIds (std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsFullIndexName, const std::string &rsRangeStartIndexSearchValue, const std::string &rsRangeEndIndexSearchValue) |
int | getIndexedObjIds (std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp) |
int | getIndexedObjIds (std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsIndexSearchValue, EnQueryType eQuerryType) |
int | getIndexedObjIds (std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsIndexName, unsigned long ulIndexClassID, const std::string &rsRangeStartIndexSearchValue, const std::string &rsRangeEndIndexSearchValue) |
int | getIndexedObjIds (std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsIndexSearchValue, EnComparisionOp eComparisionOp) |
int | getIndexedObjIds (std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsIndexSearchValue, EnQueryType eQuerryType) |
int | getIndexedObjIds (std::vector< glo::ObjID > &rObjIDContainer, const std::string &rsRangeStartIndexSearchValue, const std::string &rsRangeEndIndexSearchValue) |
std::string | getIndexName () const |
int | getObjID (glo::ObjID &rObjID, EnSeekMode eMode) |
virtual int | getTypeAsString (std::string &rsTypeName) override |
virtual bool | inLot (const glo::ObjID &rObjID) const override |
virtual bool | inSet (const glo::ObjID &rObjID) const |
bool | isIndexAvailable (const BaseAllSet::IndexNameClassIdTuple &rIndexNameClassIdTuple) |
bool | isIndexAvailable (const std::string &rsFullIndexName) |
bool | isIndexAvailable (unsigned long ulClassID, const std::string &rsIndexName) |
int | open () |
bool | readWithSubClasses () const |
int | removeIndexFilter () |
virtual int | setBase (Base &rBase) |
virtual int | setBase (Base *pBase) override |
virtual int | setCurrentObject (const glo::ObjID &rObjID) override |
int | setFullIndexName (const std::string &rsFullIndexName) |
int | setIndex (const BaseAllSet::IndexNameClassIdTuple &rIndexNameClassIdTuple) |
int | setIndexFilter (const std::string &rsIndexFilter) |
int | setIndexFilter (const std::string &rsIndexFilter, EnComparisionOp eComparisionOp) |
int | setIndexFilter (const std::string &rsRangeStartIndexFilter, const std::string &rsRangeEndIndexFilter) |
virtual int | setPosition (std::size_t nPosition) override |
void | setReadWithSubClasses (bool bWithSubClasses) |
virtual std::size_t | size () const override |
![]() | |
AbstractBaseLot () | |
virtual | ~AbstractBaseLot () |
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. | |
Static Public Member Functions | |
static unsigned long | getStaticGloClassID () |
Private Member Functions | |
TAllSet (const TAllSet &) | |
TAllSet< T > & | operator= (const TAllSet &) |
void | transferObjIListIntoOndemandContainer (const std::vector< glo::ObjID > &rSourceContainer, std::vector< glo::TOndemand< T > > &rTargetConteiner) |
Transfers the glo::ObjID's from the transferred rSourceContainer as glo::TOndemand's into the transferred rTargetVevtor. | |
void | transferObjIListIntoOndemandContainer (const std::vector< glo::ObjID > &rSourceContainer, glo::TOndemandList< T > &rTargetConteiner) |
Transfers the glo::ObjID's from the transferred rSourceContainer as glo::TOndemand's into the transferred rTargetVevtor. | |
Additional Inherited Members | |
![]() | |
std::string | m_strDebugInfo |
![]() | |
void | setAllSetOpen (bool bOpen) |
int | setAvailableIndices () |
virtual void | setClassID (unsigned long ulClassID) |
void | setClassIDFromTemplate (unsigned long ulClassID) |
![]() | |
CallBack (const CallBack &rT) | |
void | deinit () |
void | init () |
AllSet, which returns objects from the database.
AllSets contains all instances of an object type in the database.
When an object of this class is instantiated and opened (only works with a valid database), the Manager creates an iterator that allows iteration through the internal AllSet. In the destructor the Manager is notified, which destroys the iterator again.
An AllSet contains all objects of the corresponding class. This also includes objects that are derived from the AllSet's class. If an object of a derived class is now "fetched" from the (superclass) AllSet, the object of the subclass(es) is automatically instantiated.
Keywords for this: "dynamic_cast" and "Class-ID".
Indexesbr> An AllSet can also be instantiated with an index or an index can be set (see setFullIndexName(const std::string&) ) if the index is defined in the schema. When iterating through the objects, the sorting of the selected index is used.
If an index is set, it is possible to filter the output during iteration (see setIndexFilter( const std::string & rsIndexFilter ), setIndexFilter( const std::string & rsIndexFilter,
EnComparisionOp eComparisionOp )
and
setIndexFilter( const std::string & rsRangeStartIndexFilter, const std::string & rsRangeEndIndexFilter ).
An AllSet can also return result sets, which can be restricted as with filtering (see
getIndexedObjIds( std::vector< glo::ObjID > & t_ObjIDContainer, const std::string & rsIndexSearchValue, EnQueryType eQuerryType ),
getIndexedObjIds( std::vector< glo::ObjID > & t_ObjIDContainer, const std::string & rsIndexSearchValue, EnComparisionOp eComparisionOp ),
getIndexedObjIds( std::vector< glo::ObjID > & t_ObjIDContainer, const std::string & rsRangeStartIndexSearchValue, const std::string & rsRangeEndIndexSearchValue ),
getIndexedOndemands( std::vector< glo::TOndemand<T> > & rOndemandContainer, const std::string & rsIndex, EnQueryType eQuerryType ),
getIndexedOndemands( std::vector< glo::TOndemand<T> > & rOndemandContainer, const std::string & rsIndex, EnComparisionOp eComparisionOp )
and
getIndexedOndemands( std::vector< glo::TOndemand<T> > & rOndemandContainer, const std::string & rsRangeStartIndex, const std::string & rsRangeEndIndex ).
Watch / Notify
An AllSet can be observed with its objects and corresponding observers can be notified (see also TAllSet< T >::setWatch (...) and TAllSet< T >::unsetWatch (...).
glo::TAllSet< T >::TAllSet | ( | ) |
Standard constructor.
References glo::CallBack::m_strDebugInfo, and SUPER.
Referenced by TAllSet(), operator=(), setWatch(), and unsetWatch().
glo::TAllSet< T >::TAllSet | ( | Base & | rBase, |
bool | bWithSubClasses = true ) |
Constructor with parameter passing.
[in] | rBase | The authoritative database is passed. |
[in] | bWithSubClasses | If false, only objects of the template type without subclasses are considered. |
eut::ErrorNException | An exception is thrown if an error occurs. |
References glo::BaseAllSet::Base, glo::CallBack::m_strDebugInfo, and SUPER.
glo::TAllSet< T >::TAllSet | ( | Base & | rBase, |
const std::string & | rsFullIndexName ) |
Constructor with parameter passing.
[in] | rBase | The authoritative database is passed. |
[in] | rsFullIndexName | An AllSet can be sorted by an index. The index name must be passed as a std::string with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
eut::ErrorNException | An exception is thrown if an error occurs. |
References glo::BaseAllSet::Base, glo::CallBack::m_strDebugInfo, and SUPER.
glo::TAllSet< T >::TAllSet | ( | Base & | rBase, |
const char * | pszFullIndexName ) |
Constructor with parameter passing.
[in] | rBase | The authoritative database is passed. |
[in] | pszFullIndexName | An AllSet can be sorted by an index. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
eut::ErrorNException | An exception is thrown if an error occurs. |
References glo::BaseAllSet::Base, glo::CallBack::m_strDebugInfo, and SUPER.
|
virtual |
Destructor.
|
private |
The copy constructor is not available.
References TAllSet().
int glo::TAllSet< T >::get | ( | glo::ObjID & | rObjID, |
std::shared_ptr< T > & | rRetVal, | ||
EnSeekMode | eMode ) |
Returns an object ID and if possible a object in a std::shared_ptr from the AllSet of the database in relation to eMode. This also allows iteration over read-locked objects (only the object ID is returned).
[in,out] | rObjID | The object ID. |
[in,out] | rRetVal | The object in std::shared_ptr, if found. |
[in] | eMode | The seek mode. |
Parameter examples:
References get().
int glo::TAllSet< T >::get | ( | glo::ObjID & | rObjID, |
T *& | prRetVal, | ||
EnSeekMode | eMode ) |
Returns an object ID and if possible a object from the AllSet of the database in relation to eMode. This also allows iteration over read-locked objects (only the object ID is returned).
[in,out] | rObjID | The object ID. |
[in,out] | prRetVal | The object, if found. |
[in] | eMode | The seek mode. |
Parameter examples:
References glo::END, glo::BasePersistent::forget(), glo::BaseAllSet::getBase(), glo::NEXT, glo::BaseAllSet::open(), glo::PREVIOUS, and glo::START.
int glo::TAllSet< T >::get | ( | std::shared_ptr< T > & | rRetVal, |
const glo::ObjID & | rObjID ) |
Returns an object in a std::shared_ptr from the AllSet of the database with passed object ID.
[in,out] | rRetVal | If no error, the fetched object in a std::shared_ptr. |
[in] | rObjID | The object ID. |
References get().
int glo::TAllSet< T >::get | ( | std::shared_ptr< T > & | rRetVal, |
EnSeekMode | eMode ) |
Returns a object from the AllSet of the referenced database in relation to eMode.
[in,out] | rRetVal | The object in a std::shared_ptr if found. |
[in] | eMode | The seek mode. |
Parameter examples:
References get().
int glo::TAllSet< T >::get | ( | T *& | prRetVal, |
const glo::ObjID & | rObjID ) |
Returns an object from the AllSet of the database with passed object ID.
[in,out] | prRetVal | If no error, the fetched object. |
[in] | rObjID | The object ID. |
References glo::ERR_WRONG_TYPE, glo::BasePersistent::forget(), glo::BaseAllSet::getBase(), and glo::BaseAllSet::open().
int glo::TAllSet< T >::get | ( | T *& | prRetVal, |
EnSeekMode | eMode ) |
Returns a object from the AllSet of the referenced database in relation to eMode.
[in,out] | prRetVal | The object if found. |
[in] | eMode | The seek mode. |
Parameter examples:
References get().
int glo::TAllSet< T >::getIndexedOndemands | ( | glo::TOndemandList< T > & | rOndemandContainer, |
const std::string & | rsFullIndexName, | ||
const std::string & | rsIndexSearchValue, | ||
EnComparisionOp | eComparisionOp ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined using the parameter eComparisionOp. If e.g. parameter sIndex has the value "123" and parameter eComparisionOp has the value glo::LESS, only all objects with the index lower than 123 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsFullIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | rsIndexSearchValue | The index value. |
[in] | eComparisionOp | The comparison operator. For example, if rsIndex has the value "123" and eComparisionOp has the value glo::LESS, all objects with the index glo::LESS than 123 are returned. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | glo::TOndemandList< T > & | rOndemandContainer, |
const std::string & | rsFullIndexName, | ||
const std::string & | rsIndexSearchValue, | ||
EnQueryType | eQuerryType ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsFullIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | rsIndexSearchValue | The index expression can contain the placeholders '*' and '?', which are taken into account in the evaluation or if parameter eQueryType == eOQL, the string is interpreted as OQL expression. Please note; OQL is not yet implemented! |
[in] | eQuerryType | The query type. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | glo::TOndemandList< T > & | rOndemandContainer, |
const std::string & | rsFullIndexName, | ||
const std::string & | rsRangeStartIndexSearchValue, | ||
const std::string & | rsRangeEndIndexSearchValue ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined with a range specification. For example, if parameter rsRangeStartIndexSearchValue has the value "123" and parameter rsRangeEndIndexSearchValue has the value "155", only all objects with an index greater than/equal to 123 and less than/equal to 155 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this list. |
[in] | rsFullIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | rsRangeStartIndexSearchValue | The start index value. |
[in] | rsRangeEndIndexSearchValue | The end index value. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | glo::TOndemandList< T > & | rOndemandContainer, |
const std::string & | rsIndexName, | ||
unsigned long | ulIndexClassID, | ||
const std::string & | rsIndexSearchValue, | ||
EnComparisionOp | eComparisionOp ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined using the parameter eComparisionOp. If e.g. parameter sIndex has the value "123" and parameter eComparisionOp has the value glo::LESS, only all objects with the index lower than 123 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | ulIndexClassID | The ID of the class indexed with the 'rsIndexName'. This allows you to use the index of a superclass. |
[in] | rsIndexSearchValue | The index value. |
[in] | eComparisionOp | The comparison operator. For example, if rsIndex has the value "123" and eComparisionOp has the value glo::LESS, all objects with the index glo::LESS than 123 are returned. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | glo::TOndemandList< T > & | rOndemandContainer, |
const std::string & | rsIndexName, | ||
unsigned long | ulIndexClassID, | ||
const std::string & | rsIndexSearchValue, | ||
EnQueryType | eQuerryType ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | ulIndexClassID | The ID of the class indexed with the 'rsIndexName'. This allows you to use the index of a superclass. |
[in] | rsIndexSearchValue | The index expression can contain the placeholders '*' and '?', which are taken into account in the evaluation or if parameter eQueryType == eOQL, the string is interpreted as OQL expression. Please note; OQL is not yet implemented! |
[in] | eQuerryType | The query type. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | glo::TOndemandList< T > & | rOndemandContainer, |
const std::string & | rsIndexName, | ||
unsigned long | ulIndexClassID, | ||
const std::string & | rsRangeStartIndexSearchValue, | ||
const std::string & | rsRangeEndIndexSearchValue ) |
Returns a list of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined with a range specification. For example, if parameter rsRangeStartIndexSearchValue has the value "123" and parameter rsRangeEndIndexSearchValue has the value "155", only all objects with an index greater than/equal to 123 and less than/equal to 155 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | ulIndexClassID | The ID of the class indexed with the 'rsIndexName'. This allows you to use the index of a superclass. |
[in] | rsRangeStartIndexSearchValue | The start index value. |
[in] | rsRangeEndIndexSearchValue | The end index value. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | glo::TOndemandList< T > & | rOndemandContainer, |
const std::string & | rsIndexSearchValue, | ||
EnComparisionOp | eComparisionOp ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined using the parameter eComparisionOp. If e.g. parameter sIndex has the value "123" and parameter eComparisionOp has the value glo::LESS, only all objects with the index lower than 123 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsIndexSearchValue | The index value. |
[in] | eComparisionOp | The comparison operator. For example, if rsIndex has the value "123" and eComparisionOp has the value glo::LESS, all objects with the index glo::LESS than 123 are returned. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | glo::TOndemandList< T > & | rOndemandContainer, |
const std::string & | rsIndexSearchValue, | ||
EnQueryType | eQuerryType ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsIndexSearchValue | The index expression can contain the placeholders '*' and '?', which are taken into account in the evaluation or if parameter eQueryType == eOQL, the string is interpreted as OQL expression. Please note; OQL is not yet implemented! |
[in] | eQuerryType | The query type. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | glo::TOndemandList< T > & | rOndemandContainer, |
const std::string & | rsRangeStartIndex, | ||
const std::string & | rsRangeEndIndex ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined with a range specification. For example, if parameter rsRangeStartIndex has the value "123" and parameter rsRangeEndIndex has the value "155", only all objects with an index greater than/equal to 123 and less than/equal to 155 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsRangeStartIndex | The start index value. |
[in] | rsRangeEndIndex | The end index value. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | std::vector< glo::TOndemand< T > > & | rOndemandContainer, |
const std::string & | rsFullIndexName, | ||
const std::string & | rsIndexSearchValue, | ||
EnComparisionOp | eComparisionOp ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined using the parameter eComparisionOp. If e.g. parameter sIndex has the value "123" and parameter eComparisionOp has the value glo::LESS, only all objects with the index lower than 123 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsFullIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | rsIndexSearchValue | The index value. |
[in] | eComparisionOp | The comparison operator. For example, if rsIndex has the value "123" and eComparisionOp has the value glo::LESS, all objects with the index glo::LESS than 123 are returned. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | std::vector< glo::TOndemand< T > > & | rOndemandContainer, |
const std::string & | rsFullIndexName, | ||
const std::string & | rsIndexSearchValue, | ||
EnQueryType | eQuerryType ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsFullIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | rsIndexSearchValue | The index expression can contain the placeholders '*' and '?', which are taken into account in the evaluation or if parameter eQueryType == eOQL, the string is interpreted as OQL expression. Please note; OQL is not yet implemented! |
[in] | eQuerryType | The query type. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | std::vector< glo::TOndemand< T > > & | rOndemandContainer, |
const std::string & | rsFullIndexName, | ||
const std::string & | rsRangeStartIndexSearchValue, | ||
const std::string & | rsRangeEndIndexSearchValue ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined with a range specification. For example, if parameter rsRangeStartIndexSearchValue has the value "123" and parameter rsRangeEndIndexSearchValue has the value "155", only all objects with an index greater than/equal to 123 and less than/equal to 155 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this list. |
[in] | rsFullIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | rsRangeStartIndexSearchValue | The start index value. |
[in] | rsRangeEndIndexSearchValue | The end index value. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | std::vector< glo::TOndemand< T > > & | rOndemandContainer, |
const std::string & | rsIndexName, | ||
unsigned long | ulIndexClassID, | ||
const std::string & | rsIndexSearchValue, | ||
EnComparisionOp | eComparisionOp ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined using the parameter eComparisionOp. If e.g. parameter sIndex has the value "123" and parameter eComparisionOp has the value glo::LESS, only all objects with the index lower than 123 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | ulIndexClassID | The ID of the class indexed with the 'rsIndexName'. This allows you to use the index of a superclass. |
[in] | rsIndexSearchValue | The index value. |
[in] | eComparisionOp | The comparison operator. For example, if rsIndex has the value "123" and eComparisionOp has the value glo::LESS, all objects with the index glo::LESS than 123 are returned. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | std::vector< glo::TOndemand< T > > & | rOndemandContainer, |
const std::string & | rsIndexName, | ||
unsigned long | ulIndexClassID, | ||
const std::string & | rsIndexSearchValue, | ||
EnQueryType | eQuerryType ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | ulIndexClassID | The ID of the class indexed with the 'rsIndexName'. This allows you to use the index of a superclass. |
[in] | rsIndexSearchValue | The index expression can contain the placeholders '*' and '?', which are taken into account in the evaluation or if parameter eQueryType == eOQL, the string is interpreted as OQL expression. Please note; OQL is not yet implemented! |
[in] | eQuerryType | The query type. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | std::vector< glo::TOndemand< T > > & | rOndemandContainer, |
const std::string & | rsIndexName, | ||
unsigned long | ulIndexClassID, | ||
const std::string & | rsRangeStartIndexSearchValue, | ||
const std::string & | rsRangeEndIndexSearchValue ) |
Returns a list of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined with a range specification. For example, if parameter rsRangeStartIndexSearchValue has the value "123" and parameter rsRangeEndIndexSearchValue has the value "155", only all objects with an index greater than/equal to 123 and less than/equal to 155 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsIndexName | The index name of the index to be searched. The index name must be passed with the full class name (e.g. "mynamespace::MyClassName.IndexName"). |
[in] | ulIndexClassID | The ID of the class indexed with the 'rsIndexName'. This allows you to use the index of a superclass. |
[in] | rsRangeStartIndexSearchValue | The start index value. |
[in] | rsRangeEndIndexSearchValue | The end index value. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | std::vector< glo::TOndemand< T > > & | rOndemandContainer, |
const std::string & | rsIndexSearchValue, | ||
EnComparisionOp | eComparisionOp ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined using the parameter eComparisionOp. If e.g. parameter sIndex has the value "123" and parameter eComparisionOp has the value glo::LESS, only all objects with the index lower than 123 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsIndexSearchValue | The index value. |
[in] | eComparisionOp | The comparison operator. For example, if rsIndex has the value "123" and eComparisionOp has the value glo::LESS, all objects with the index glo::LESS than 123 are returned. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | std::vector< glo::TOndemand< T > > & | rOndemandContainer, |
const std::string & | rsIndexSearchValue, | ||
EnQueryType | eQuerryType ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsIndexSearchValue | The index expression can contain the placeholders '*' and '?', which are taken into account in the evaluation or if parameter eQueryType == eOQL, the string is interpreted as OQL expression. Please note; OQL is not yet implemented! |
[in] | eQuerryType | The query type. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getIndexedOndemands | ( | std::vector< glo::TOndemand< T > > & | rOndemandContainer, |
const std::string & | rsRangeStartIndex, | ||
const std::string & | rsRangeEndIndex ) |
Returns a container of glo::TOndemand's from AllSet in relation to the passed parameters.
The result can be defined with a range specification. For example, if parameter rsRangeStartIndex has the value "123" and parameter rsRangeEndIndex has the value "155", only all objects with an index greater than/equal to 123 and less than/equal to 155 will be delivered.
[in,out] | rOndemandContainer | The glo::TOndemand's found are returned to this container. |
[in] | rsRangeStartIndex | The start index value. |
[in] | rsRangeEndIndex | The end index value. |
References glo::BaseAllSet::getIndexedObjIds(), and transferObjIListIntoOndemandContainer().
int glo::TAllSet< T >::getOndemand | ( | glo::TOndemand< T > & | rRetVal, |
EnSeekMode | eMode ) |
Returns a object in passed glo::TOndemand from the AllSet of the referenced database in relation to eMode.
[in,out] | rRetVal | The object in the passed glo::TOndemand if found. |
[in] | eMode | The seek mode. |
Parameter examples:
References getOndemand().
int glo::TAllSet< T >::getOndemand | ( | glo::TOndemand< T > *& | prRetVal, |
EnSeekMode | eMode ) |
Returns a new glo::TOndemand object from the AllSet of the referenced database in relation to eMode.
[in,out] | prRetVal | The object in a new glo::TOndemand if found. |
[in] | eMode | The seek mode. |
Parameter examples:
References glo::END, glo::BaseAllSet::getBase(), glo::ObjID::getClassID(), getOndemand(), glo::NEXT, glo::BaseAllSet::open(), glo::PREVIOUS, and glo::START.
Referenced by getOndemand(), getOndemand(), and getOndemand().
int glo::TAllSet< T >::getOndemand | ( | std::shared_ptr< glo::TOndemand< T > > & | rRetVal, |
EnSeekMode | eMode ) |
Returns a glo::TOndemand object in a std::shared_ptr from the AllSet of the referenced database in relation to eMode.
[in,out] | rRetVal | The object in a std::shared_ptr if found. |
[in] | eMode | The seek mode. |
Parameter examples:
References getOndemand().
|
virtual |
Returns an object from the AllSet of the database with passed object ID.
[in,out] | prRetVal | If no error, the fetched object. |
[in] | rObjID | The object ID. |
Implements glo::AbstractBaseLot.
References glo::ERR_NO_BASE, and glo::BaseAllSet::getBase().
|
virtual |
Returns an object with passed object ID from the container.
[in,out] | rRetVal | If no error, the fetched object. |
[in] | rObjID | The object ID. |
Reimplemented from glo::AbstractBaseLot.
|
inlinestatic |
Returns the template class ID.
|
private |
The assignment operator is not available.
References TAllSet().
|
virtual |
The AllSet is monitored in the database.
[in] | ulWatchMode | The monitoring mode. Allowed watch modes:
|
[in] | pCallBack | The CallBack object that is notified via its method CallBack::notify(NotifyNote&). If no CallBack is passed, notify(NotifyNote&) is taken from this; in this case the method notify(NotifyNote&) should be overwritten in the respective derived class. |
Implements glo::BaseAllSet.
References TAllSet(), glo::ERR_BASE_NOT_OPEN, glo::BaseAllSet::getBase(), glo::BaseAllSet::getClassID(), and glo::BaseAllSet::open().
|
private |
Transfers the glo::ObjID's from the transferred rSourceContainer as glo::TOndemand's into the transferred rTargetVevtor.
[in] | rSourceContainer | The list with the glo::ObjID's. |
[in,out] | rTargetConteiner | The resulting vector of glo::TOndemand's. |
References glo::OndemandList::appendOndemand(), and glo::BaseAllSet::getBase().
|
private |
Transfers the glo::ObjID's from the transferred rSourceContainer as glo::TOndemand's into the transferred rTargetVevtor.
[in] | rSourceContainer | The list with the glo::ObjID's. |
[in,out] | rTargetConteiner | The resulting vector of glo::TOndemand's. |
References glo::BaseAllSet::getBase().
Referenced by getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), getIndexedOndemands(), and getIndexedOndemands().
|
virtual |
Monitoring of the AllSet in the referenced database is cancelled.
[in] | ulWatchMode | The monitoring mode. Allowed watch modes:
|
[in] | pCallBack | The CallBack object, which should be notified via its method CallBack::notify(NotifyNote&). |
Implements glo::BaseAllSet.
References TAllSet(), glo::ERR_BASE_NOT_OPEN, glo::ERR_NO_BASE, glo::BaseAllSet::getBase(), and glo::BaseAllSet::getClassID().