CommsDat::CMDBElement Class Reference

#include <metadatabase.h>

class CommsDat::CMDBElement : public CBase, public CommsDat::MMetaDatabase, public CBase, public CommsDat::MMetaDatabase
Public Attributes
const Meta::SVDataTableEntryiVDataTable
Protected Attributes
TMDBElementId iElementId
TAny *iValue
Public Member Functions
CMDBElement()
CMDBElement(TMDBElementId)
~CMDBElement()
IMPORT_C TMDBAttributeFlagsAttributes()
IMPORT_C voidClearAttributes(TMDBAttributeFlags)
TMDBElementId *Data()
IMPORT_C TMDBElementIdElementId()
virtual IMPORT_C TUint8 *GetAttribPtr(const TInt)
virtual IMPORT_C Meta::SVDataTableEntry const *GetVDataTable()
IMPORT_C Meta::SVDataTableEntry const *GetVDataTableStatic()
IMPORT_C TBoolIsNull()
IMPORT_C TBoolIsSetAttribute(TMDBAttributeFlags)
IMPORT_C TIntRecordId()
IMPORT_C voidSetAttributes(TMDBAttributeFlags)
IMPORT_C voidSetElementId(TMDBElementId)
IMPORT_C voidSetRecordId(TInt)
IMPORT_C voidSetTypeId(TMDBElementId)
IMPORT_C TMDBElementIdTableId()
pure virtual TCDFieldValueTypes Type()
IMPORT_C TMDBElementIdTypeId()
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()
CommsDat::MMetaDatabase::CancelNotification(CMDBSession &,TRequestStatus &)
CommsDat::MMetaDatabase::DeleteL(CMDBSession &)
CommsDat::MMetaDatabase::FindL(CMDBSession &)
CommsDat::MMetaDatabase::LoadL(CMDBSession &)
CommsDat::MMetaDatabase::MMetaDatabase()
CommsDat::MMetaDatabase::ModifyL(CMDBSession &)
CommsDat::MMetaDatabase::RefreshL(CMDBSession &)
CommsDat::MMetaDatabase::RequestNotification(CMDBSession &,TRequestStatus &)
CommsDat::MMetaDatabase::StoreL(CMDBSession &)
CommsDat::MMetaDatabase::~MMetaDatabase()

Detailed Description

Every item stored in the database is represented as a CMDBElement This class contains the id and attributes of every item in the database and for individual fields it also contains the value.

Member Attribute Documentation

iElementId

TMDBElementId iElementId[protected]

iVDataTable

const Meta::SVDataTableEntryiVDataTable[static]

iValue

TAny *iValue[protected]

Constructor & Destructor Documentation

CMDBElement ( )

IMPORT_CCMDBElement()

Default Constructor

CMDBElement ( TMDBElementId )

IMPORT_CCMDBElement(TMDBElementIdaElementId)

Constructor

~CMDBElement ( )

IMPORT_C~CMDBElement()

Destructor

Member Function Documentation

Attributes ( )

IMPORT_C TMDBAttributeFlagsAttributes()const

Returns the Attributes of an object of this type.

Attributes express database access rights for the data of this element

ClearAttributes ( TMDBAttributeFlags )

IMPORT_C voidClearAttributes(TMDBAttributeFlagsaAttributes)

Clears one or more attributes

Data ( )

TMDBElementId *Data()[inline]

ElementId ( )

IMPORT_C TMDBElementIdElementId()const

Returns the ElementId of an object of this type.

The TypeId is

<TableId><ColumnId><RecordId>

This identifies the meaning of the field in the database schema It also identifies the type of the data stored in this element and the instance of the type

GetAttribPtr ( const TInt )

IMPORT_C TUint8 *GetAttribPtr(const TIntaOffset)const [virtual]

GetVDataTable ( )

IMPORT_C Meta::SVDataTableEntry const *GetVDataTable()const [virtual]

GetVDataTableStatic ( )

IMPORT_C Meta::SVDataTableEntry const *GetVDataTableStatic()[static]

IsNull ( )

IMPORT_C TBoolIsNull()const

Queries the state of the field value

Returns ETrue if the value of the element is not set Returns EFalse if the element contains a value

IsSetAttribute ( TMDBAttributeFlags )

IMPORT_C TBoolIsSetAttribute(TMDBAttributeFlagsaAttributes)const

Queries the attributes

Returns ETrue if all queried attributes are set Returns EFalse if any queried attribute is not set.

RecordId ( )

IMPORT_C TIntRecordId()const

Returns the RecordId of an object of this type.

The RecordId is part of the ElementId <x><x><RecordId>

It identifies a particular instance of this type of Element in the database

SetAttributes ( TMDBAttributeFlags )

IMPORT_C voidSetAttributes(TMDBAttributeFlagsaAttributes)

Sets one or more attributes

SetElementId ( TMDBElementId )

IMPORT_C voidSetElementId(TMDBElementIdaElementId)

Sets the ElementId

SetRecordId ( TInt )

IMPORT_C voidSetRecordId(TIntaRecordId)

Sets the RecordId

SetTypeId ( TMDBElementId )

IMPORT_C voidSetTypeId(TMDBElementIdaElementId)

Sets the TypeId

TableId ( )

IMPORT_C TMDBElementIdTableId()const

Returns the TableId of an object of this type.

The TableId is part of the ElementId

<TableId><x><x>

It identifies the table in the database that holds the data contained in this element

Type ( )

TCDFieldValueTypes Type()[pure virtual]

Queries the type of the field value

Returns the enumeration TCDFieldValueTypes that represents the value that can be stored in this element

TypeId ( )

IMPORT_C TMDBElementIdTypeId()const

Returns the TypeId of an object of this type.

The TypeId is

<TableId><ColumnId><x>

This identifies the meaning of the data in this element in the database schema It also identifies the type of the data contained in this element

For an element that is a Table or a Record, the ColumnId field will be set to

KCDMaxColumnId