Definition at line 27 of file KeywordListRepositoryInMonet.h. References Impala::FileNameBase(), Impala::Persistency::KeywordListLocator::GetConceptSet(), Impala::Persistency::RepositoryInMonetDB::GetConnection(), Impala::Persistency::Locator::GetDataSet(), and RepMonet(). 00028 { 00029 Connection* conn = RepMonet().GetConnection(loc); 00030 00031 String vidSetBase = FileNameBase(loc.GetDataSet()); 00032 String conceptSetBase = FileNameBase(loc.GetConceptSet()); 00033 String query = 00034 "select k.keyword_name \ 00035 from keyword k, keyword_set ks, keyword_sets kss, video_sets vss \ 00036 where vss.set_name = '" + vidSetBase + "' and \ 00037 kss.video_sets_id = vss.video_sets_id and \ 00038 kss.set_name = '" + conceptSetBase + "' and \ 00039 ks.keyword_sets_id = kss.keyword_sets_id and \ 00040 k.keyword_id = ks.keyword_id \ 00041 order by k.keyword_id;"; 00042 00043 KeywordList* concepts = new KeywordList(); 00044 MapiHdl hdl = conn->QueryPartStart(query); 00045 if (hdl == 0) 00046 return concepts; 00047 00048 if (!conn->QueryPartFetchString(hdl, 0, *concepts)) 00049 return concepts; 00050 00051 conn->QueryPartEnd(hdl); 00052 00053 return concepts; 00054 }
Here is the call graph for this function:
|