Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void Impala::Persistency::VideoSetsRepository::GetFromMonetDB ( const Locator loc  )  [inline, private]

Definition at line 183 of file VideoSetsRepository.h.

References Impala::Persistency::RepositoryInMonetDB::GetConnection(), Impala::Persistency::RepositoryInMonetDB::GetInstance(), ILOG_DEBUG, and mIdMap.

Referenced by VideoSetsRepository().

00184     {
00185         ILOG_DEBUG("GetFromMonetDB");
00186         Connection* conn = RepositoryInMonetDB::GetInstance().GetConnection(loc);
00187 
00188         String query =
00189             "select identifier, set_name \
00190              from   video_sets \
00191              order by identifier;";
00192 
00193         MapiHdl hdl = conn->QueryPartStart(query);
00194         if (hdl == 0)
00195             return;
00196 
00197         int* id = 0;
00198         int idSize = 0;
00199         if (!conn->QueryPartFetchInt(hdl, 0, id, idSize))
00200             return;
00201 
00202         std::vector<String> sName;
00203         if (!conn->QueryPartFetchString(hdl, 1, sName))
00204             return;
00205 
00206         conn->QueryPartEnd(hdl);
00207 
00208         for (int i=0 ; i<idSize ; i++)
00209         {
00210             mIdMap.Add(id[i], sName[i]);
00211         }
00212         delete id;
00213     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:37:24 2010 for ImpalaSrc by  doxygen 1.5.1