Select data objects according to the supplied search criteria (arg 2), and populate the supplied hzIntset with the object ids. The parse process is rudimentary, so SQL-esce rather than strict SQL. Each search criteria term will produce an idset result. OR and AND operations are applied where there are multiple terms. If these operations are not stated, AND is assumed.

Return TypeFunction nameArguments
hzEcodehdbObjRepos::Select(hzIntset&,const char*,)

Declared in file: hzDatabase.h
Defined in file : hdbObjRepos.cpp

Function Logic:

0:START 1:items items 2:Return rc

Function body:

hzEcode hdbObjRepos::Select (hzIntset& result)const char* cpSQL, 
{
   //  Select data objects according to the supplied search criteria (arg 2), and populate the supplied hzIntset with the object ids.
   //  
   //  The parse process is rudimentary, so SQL-esce rather than strict SQL. Each search criteria term will produce an idset result. OR and AND operations are applied where there
   //  are multiple terms. If these operations are not stated, AND is assumed.
   //  
   //  Arguments: 1) result The bitmap of object ids identified by the select operation
   //     2) cpSql The SQL-esce search criteria
   _hzfunc("hdbObjRepos::Select_a") ;
   hzEcode     rc = E_OK ;
   //  Check init state
   _hdb_ck_initstate(m_Name, m_eReposInit, HDB_REPOS_OPEN) ;
   //  Clear result idset
   result.Clear() ;
   //  STUB
   //  Do the Select
   //  if (!pExp->Parse(cpSQL))
   //   hzerr(E_PARSE) ;
   return rc ;
}