Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: DAMDBDES.H
Link against: damodl.lib

This item is not part of the S60 3rd Edition SDK for Symbian OS, Feature Pack 2.

Class CDaUserDbDesc

class CDaUserDbDesc : public CBase;

Description

Database application engine helper.

Derivation

Members

Defined in CDaUserDbDesc:
Col(), Col(), ColName(), ColNoFromUId(), ColSet(), ColumnCount(), CopyColSetL(), DbColName(), DbColNameFromUId(), DbColNo(), ExternalizeL(), InternalizeL(), NewL(), NewL(), SetDbColNo(), SetReserveL(), TableName(), TableName(), UId(), UId(), UserColNo()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


NewL()

static IMPORT_C CDaUserDbDesc *NewL(CDaModel *aModel);

Description

Allocates and constructs a new database application engine helper.

Parameters

CDaModel *aModel

Database application engine

Return value

CDaUserDbDesc *

New database application engine helper


NewL()

static IMPORT_C CDaUserDbDesc *NewL(const TFileName &aTableName, CDaUserColSet *aColSet, CDaModel *aModel);

Description

Allocates and constructs a new database application engine helper.

Parameters

const TFileName &aTableName

Database table name

CDaUserColSet *aColSet

Database application column set

CDaModel *aModel

Database application engine

Return value

CDaUserDbDesc *

New database application engine helper

[Top]


Member functions


ExternalizeL()

IMPORT_C void ExternalizeL(RWriteStream &aSink) const;

Description

Externalises the object's settings to a stream.

Parameters

RWriteStream &aSink

Stream to which to write


InternalizeL()

IMPORT_C void InternalizeL(RReadStream &aSource);

Description

Internalises the object's settings from a stream.

Parameters

RReadStream &aSource

Stream from which to read


CopyColSetL()

IMPORT_C void CopyColSetL(const CDaUserColSet &aColSet);

Description

Sets the column definition set.

Parameters

const CDaUserColSet &aColSet

Column definition set to use


SetDbColNo()

inline void SetDbColNo(const CDbColSet &aColSet);

Description

Sets column numbers from a specified column set.

Parameters

const CDbColSet &aColSet

Column set


TableName()

inline void TableName(const TFileName &aTableName);

Description

Gets the table name.

Parameters

const TFileName &aTableName

Table name


SetReserveL()

inline void SetReserveL(TInt aCount);

Description

Reserves space for columns to be added in future.

This ensures that out of memory errors will not occur when the columns are added.

Parameters

TInt aCount

Number of columns to reserve space for


ColumnCount()

inline TInt ColumnCount() const;

Description

Gets the number of columns.

Return value

TInt

Number of columns


Col()

inline const TDaUserCol &Col(TDbColNo aColNo) const;

Description

Gets a column specified by number.

Parameters

TDbColNo aColNo

Column number to get

Return value

const TDaUserCol &

Column


Col()

IMPORT_C const TDaUserCol &Col(const TDbColName &aUserColName) const;

Description

Gets a column specified by name.

Parameters

const TDbColName &aUserColName

Column number to get

Return value

const TDaUserCol &

Column


ColNoFromUId()

IMPORT_C TDbColNo ColNoFromUId(TInt aUId) const;

Description

Gets a column specified by UID.

Parameters

TInt aUId

Column UID

Return value

TDbColNo

Column


UserColNo()

IMPORT_C TDbColNo UserColNo(const TDbColName &aUserColName) const;

Description

Gets a column number for a named column.

Parameters

const TDbColName &aUserColName

Column name

Return value

TDbColNo

Column number


DbColNo()

IMPORT_C TDbColNo DbColNo(TDbColNo aUserColNo, const CDbColSet *aDbColSet) const;

Description

Gets the user column number of a specified column in a column definition set.

! only works for single table database

Parameters

TDbColNo aUserColNo

Column number

const CDbColSet *aDbColSet

Column definition set

Return value

TDbColNo

User column number


ColName()

inline const TDbColName ColName(TDbColNo aUserColNo) const;

Description

Gets the column name for a specified column number.

Parameters

TDbColNo aUserColNo

Column number

Return value

const TDbColName

Column name


DbColName()

IMPORT_C TDbColName DbColName(const TDbColName &aUserColName) const;

Description

Gets a generated UID column name for a specified column.

Parameters

const TDbColName &aUserColName

Column

Return value

TDbColName

Generated UID column name


DbColNameFromUId()

IMPORT_C TDbColName DbColNameFromUId(TInt aUid) const;

Description

Gets a generated UID column name.

Parameters

TInt aUid

UID

Return value

TDbColName

Generated UID column name


TableName()

inline const TFileName &TableName() const;

Description

Gets the table name (const overload).

Return value

const TFileName &

Table name


ColSet()

inline const CDaUserColSet &ColSet() const;

Description

Gets the column set.

Return value

const CDaUserColSet &

Column set


UId()

IMPORT_C TInt UId(TDbColNo aUserColNo) const;

Description

Gets the UID field for a column specified by number.

Parameters

TDbColNo aUserColNo

Column number

Return value

TInt

UID field

See also:


UId()

IMPORT_C TInt UId(const TDesC &aColName) const;

Description

Gets the UID field for a column specified by name.

Parameters

const TDesC &aColName

Column name

Return value

TInt

UID field

See also: