CommsDat::CMDBSessionImpl Class Reference

class CommsDat::CMDBSessionImpl : public CBase

Inherits from

Public Member Functions
CMDBSessionImpl ( CMDBSession &)
~CMDBSessionImpl ()
void ClearAttributeMask ( TMDBAttributeFlags )
void Close ()
TInt ConstructL ( TVersion )
void CreateNodeL ( TMDBElementId &, TMDBElementId , CMDBElement &, SGenericRecordTypeInfo *)
TInt CreateNotifier ()
void CreatePlaceholderL ( TMDBElementId &, TMDBElementId , TDesC &)
void CreatePlaceholderL ( TMDBElementId &, TMDBElementId , CMDBElement &)
void DeleteAllowedL ( TMDBElementId )
void EndModification ()
TInt FindElementInDatabaseL ( TMDBElementId &)
TInt FindMatchL ( RArray < TUint32 > &, RArray < TUint32 > &, TUint32 )
TInt GatherParentAttributesL ( TMDBElementId &)
TMDBAttributeFlags GetReadAttributeMask ()
TMDBAttributeFlags GetWriteAttributeMask ()
TBool IsInTransaction ()
TBool IsSetAttributeMask ( TMDBAttributeFlags )
TVersion LatestVersion ()
TInt LoadElementAttributesL ( TMDBElementId &)
TInt LoadNodeAttributesL ( TMDBElementId &)
TInt MaybeCommitTransactionL ( TBool , CMDBElement *, TInt )
void MaybeCreateNodeL ( CMDBElement &)
TInt MaybeDeleteNodeL ( CMDBElement *, TMDBElementId &)
TInt MaybeModifyNodeL ( TMDBElementId &)
TBool MaybeOpenTransactionL ()
CCDNotifier * NotifierL ()
void ReadAllowedL ( TMDBElementId )
void RollbackTransactionL ()
void SetAttributeMask ( TMDBAttributeFlags )
void SetNodeIdL ( TMDBElementId &, TMDBElementId , TMDBElementId , TMDBElementId , TInt )
CRepository * StorageL ()
TBool UsingLatestVersion ()
TVersion VersionInUse ()
void WriteAllowedL ( TMDBElementId )
Private Member Functions
void EstablishVersionL ( TVersion )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Attributes
TBool iMapping
CMDBSession & iOwner
Private Attributes
TVersion iClientsDataSetVersion
RProperty iCommitSeqProperty
CRepository * iCommsStorage
TBool iInModification
TBool iInTransaction
CCDNotifier * iNotifier
TMDBAttributeFlags iReadAttributeMask
TRequestStatus iStatusIndicator
TBool iUsingLatestVersion
TMDBAttributeFlags iWriteAttributeMask

Constructor & Destructor Documentation

CMDBSessionImpl(CMDBSession &)

CMDBSessionImpl ( CMDBSession & aOwner )

Parameters

CMDBSession & aOwner

~CMDBSessionImpl()

~CMDBSessionImpl ( )

Member Functions Documentation

ClearAttributeMask(TMDBAttributeFlags)

void ClearAttributeMask ( TMDBAttributeFlags aAttributeMask )

Parameters

TMDBAttributeFlags aAttributeMask

Close()

void Close ( )

ConstructL(TVersion)

TInt ConstructL ( TVersion aRequiredVersion )

Parameters

TVersion aRequiredVersion

CreateNodeL(TMDBElementId &, TMDBElementId, CMDBElement &, SGenericRecordTypeInfo *)

void CreateNodeL ( TMDBElementId & aElementId,
TMDBElementId aMask,
CMDBElement & aElement,
SGenericRecordTypeInfo * aFieldTypeInfo = NULL
)

Parameters

TMDBElementId & aElementId
TMDBElementId aMask
CMDBElement & aElement
SGenericRecordTypeInfo * aFieldTypeInfo = NULL

CreateNotifier()

TInt CreateNotifier ( )

CreatePlaceholderL(TMDBElementId &, TMDBElementId, TDesC &)

void CreatePlaceholderL ( TMDBElementId & aElementId,
TMDBElementId aNodeTypeMask,
TDesC & aTableName
)

Parameters

TMDBElementId & aElementId
TMDBElementId aNodeTypeMask
TDesC & aTableName

CreatePlaceholderL(TMDBElementId &, TMDBElementId, CMDBElement &)

void CreatePlaceholderL ( TMDBElementId & aElementId,
TMDBElementId aNodeTypeMask,
CMDBElement & aElement
)

Parameters

TMDBElementId & aElementId
TMDBElementId aNodeTypeMask
CMDBElement & aElement

DeleteAllowedL(TMDBElementId)

void DeleteAllowedL ( TMDBElementId aElementId )

Parameters

TMDBElementId aElementId

EndModification()

void EndModification ( ) [inline]

EstablishVersionL(TVersion)

