Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <DAMDBDES.H>
Link against: damodl.lib
This item is not part of the S60 5th Edition SDK

Class CDaUserDbDesc

Interface status: deprecated

class CDaUserDbDesc : public CBase;

Description

Database application engine helper.

Derivation

Members

Defined in CDaUserDbDesc:

Inherited from CBase:


Construction and destruction


NewL(CDaModel *)

Interface status: deprecated Inherited from: CDaUserDbDesc

IMPORT_C static 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(const TFileName &,CDaUserColSet *,CDaModel *)

Interface status: deprecated Inherited from: CDaUserDbDesc

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

Description

Allocates and constructs a new database application engine helper.

Parameters

const TBuf &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(RWriteStream &)const

Interface status: deprecated Inherited from: CDaUserDbDesc

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

Interface status: deprecated Inherited from: CDaUserDbDesc

IMPORT_C void InternalizeL(RReadStream &aSource);

Description

Internalises the object's settings from a stream.

Parameters

RReadStream &aSource

Stream from which to read


CopyColSetL(const CDaUserColSet &)

Interface status: deprecated Inherited from: CDaUserDbDesc

IMPORT_C void CopyColSetL(const CDaUserColSet &aColSet);

Description

Sets the column definition set.

Parameters

const CDaUserColSet &aColSet

Column definition set to use


SetDbColNo(const CDbColSet &)

Interface status: deprecated Inherited from: CDaUserDbDesc

inline void SetDbColNo(const CDbColSet &aColSet);

Description

Sets column numbers from a specified column set.

Parameters

const CDbColSet &aColSet

Column set


TableName(const TFileName &)

Interface status: deprecated Inherited from: CDaUserDbDesc

inline void TableName(const TFileName &aTableName);

Description

Gets the table name.

Parameters

const TBuf &aTableName

Table name


SetReserveL(TInt)

Interface status: deprecated Inherited from: CDaUserDbDesc

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

Interface status: deprecated Inherited from: CDaUserDbDesc

inline TInt ColumnCount() const;

Description

Gets the number of columns.

Return value

TInt

Number of columns


Col(TDbColNo)const

Interface status: deprecated Inherited from: CDaUserDbDesc

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(const TDbColName &)const

Interface status: deprecated Inherited from: CDaUserDbDesc

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

Description

Gets a column specified by name.

Parameters

const TBuf &aUserColName

Column number to get

Return value

const TDaUserCol &

Column


ColNoFromUId(TInt)const

Interface status: deprecated Inherited from: CDaUserDbDesc

IMPORT_C TDbColNo ColNoFromUId(TInt aUId) const;

Description

Gets a column specified by UID.

Parameters

TInt aUId

Column UID

Return value

TDbColNo

Column


UserColNo(const TDbColName &)const

Interface status: deprecated Inherited from: CDaUserDbDesc

IMPORT_C TDbColNo UserColNo(const TDbColName &aUserColName) const;

Description

Gets a column number for a named column.

Parameters

const TBuf &aUserColName

Column name

Return value

TDbColNo

Column number


DbColNo(TDbColNo,const CDbColSet *)const

Interface status: deprecated Inherited from: CDaUserDbDesc

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

Interface status: deprecated Inherited from: CDaUserDbDesc

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 TBuf

Column name


DbColName(const TDbColName &)const

Interface status: deprecated Inherited from: CDaUserDbDesc

IMPORT_C TDbColName DbColName(const TDbColName &aUserColName) const;

Description

Gets a generated UID column name for a specified column.

Parameters

const TBuf &aUserColName

Column

Return value

TBuf

Generated UID column name


DbColNameFromUId(TInt)const

Interface status: deprecated Inherited from: CDaUserDbDesc

IMPORT_C TDbColName DbColNameFromUId(TInt aUid) const;

Description

Gets a generated UID column name.

Parameters

TInt aUid

UID

Return value

TBuf

Generated UID column name


TableName()const

Interface status: deprecated Inherited from: CDaUserDbDesc

inline const TFileName& TableName() const;

Description

Gets the table name (const overload).

Return value

const TBuf &

Table name


ColSet()const

Interface status: deprecated Inherited from: CDaUserDbDesc

inline const CDaUserColSet& ColSet() const;

Description

Gets the column set.

Return value

const CDaUserColSet &

Column set


UId(TDbColNo)const

Interface status: deprecated Inherited from: CDaUserDbDesc

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(const TDesC &)const

Interface status: deprecated Inherited from: CDaUserDbDesc

IMPORT_C TInt UId(const TDesC &aColName) const;

Description

Gets the UID field for a column specified by name.

Parameters

const TDesC16 &aColName

Column name

Return value

TInt

UID field

See also: