CommsDat::CMDBSessionImpl Class Reference

class CommsDat::CMDBSessionImpl : public CBase

Inherits from

  • CommsDat::CMDBSessionImpl
Public Member Functions
CMDBSessionImpl(CMDBSession &)
~CMDBSessionImpl()
voidClearAttributeMask(TMDBAttributeFlags)
voidClose()
TInt ConstructL(TVersion)
voidCreateNodeL(TMDBElementId &, TMDBElementId, CMDBElement &, SGenericRecordTypeInfo *)
TInt CreateNotifier()
voidCreatePlaceholderL(TMDBElementId &, TMDBElementId, TDesC &)
voidCreatePlaceholderL(TMDBElementId &, TMDBElementId, CMDBElement &)
voidDeleteAllowedL(TMDBElementId)
voidEndModification()
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)
voidMaybeCreateNodeL(CMDBElement &)
TInt MaybeDeleteNodeL(CMDBElement *, TMDBElementId &)
TInt MaybeModifyNodeL(TMDBElementId &)
TBool MaybeOpenTransactionL()
CCDNotifier *NotifierL()
voidReadAllowedL(TMDBElementId)
voidRollbackTransactionL()
voidSetAttributeMask(TMDBAttributeFlags)
voidSetNodeIdL(TMDBElementId &, TMDBElementId, TMDBElementId, TMDBElementId, TInt)
CRepository *StorageL()
TBool UsingLatestVersion()
TVersion VersionInUse()
voidWriteAllowedL(TMDBElementId)
Private Member Functions
voidEstablishVersionL(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)

voidClearAttributeMask(TMDBAttributeFlagsaAttributeMask)

Parameters

TMDBAttributeFlags aAttributeMask

Close()

voidClose()

ConstructL(TVersion)

TInt ConstructL(TVersionaRequiredVersion)

Parameters

TVersion aRequiredVersion

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

voidCreateNodeL(TMDBElementId &aElementId,
TMDBElementIdaMask,
CMDBElement &aElement,
SGenericRecordTypeInfo *aFieldTypeInfo = NULL
)

Parameters

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

CreateNotifier()

TInt CreateNotifier()

CreatePlaceholderL(TMDBElementId &, TMDBElementId, TDesC &)

voidCreatePlaceholderL(TMDBElementId &aElementId,
TMDBElementIdaNodeTypeMask,
TDesC &aTableName
)

Parameters

TMDBElementId & aElementId
TMDBElementId aNodeTypeMask
TDesC & aTableName

CreatePlaceholderL(TMDBElementId &, TMDBElementId, CMDBElement &)

voidCreatePlaceholderL(TMDBElementId &aElementId,
TMDBElementIdaNodeTypeMask,
CMDBElement &aElement
)

Parameters

TMDBElementId & aElementId
TMDBElementId aNodeTypeMask
CMDBElement & aElement

DeleteAllowedL(TMDBElementId)

voidDeleteAllowedL(TMDBElementIdaElementId)

Parameters

TMDBElementId aElementId

EndModification()

voidEndModification()[inline]

EstablishVersionL(TVersion)

voidEstablishVersionL(TVersionaVersionToCheck)[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,
TUint32aIdMask = 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(TMDBAttributeFlagsaAttributeMask)

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(TBoolaOwnLock,
CMDBElement *aDoSync,
TIntaErr
)

Parameters

TBool aOwnLock
CMDBElement * aDoSync
TInt aErr

MaybeCreateNodeL(CMDBElement &)

voidMaybeCreateNodeL(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)

voidReadAllowedL(TMDBElementIdaElementId)

Parameters

TMDBElementId aElementId

RollbackTransactionL()

voidRollbackTransactionL()

SetAttributeMask(TMDBAttributeFlags)

voidSetAttributeMask(TMDBAttributeFlagsaAttributeMask)

Parameters

TMDBAttributeFlags aAttributeMask

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

voidSetNodeIdL(TMDBElementId &aElementId,
TMDBElementIdaMask,
TMDBElementIdaInitialId,
TMDBElementIdaMaxId,
TIntaMaxVal
)

Parameters

TMDBElementId & aElementId
TMDBElementId aMask
TMDBElementId aInitialId
TMDBElementId aMaxId
TInt aMaxVal

StorageL()

CRepository *StorageL()

UsingLatestVersion()

TBool UsingLatestVersion()

VersionInUse()

TVersion VersionInUse()

WriteAllowedL(TMDBElementId)

voidWriteAllowedL(TMDBElementIdaElementId)

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]