void EstablishVersionL ( TVersion aVersionToCheck ) [private]

Parameters

TVersion aVersionToCheck

FindElementInDatabaseL(TMDBElementId &)

TInt FindElementInDatabaseL ( TMDBElementId & aElementId )

Parameters

TMDBElementId & aElementId

FindMatchL(RArray< TUint32 > &, RArray< TUint32 > &, TUint32)

TInt FindMatchL ( RArray < TUint32 > & aCandidates,
RArray < TUint32 > & aMatches,
TUint32 aIdMask = 0
)

Parameters

RArray < TUint32 > & aCandidates
RArray < TUint32 > & aMatches
TUint32 aIdMask = 0

GatherParentAttributesL(TMDBElementId &)

TInt GatherParentAttributesL ( TMDBElementId & aElementId )

Parameters

TMDBElementId & aElementId

GetReadAttributeMask()

TMDBAttributeFlags GetReadAttributeMask ( )

GetWriteAttributeMask()

TMDBAttributeFlags GetWriteAttributeMask ( )

IsInTransaction()

TBool IsInTransaction ( )

IsSetAttributeMask(TMDBAttributeFlags)

TBool IsSetAttributeMask ( TMDBAttributeFlags aAttributeMask )

Parameters

TMDBAttributeFlags aAttributeMask

LatestVersion()

TVersion LatestVersion ( )

LoadElementAttributesL(TMDBElementId &)

TInt LoadElementAttributesL ( TMDBElementId & aElementId )

Parameters

TMDBElementId & aElementId

LoadNodeAttributesL(TMDBElementId &)

TInt LoadNodeAttributesL ( TMDBElementId & aElementId )

Parameters

TMDBElementId & aElementId

MaybeCommitTransactionL(TBool, CMDBElement *, TInt)

TInt MaybeCommitTransactionL ( TBool aOwnLock,
CMDBElement * aDoSync,
TInt aErr
)

Parameters

TBool aOwnLock
CMDBElement * aDoSync
TInt aErr

MaybeCreateNodeL(CMDBElement &)

void MaybeCreateNodeL ( CMDBElement & aElement )

Parameters

CMDBElement & aElement

MaybeDeleteNodeL(CMDBElement *, TMDBElementId &)

TInt MaybeDeleteNodeL ( CMDBElement * aElement,
TMDBElementId & aElementId
)

Parameters

CMDBElement * aElement
TMDBElementId & aElementId

MaybeModifyNodeL(TMDBElementId &)

TInt MaybeModifyNodeL ( TMDBElementId & aElementId )

Parameters

TMDBElementId & aElementId

MaybeOpenTransactionL()

TBool MaybeOpenTransactionL ( )

NotifierL()

CCDNotifier * NotifierL ( )

ReadAllowedL(TMDBElementId)

void ReadAllowedL ( TMDBElementId aElementId )

Parameters

TMDBElementId aElementId

RollbackTransactionL()

void RollbackTransactionL ( )

SetAttributeMask(TMDBAttributeFlags)

void SetAttributeMask ( TMDBAttributeFlags aAttributeMask )

Parameters

TMDBAttributeFlags aAttributeMask

SetNodeIdL(TMDBElementId &, TMDBElementId, TMDBElementId, TMDBElementId, TInt)

void SetNodeIdL ( TMDBElementId & aElementId,
TMDBElementId aMask,
TMDBElementId aInitialId,
TMDBElementId aMaxId,
TInt aMaxVal
)

Parameters

TMDBElementId & aElementId
TMDBElementId aMask
TMDBElementId aInitialId
TMDBElementId aMaxId
TInt aMaxVal

StorageL()

CRepository * StorageL ( )

UsingLatestVersion()

TBool UsingLatestVersion ( )

VersionInUse()

TVersion VersionInUse ( )

WriteAllowedL(TMDBElementId)

void WriteAllowedL ( TMDBElementId aElementId )

Parameters

TMDBElementId aElementId

Member Data Documentation

TVersion iClientsDataSetVersion

TVersion iClientsDataSetVersion [private]

RProperty iCommitSeqProperty

RProperty iCommitSeqProperty [private]

CRepository * iCommsStorage

CRepository * iCommsStorage [private]

TBool iInModification

TBool iInModification [private]

TBool iInTransaction

TBool iInTransaction [private]

TBool iMapping

TBool iMapping

CCDNotifier * iNotifier

CCDNotifier * iNotifier [private]

CMDBSession & iOwner

CMDBSession & iOwner

TMDBAttributeFlags iReadAttributeMask

TMDBAttributeFlags iReadAttributeMask [private]

TRequestStatus iStatusIndicator

TRequestStatus iStatusIndicator [private]

TBool iUsingLatestVersion

TBool iUsingLatestVersion [private]

TMDBAttributeFlags iWriteAttributeMask

TMDBAttributeFlags iWriteAttributeMask [private]