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.
14 // Evaluation tree base classes
22 CSqlQuery::CSqlQuery()
25 CSqlQuery::~CSqlQuery()
28 delete iSearchCondition;
29 delete iSortSpecification;
32 CDbKey& CSqlQuery::SortSpecificationL()
34 CDbKey* key=iSortSpecification;
36 iSortSpecification=key=CDbKey::NewL();
40 void CSqlQuery::RemovePredicate(CSqlCompPredicate* aNode)
42 CSqlSearchCondition::TType type=iSearchCondition->NodeType();
43 if (type>CSqlSearchCondition::ENotLike && type<CSqlSearchCondition::ENotEqual)
45 delete iSearchCondition;
48 else if (type==CSqlSearchCondition::EAnd)
50 CSqlMultiNode* multiNode=iSearchCondition->MultiNode();
51 multiNode->Remove(aNode);
52 iSearchCondition=CSqlMultiNode::Reduce(multiNode);
59 // class CSqlSearchCondition
61 CSqlSearchCondition::CSqlSearchCondition(TType aType)