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

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

Definition at line 194 of file VideoSetsRepository.h.

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

Referenced by VideoSetsRepository().

00195     {
00196         ILOG_DEBUG("GetFromMonetDB");
00197         Connection* conn = RepositoryInMonetDB::GetInstance().GetConnection(loc);
00198 
00199         String query =
00200             "select identifier, set_name \
00201              from   video_sets \
00202              order by identifier;";
00203 
00204         MapiHdl hdl = conn->QueryPartStart(query);
00205         if (hdl == 0)
00206             return;
00207 
00208         int* id = 0;
00209         int idSize = 0;
00210         if (!conn->QueryPartFetchInt(hdl, 0, id, idSize))
00211             return;
00212 
00213         std::vector<String> sName;
00214         if (!conn->QueryPartFetchString(hdl, 1, sName))
00215             return;
00216 
00217         conn->QueryPartEnd(hdl);
00218 
00219         for (int i=0 ; i<idSize ; i++)
00220         {
00221             mIdMap.Add(id[i], sName[i]);
00222         }
00223         delete id;
00224     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:23:57 2011 for ImpalaSrc by  doxygen 1.5.1