#include <metadatabase.h>
class CommsDat::CMDBElement : public CBase, public CommsDat::MMetaDatabase, public CBase, public CommsDat::MMetaDatabase |
Public Attributes | |
---|---|
const Meta::SVDataTableEntry | iVDataTable |
Protected Attributes | |
---|---|
TMDBElementId | iElementId |
TAny * | iValue |
Public Member Functions | |
---|---|
CMDBElement() | |
CMDBElement(TMDBElementId) | |
~CMDBElement() | |
IMPORT_C TMDBAttributeFlags | Attributes() |
IMPORT_C void | ClearAttributes(TMDBAttributeFlags) |
TMDBElementId * | Data() |
IMPORT_C TMDBElementId | ElementId() |
virtual IMPORT_C TUint8 * | GetAttribPtr(const TInt) |
virtual IMPORT_C Meta::SVDataTableEntry const * | GetVDataTable() |
IMPORT_C Meta::SVDataTableEntry const * | GetVDataTableStatic() |
IMPORT_C TBool | IsNull() |
IMPORT_C TBool | IsSetAttribute(TMDBAttributeFlags) |
IMPORT_C TInt | RecordId() |
IMPORT_C void | SetAttributes(TMDBAttributeFlags) |
IMPORT_C void | SetElementId(TMDBElementId) |
IMPORT_C void | SetRecordId(TInt) |
IMPORT_C void | SetTypeId(TMDBElementId) |
IMPORT_C TMDBElementId | TableId() |
pure virtual TCDFieldValueTypes | Type() |
IMPORT_C TMDBElementId | TypeId() |
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.
TMDBElementId | iElementId | [protected] |
const Meta::SVDataTableEntry | iVDataTable | [static] |
TAny * | iValue | [protected] |
IMPORT_C | CMDBElement | ( | TMDBElementId | aElementId | ) |
Constructor
IMPORT_C TMDBAttributeFlags | Attributes | ( | ) | const |
Returns the Attributes of an object of this type.
Attributes express database access rights for the data of this element
IMPORT_C void | ClearAttributes | ( | TMDBAttributeFlags | aAttributes | ) |
Clears one or more attributes
TMDBElementId * | Data | ( | ) | [inline] |
IMPORT_C TMDBElementId | ElementId | ( | ) | 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
Reimplemented from Meta::MMetaData::GetAttribPtr(const TInt)const
IMPORT_C Meta::SVDataTableEntry const * | GetVDataTable | ( | ) | const [virtual] |
Reimplemented from Meta::MMetaData::GetVDataTable()const
IMPORT_C Meta::SVDataTableEntry const * | GetVDataTableStatic | ( | ) | [static] |
IMPORT_C TBool | IsNull | ( | ) | 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
IMPORT_C TBool | IsSetAttribute | ( | TMDBAttributeFlags | aAttributes | ) | const |
Queries the attributes
Returns ETrue if all queried attributes are set Returns EFalse if any queried attribute is not set.
IMPORT_C TInt | RecordId | ( | ) | 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
IMPORT_C void | SetAttributes | ( | TMDBAttributeFlags | aAttributes | ) |
Sets one or more attributes
IMPORT_C void | SetElementId | ( | TMDBElementId | aElementId | ) |
Sets the ElementId
IMPORT_C void | SetTypeId | ( | TMDBElementId | aElementId | ) |
Sets the TypeId
IMPORT_C TMDBElementId | TableId | ( | ) | 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
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
IMPORT_C TMDBElementId | TypeId | ( | ) | 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