equal
deleted
inserted
replaced
|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "UD_STD.H" |
|
17 #include <e32svr.h> |
|
18 |
|
19 GLDEF_C void Panic(TDbPanic aPanic) |
|
20 // |
|
21 // Panic the client. |
|
22 // |
|
23 { |
|
24 _LIT(KCategory,"DBMS"); |
|
25 Dbms::Panic(KCategory,aPanic); |
|
26 } |
|
27 |
|
28 |
|
29 // Class RDbHandleBase |
|
30 |
|
31 void RDbHandleBase::Close() |
|
32 { |
|
33 CDbObject* obj=iObject; |
|
34 iObject=0; |
|
35 CDbObject::Destroy(obj); |
|
36 } |
|
37 |
|
38 CDbObject& RDbHandleBase::Object() const |
|
39 { |
|
40 CDbObject* obj=iObject; |
|
41 __ASSERT_ALWAYS(obj,Panic(EDbUninitialised)); |
|
42 return *obj; |
|
43 } |