diff -r 82b66994846c -r dbb8300717f7 contentstorage/castorage/src/casqlquery.cpp --- a/contentstorage/castorage/src/casqlquery.cpp Fri Apr 30 15:22:08 2010 +0300 +++ b/contentstorage/castorage/src/casqlquery.cpp Fri May 14 17:24:44 2010 +0300 @@ -413,6 +413,41 @@ // // --------------------------------------------------------------------------- // +void CCaSqlQuery::BindValuesForGetLocalizationEntryL( + const CCaLocalizationEntry& aLocalization) + { + BindIntL( iStatement.ParameterIndex( KSQLLocRowId ), + aLocalization.GetRowId() ); + BindTextL( iStatement.ParameterIndex( KSQLLocTable ), + aLocalization.GetTableName() ); + BindTextL( iStatement.ParameterIndex( KSQLLocAttribute ), + aLocalization.GetAttributeName() ); + } + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// +void CCaSqlQuery::BindValuesForLocalizationEntryL( + const CCaLocalizationEntry& aLocalization) + { + BindIntL( iStatement.ParameterIndex( KSQLLocRowId ), + aLocalization.GetRowId() ); + BindTextL( iStatement.ParameterIndex( KSQLLocTable ), + aLocalization.GetTableName() ); + BindTextL( iStatement.ParameterIndex( KSQLLocAttribute ), + aLocalization.GetAttributeName() ); + BindTextL( iStatement.ParameterIndex( KSQLLocQmFilename ), + aLocalization.GetQmFilename() ); + BindTextL( iStatement.ParameterIndex( KSQLLocString ), + aLocalization.GetStringId() ); + } + + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// void CCaSqlQuery::BindValuesForGetEntriesL( const CCaInnerQuery* aQuery ) { if( aQuery->GetIds().Count() > 0 ) @@ -609,6 +644,19 @@ // // --------------------------------------------------------------------------- // +TBool CCaSqlQuery::ExecuteEntryPresentL( ) + { + if( iStatement.Next() == KSqlAtRow ) + { + return ETrue; + } + return EFalse; + } + +// --------------------------------------------------------------------------- +// +// --------------------------------------------------------------------------- +// TInt CCaSqlQuery::ExecuteL( TInt& aId ) { if( iStatement.Next() == KSqlAtRow ) @@ -743,6 +791,13 @@ tableName ) ); + TPtrC qmFilename; + User::LeaveIfError( + iStatement.ColumnText( + ColumnIndexL( iStatement, KColumnQmFile ), + qmFilename ) + ); + TPtrC attribute; User::LeaveIfError( iStatement.ColumnText( @@ -763,6 +818,7 @@ result->SetStringIdL( stringId ); result->SetRowId( rowId ); result->SetTableNameL( tableName ); + result->SetQmFilenameL( qmFilename ); aResultInput.AppendL( result ); CleanupStack::Pop( result );