»
Symbian OS v9.3 »
Symbian OS reference »
C++ component reference »
Application Engines DAMODEL »
CDaUserDbDesc
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 : public CBase;
Description
Database application engine helper.
Derivation
CBase
- Base class for all classes to be instantiated on the heap
CDaUserDbDesc
- Database application engine helper
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
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
static IMPORT_C CDaUserDbDesc *NewL(const TFileName &aTableName, CDaUserColSet *aColSet, CDaModel *aModel);
Description
Allocates and constructs a new database application engine helper.
Parameters
Return value
IMPORT_C void ExternalizeL(RWriteStream &aSink) const;
Description
Externalises the object's settings to a stream.
Parameters
IMPORT_C void InternalizeL(RReadStream &aSource);
Description
Internalises the object's settings from a stream.
Parameters
IMPORT_C void CopyColSetL(const CDaUserColSet &aColSet);
Description
Sets the column definition set.
Parameters
inline void SetDbColNo(const CDbColSet &aColSet);
Description
Sets column numbers from a specified column set.
Parameters
inline void TableName(const TFileName &aTableName);
Description
Gets the table name.
Parameters
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
|
|
inline TInt ColumnCount() const;
Description
Gets the number of columns.
Return value
inline const TDaUserCol &Col(TDbColNo aColNo) const;
Description
Gets a column specified by number.
Parameters
Return value
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
IMPORT_C TDbColNo ColNoFromUId(TInt aUId) const;
Description
Gets a column specified by UID.
Parameters
Return value
IMPORT_C TDbColNo UserColNo(const TDbColName &aUserColName) const;
Description
Gets a column number for a named column.
Parameters
Return value
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
Return value
inline const TDbColName ColName(TDbColNo aUserColNo) const;
Description
Gets the column name for a specified column number.
Parameters
Return value
IMPORT_C TDbColName DbColName(const TDbColName &aUserColName) const;
Description
Gets a generated UID column name for a specified column.
Parameters
Return value
IMPORT_C TDbColName DbColNameFromUId(TInt aUid) const;
Description
Gets a generated UID column name.
Parameters
Return value
inline const TFileName &TableName() const;
Description
Gets the table name (const overload).
Return value
inline const CDaUserColSet &ColSet() const;
Description
Gets the column set.
Return value
IMPORT_C TInt UId(TDbColNo aUserColNo) const;
Description
Gets the UID field for a column specified by number.
Parameters
Return value
See also:
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
See also: