secureswitools/swisistools/source/interpretsislib/dbhelper.cpp
changeset 75 2d2d25361590
parent 50 c6e8afe0ba85
equal deleted inserted replaced
69:b18a4bf55ddb 75:2d2d25361590
   245 	
   245 	
   246 	if(!stmtInRom->ProcessNextRow())
   246 	if(!stmtInRom->ProcessNextRow())
   247 		return DbConstants::KDefaultIsInRom;
   247 		return DbConstants::KDefaultIsInRom;
   248 
   248 
   249 	return (stmtInRom->IntColumn(0) == 1);
   249 	return (stmtInRom->IntColumn(0) == 1);
       
   250 	}
       
   251 
       
   252 std::wstring DbHelper::GetStubFileName( TInt32 aComponentId ) const
       
   253 	{
       
   254 	std::string selectStubFileName("SELECT StrValue FROM ComponentProperties WHERE ComponentId=? and Name=?;");
       
   255 	std::auto_ptr<CStatement> stmtStubFileName(iScrDbHandler->PrepareStatement(selectStubFileName));
       
   256 		
       
   257 	stmtStubFileName->BindInt(1, aComponentId);
       
   258 	stmtStubFileName->BindStr(2, DbConstants::CompStubFileName);
       
   259 	
       
   260 	if(stmtStubFileName->ProcessNextRow())
       
   261 		{
       
   262 		return stmtStubFileName->StrColumn(0);
       
   263 		}
       
   264 
       
   265 	return L"\0";
   250 	}
   266 	}
   251 
   267 
   252 std::wstring DbHelper::GetPackageName( TInt32 aComponentId ) const
   268 std::wstring DbHelper::GetPackageName( TInt32 aComponentId ) const
   253 	{
   269 	{
   254 	std::string selectPckgName("SELECT Name FROM ComponentLocalizables WHERE ComponentId=?;");
   270 	std::string selectPckgName("SELECT Name FROM ComponentLocalizables WHERE ComponentId=?;");