RDbs Class Reference

class RDbs : public RSessionBase

Client-server databases

Represents a session with the DBMS server. A thread uses this class to set up a DBMS server session and this provides the basis for sharing databases with other threads.

Inherits from

Public Member Functions
IMPORT_C CDbStrings *BackupPathsL(TSecureId, TUid)
IMPORT_C TIntConnect()
IMPORT_C TIntCopyDatabase(const TDesC &, const TDesC &, TUid)
IMPORT_C CDbDatabaseNames *DatabaseNamesL(TDriveNumber, TUid)
IMPORT_C TIntDeleteDatabase(const TDesC &, TUid)
IMPORT_C voidFreeReservedSpace(TInt)
IMPORT_C TIntGetBackupPath(TSecureId, const TDesC &, TUid, TDes &)
IMPORT_C TIntGetDatabasePolicy(TUid, TPolicyType, TSecurityPolicy &)
IMPORT_C TIntGetReserveAccess(TInt)
IMPORT_C TIntGetTablePolicies(TUid, const TDesC &, TPolicyType, TSecurityPolicy &, TSecurityPolicy &)
IMPORT_C TIntGetTablePolicy(TUid, const TDesC &, TPolicyType, TSecurityPolicy &)
IMPORT_C TIntReleaseReserveAccess(TInt)
IMPORT_C TIntReserveDriveSpace(TInt, TInt)
IMPORT_C voidResourceCheck()
IMPORT_C TIntResourceCount()
IMPORT_C voidResourceMark()
IMPORT_C voidSetHeapFailure(TInt, TInt)
IMPORT_C TVersionVersion()
Private Member Functions
TInt DoConnect()
TInt GetPolicy(TUid, const TDesC &, TUint, TSecurityPolicy &)
TInt SessionMessage(TInt)
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::Close()
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Public Member Enumerations
enumTPolicyType { EReadPolicy, EWritePolicy, ESchemaPolicy }
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Inherited Attributes
RHandleBase::iHandle

Member Functions Documentation

BackupPathsL(TSecureId, TUid)

IMPORT_C CDbStrings *BackupPathsL(TSecureIdaRequesterSid,
TUidaDbPolicyUid
)

Parameters

TSecureId aRequesterSid
TUid aDbPolicyUid

Connect()

IMPORT_C TIntConnect()

CopyDatabase(const TDesC &, const TDesC &, TUid)

IMPORT_C TIntCopyDatabase(const TDesC &aSrcDbName,
const TDesC &aDestDbName,
TUidaPolicyUid
)

Parameters

const TDesC & aSrcDbName
const TDesC & aDestDbName
TUid aPolicyUid

DatabaseNamesL(TDriveNumber, TUid)

IMPORT_C CDbDatabaseNames *DatabaseNamesL(TDriveNumberaDrive,
TUidaPolicyUid
)

Parameters

TDriveNumber aDrive
TUid aPolicyUid

DeleteDatabase(const TDesC &, TUid)

IMPORT_C TIntDeleteDatabase(const TDesC &aDbName,
TUidaPolicyUid
)

Parameters

const TDesC & aDbName
TUid aPolicyUid

DoConnect()

TInt DoConnect()[private]

FreeReservedSpace(TInt)

IMPORT_C voidFreeReservedSpace(TIntaDriveNo)

Parameters

TInt aDriveNo

GetBackupPath(TSecureId, const TDesC &, TUid, TDes &)

IMPORT_C TIntGetBackupPath(TSecureIdaRequesterSid,
const TDesC &aDbName,
TUidaDbPolicyUid,
TDes &aBackupPath
)

Parameters

TSecureId aRequesterSid
const TDesC & aDbName
TUid aDbPolicyUid
TDes & aBackupPath

GetDatabasePolicy(TUid, TPolicyType, TSecurityPolicy &)

IMPORT_C TIntGetDatabasePolicy(TUidaPolicyUid,
TPolicyTypeaPolicyType,
TSecurityPolicy &aDbPolicy
)

Parameters

TUid aPolicyUid
TPolicyType aPolicyType
TSecurityPolicy & aDbPolicy

GetPolicy(TUid, const TDesC &, TUint, TSecurityPolicy &)

TInt GetPolicy(TUidaPolicyUid,
const TDesC &aTableName,
TUintaMask,
TSecurityPolicy &aPolicy
)[private]

Parameters

TUid aPolicyUid
const TDesC & aTableName
TUint aMask
TSecurityPolicy & aPolicy

GetReserveAccess(TInt)

IMPORT_C TIntGetReserveAccess(TIntaDriveNo)

Parameters

TInt aDriveNo

GetTablePolicies(TUid, const TDesC &, TPolicyType, TSecurityPolicy &, TSecurityPolicy &)

IMPORT_C TIntGetTablePolicies(TUidaPolicyUid,
const TDesC &aTableName,
TPolicyTypeaPolicyType,
TSecurityPolicy &aDbPolicy,
TSecurityPolicy &aTablePolicy
)

Parameters

TUid aPolicyUid
const TDesC & aTableName
TPolicyType aPolicyType
TSecurityPolicy & aDbPolicy
TSecurityPolicy & aTablePolicy

GetTablePolicy(TUid, const TDesC &, TPolicyType, TSecurityPolicy &)

IMPORT_C TIntGetTablePolicy(TUidaPolicyUid,
const TDesC &aTableName,
TPolicyTypeaPolicyType,
TSecurityPolicy &aTablePolicy
)

Parameters

TUid aPolicyUid
const TDesC & aTableName
TPolicyType aPolicyType
TSecurityPolicy & aTablePolicy

ReleaseReserveAccess(TInt)

IMPORT_C TIntReleaseReserveAccess(TIntaDriveNo)

Parameters

TInt aDriveNo

ReserveDriveSpace(TInt, TInt)

IMPORT_C TIntReserveDriveSpace(TIntaDriveNo,
TIntaSpace
)

Parameters

TInt aDriveNo
TInt aSpace

ResourceCheck()

IMPORT_C voidResourceCheck()

ResourceCount()

IMPORT_C TIntResourceCount()

ResourceMark()

IMPORT_C voidResourceMark()

SessionMessage(TInt)

TInt SessionMessage(TIntaFunction)[private]

Parameters

TInt aFunction

SetHeapFailure(TInt, TInt)

IMPORT_C voidSetHeapFailure(TIntaTAllocFail,
TIntaRate
)

Parameters

TInt aTAllocFail
TInt aRate

Version()

IMPORT_C TVersionVersion()[static]

Member Enumerations Documentation

Enum TPolicyType

This enum is used in GetDatabasePolicy/GetTablePolicy/GetTablePolicies calls and specifies requested security policy type: read/write/schema.

Enumerators

EReadPolicy
EWritePolicy
ESchemaPolicy