217 TAllSet(
Base & rBase,
bool bWithSubClasses =
true );
238 TAllSet(
Base & rBase,
const std::string & rsFullIndexName );
315 int get( T *& prRetVal, EnSeekMode eMode );
352 int get( std::shared_ptr<T> & rRetVal, EnSeekMode eMode );
406 int get(
glo::ObjID & rObjID, T *& prRetVal, EnSeekMode eMode );
449 int get(
glo::ObjID & rObjID, std::shared_ptr<T> & rRetVal, EnSeekMode eMode );
501 int get( std::shared_ptr<T> & rRetVal,
const glo::ObjID & rObjID );
518 virtual int getPersistent( std::shared_ptr<BasePersistent> & rRetVal,
682 const std::string & rsIndexSearchValue,
683 EnQueryType eQuerryType );
724 const std::string & rsFullIndexName,
725 const std::string & rsIndexSearchValue,
726 EnQueryType eQuerryType );
772 const std::string & rsIndexName,
773 unsigned long ulIndexClassID,
774 const std::string & rsIndexSearchValue,
775 EnQueryType eQuerryType );
818 const std::string & rsIndexSearchValue,
819 EnComparisionOp eComparisionOp );
867 const std::string & rsFullIndexName,
868 const std::string & rsIndexSearchValue,
869 EnComparisionOp eComparisionOp );
922 const std::string & rsIndexName,
923 unsigned long ulIndexClassID,
924 const std::string & rsIndexSearchValue,
925 EnComparisionOp eComparisionOp );
960 const std::string & rsRangeStartIndex,
961 const std::string & rsRangeEndIndex );
1004 const std::string & rsFullIndexName,
1005 const std::string & rsRangeStartIndexSearchValue,
1006 const std::string & rsRangeEndIndexSearchValue );
1055 const std::string & rsIndexName,
1056 unsigned long ulIndexClassID,
1057 const std::string & rsRangeStartIndexSearchValue,
1058 const std::string & rsRangeEndIndexSearchValue );
1116 virtual int setWatch( TdWatchNotifyMode ulWatchMode,
CallBack * pCallBack = 0 );
1236 std::shared_ptr<T> t_TempT(
new T, Forgeter<T>() );
1237 SUPER::setClassIDFromTemplate( t_TempT->getGloClassID() );
1238 int t_iErr = SUPER::setFullIndexName( rsFullIndexName );
1241 throw eut::ErrorNException(
"TAllSet::setBase(Base * pBase, unsigned long ulClassID, const std::string & rsFullIndexName)", t_iErr, __FILE__, __LINE__ );
1270 t_iErr = this->open();
1275 t_iErr = this->getBase()->getObjectFromAllSet( rObjID, t_pGetObj, *
this, eMode );
1280 prRetVal =
dynamic_cast<T*
>( t_pGetObj );
1285 if ( eMode == glo::START || eMode == glo::NEXT )
1287 t_iErr = this->getBase()->getObjectFromAllSet( rObjID, t_pGetObj, *
this, glo::NEXT );
1289 else if ( eMode == glo::END || eMode == glo::PREVIOUS )
1291 t_iErr = this->getBase()->getObjectFromAllSet( rObjID, t_pGetObj, *
this, glo::PREVIOUS );
1298 }
while ( ! t_iErr );
1309 T * t_pPersistent = 0;
1310 int t_iErr = this->get( rObjID, t_pPersistent, eMode );
1312 if ( t_pPersistent )
1314 rRetVal = std::shared_ptr<T>( t_pPersistent, Forgeter<T>() );
1395 t_iErr = this->open();
1400 t_iErr = this->getBase()->getObjIdFromAllSet( t_ObjID, *
this, eMode );
1404 bool t_bIsKnownClassID =
false;
1406 t_iErr = this->getBase()->isKnownClassID( t_bIsKnownClassID, t_ObjID.
getClassID() );
1409 if ( ! t_bIsKnownClassID )
1412 if ( eMode == START || eMode == NEXT )
1414 t_iErr = this->getOndemand( prRetVal, NEXT );
1416 else if ( eMode == END || eMode == PREVIOUS )
1418 t_iErr = this->getOndemand( prRetVal, PREVIOUS );
1423 prRetVal =
new TOndemand<T>( t_ObjID, * this->getBase() );
1462 const std::string & rsIndexSearchValue,
1463 EnQueryType eQuerryType )
1466 std::vector< ObjID > t_ObjIDContainer;
1468 t_iErr = this->getIndexedObjIds( t_ObjIDContainer,
1473 this->transferObjIListIntoOndemandVector( t_ObjIDContainer, rOndemandVector );
1480 const std::string & rsFullIndexName,
1481 const std::string & rsIndexSearchValue,
1482 EnQueryType eQuerryType )
1485 std::vector< ObjID > t_ObjIDContainer;
1487 t_iErr = this->getIndexedObjIds( t_ObjIDContainer,
1493 this->transferObjIListIntoOndemandVector( t_ObjIDContainer, rOndemandVector );
1500 const std::string & rsIndexName,
1501 unsigned long ulIndexClassID,
1502 const std::string & rsIndexSearchValue,
1503 EnQueryType eQuerryType )
1506 std::vector< ObjID > t_ObjIDContainer;
1508 t_iErr = this->getIndexedObjIds( t_ObjIDContainer,
1515 this->transferObjIListIntoOndemandVector( t_ObjIDContainer, rOndemandVector );
1522 const std::string & rsIndexSearchValue,
1523 EnComparisionOp eComparisionOp )
1526 std::vector< ObjID > t_ObjIDContainer;
1528 t_iErr = this->getIndexedObjIds( t_ObjIDContainer,
1534 this->transferObjIListIntoOndemandVector( t_ObjIDContainer, rOndemandVector );
1541 const std::string & rsFullIndexName,
1542 const std::string & rsIndexSearchValue,
1543 EnComparisionOp eComparisionOp )
1546 std::vector< ObjID > t_ObjIDContainer;
1548 t_iErr = this->getIndexedObjIds( t_ObjIDContainer,
1555 this->transferObjIListIntoOndemandVector( t_ObjIDContainer, rOndemandVector );
1562 const std::string & rsIndexName,
1563 unsigned long ulIndexClassID,
1564 const std::string & rsIndexSearchValue,
1565 EnComparisionOp eComparisionOp )
1568 std::vector< ObjID > t_ObjIDContainer;
1570 t_iErr = this->getIndexedObjIds( t_ObjIDContainer,
1578 this->transferObjIListIntoOndemandVector( t_ObjIDContainer, rOndemandVector );
1585 const std::string & rsRangeStartIndex,
1586 const std::string & rsRangeEndIndex )
1589 std::vector< ObjID > t_ObjIDContainer;
1591 t_iErr = this->getIndexedObjIds( t_ObjIDContainer,
1597 this->transferObjIListIntoOndemandVector( t_ObjIDContainer, rOndemandVector );
1604 const std::string & rsFullIndexName,
1605 const std::string & rsRangeStartIndexSearchValue,
1606 const std::string & rsRangeEndIndexSearchValue )
1609 std::vector< ObjID > t_ObjIDContainer;
1611 t_iErr = this->getIndexedObjIds( t_ObjIDContainer,
1613 rsRangeStartIndexSearchValue,
1614 rsRangeEndIndexSearchValue );
1618 this->transferObjIListIntoOndemandVector( t_ObjIDContainer, rOndemandVector );
1625 const std::string & rsIndexName,
1626 unsigned long ulIndexClassID,
1627 const std::string & rsRangeStartIndexSearchValue,
1628 const std::string & rsRangeEndIndexSearchValue )
1631 std::vector< ObjID > t_ObjIDContainer;
1633 t_iErr = this->getIndexedObjIds( t_ObjIDContainer,
1636 rsRangeStartIndexSearchValue,
1637 rsRangeEndIndexSearchValue );
1641 this->transferObjIListIntoOndemandVector( t_ObjIDContainer, rOndemandVector );
1673 if ( ! this->getBase() )
return ERR_NO_BASE;
1674 if ( ! this->getBase()->getObjectMaker() )
return ERR_BASE_NOT_OPEN;
1680 pCallBack = t_pConstCastThis;
1682 return this->getBase()->unsetWatchClass( this->getBase()->getObjectMaker()->getClassID(
this ),
1683 ulWatchMode, pCallBack );
virtual int getPersistent(BasePersistent *&prRetVal, const glo::ObjID &rObjID)
Returns an object from the AllSet of the database with passed object ID.
Definition GloTAllSet.h:1320
int getIndexedOndemands(std::vector< glo::TOndemand< T > > &rOndemandVector, const std::string &rsIndexSearchValue, EnQueryType eQuerryType)
Definition GloTAllSet.h:1461