Update contrib.
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 // Class CDbDataSource
20 CDbDataSource::TGoto CDbDataSource::GotoL(TDbPosition aPosition,TDbRecordId& aRecordId)
25 TGoto r=GotoL(work,aPosition,aRecordId);
33 CDbDataStage::~CDbDataStage()
38 RDbRow* CDbDataStage::RowBuffer()
40 return Source().RowBuffer();
43 TDbColumn CDbDataStage::Column(TDbColNo aColNo)
45 return Source().Column(aColNo);
48 void CDbDataStage::Reset()
53 TBool CDbDataStage::EvaluateL(TInt& aWork,TDbRecordId& aRecordId,TBool& aAtRow)
55 return Source().EvaluateL(aWork,aRecordId,aAtRow);
58 TBool CDbDataStage::Unevaluated()
60 return Source().Unevaluated();
63 TInt CDbDataStage::CountL()
65 return Source().CountL();
68 CDbDataStage::TGoto CDbDataStage::GotoL(TInt& aWork,TDbPosition aPosition,TDbRecordId& aRecordId)
70 return Source().GotoL(aWork,aPosition,aRecordId);
73 TBool CDbDataStage::GotoL(TDbRecordId aRecordId)
75 return Source().GotoL(aRecordId);
78 void CDbDataStage::ReadRowL(TDbRecordId aRecordId)
80 Source().ReadRowL(aRecordId);
83 void CDbDataStage::NewRowL(TDbRecordId aCopyRecord)
85 Source().NewRowL(aCopyRecord);
88 void CDbDataStage::PrepareToWriteRowL(TWrite aWrite)
90 Source().PrepareToWriteRowL(aWrite);
93 TDbRecordId CDbDataStage::WriteRowL(TWrite aWrite,TSynch aSynch)
95 return Source().WriteRowL(aWrite,aSynch);
98 CDbDataStage::TDelete CDbDataStage::DeleteRowL(TDbRecordId& aRecordId,TSynch aSynch)
100 return Source().DeleteRowL(aRecordId,aSynch);
103 TInt CDbDataStage::ColumnCount() const
105 return Source().ColumnCount();
108 const TDbColumnDef& CDbDataStage::ColumnDef(TDbColNo aCol) const
110 return Source().ColumnDef(aCol);
113 void CDbDataStage::SetIndexL(const TDesC*)
115 // Only invoked from a RDbTable.
116 // No data stages are present for such a view
122 TBool CDbDataStage::SeekL(const TDbLookupKey&,RDbTable::TComparison,TDbRecordId&)
124 // Only invoked from a RDbTable.
125 // No data stages are present for such a view
132 CSqlSearchCondition* CDbDataStage::ParseConstraintLC(const TDesC& aCondition)
134 return Source().ParseConstraintLC(aCondition);