Symbian3/SDK/Source/GUID-05FDC28B-F033-5FDC-8F41-71BD212C27E2.dita
author Dominic Pinkman <dominic.pinkman@nokia.com>
Tue, 20 Jul 2010 12:00:49 +0100
changeset 13 48780e181b38
parent 7 51a74ef9ed63
permissions -rw-r--r--
Week 28 contribution of SDK documentation content. See release notes for details. Fixes bugs Bug 1897 and Bug 1522.

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE concept
  PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="GUID-05FDC28B-F033-5FDC-8F41-71BD212C27E2" xml:lang="en"><title>Access
modes</title><shortdesc>Describes the access modes supported by a database.</shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
<p>A named database supports three access modes:</p>
<ul>
<li id="GUID-BFF0FE8F-FCA1-57E4-BA1B-EB6B26955067"><p>Exclusive read/write
access</p> </li>
<li id="GUID-81273D9E-7999-5C7D-A8F9-5F13C8DE5A5A"><p>Shared read-only access</p> </li>
<li id="GUID-F04D5329-85C3-551A-8A32-26E6170CA69D"><p>Shared read/write access</p> </li>
</ul>
<p>The first two access modes are implemented through a file server session
which provides the necessary file access modes while shared read/write access
must be done through the DBMS server.</p>
<p>Creating a database through the <codeph>Create()</codeph> and <codeph>Replace()</codeph> member
functions of <codeph>RDbNamedDatabase</codeph>, initiates client-side access
to the database and does not require a connection to the DBMS server.</p>
<p><codeph>RDbNamedDatabase</codeph> offers two <codeph>Open()</codeph> functions,
one for client-side access and the other for client-server access. Client-side
access is preferred over client-server access as data retrieval is faster
than indirecting via the DBMS server.</p>
</conbody></concept>