CommsDat::CMDBElement Class Reference

class CommsDat::CMDBElement : public CBase

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.

Inherits from

  • CommsDat::CMDBElement

Constructor & Destructor Documentation

CMDBElement()

IMPORT_CCMDBElement()

Default Constructor

CMDBElement(TMDBElementId)

IMPORT_CCMDBElement(TMDBElementIdaElementId)

Constructor

Parameters

TMDBElementId aElementId

~CMDBElement()

IMPORT_C~CMDBElement()

Destructor

Member Functions 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

Parameters

TMDBAttributeFlags aAttributes

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

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.

Parameters

TMDBAttributeFlags aAttributes

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

Parameters

TMDBAttributeFlags aAttributes

SetElementId(TMDBElementId)

IMPORT_C voidSetElementId(TMDBElementIdaElementId)

Sets the ElementId

Parameters

TMDBElementId aElementId

SetRecordId(TInt)

IMPORT_C voidSetRecordId(TIntaRecordId)

Sets the RecordId

Parameters

TInt aRecordId

SetTypeId(TMDBElementId)

IMPORT_C voidSetTypeId(TMDBElementIdaElementId)

Sets the TypeId

Parameters

TMDBElementId aElementId

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

EXP_DATA_VTABLE TCDFieldValueTypesType()[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

Member Data Documentation

TMDBElementId iElementId

TMDBElementId iElementId[protected]

TAny * iValue

TAny *iValue[protected]