CDbColSet Class Reference

class CDbColSet : public CBase

Manages a set of column definitions which describe a table or rowset structure. Column definitions can be added and removed. The set can be iterated over, and ordinals for a column can be looked up.

The class is not intended for user derivation.

Inherits from

Constructor & Destructor Documentation

CDbColSet()

IMPORT_C CDbColSet ( )

~CDbColSet()

IMPORT_C ~CDbColSet ( )

Member Functions Documentation

AddL(const TDbCol &)

IMPORT_C CDbColSet & AddL ( const TDbCol & aCol )

Parameters

const TDbCol & aCol

Clear()

void Clear ( ) [inline]

Removes all of the columns from the column set.

Col(const TDesC &)

IMPORT_C const TDbCol * Col ( const TDesC & aColName ) const

Parameters

const TDesC & aColName

ColNo(const TDesC &)

IMPORT_C TDbColNo ColNo ( const TDesC & aColName ) const

Parameters

const TDesC & aColName

Count()

TInt Count ( ) const [inline]

Returns the number of column definitions in the set.

Note that using a TDbColSetIter is another way to iterate through the contents of a CDbColSet .

NewL()

IMPORT_C CDbColSet * NewL ( ) [static]

NewLC()

IMPORT_C CDbColSet * NewLC ( ) [static]

Remove(const TDesC &)

IMPORT_C void Remove ( const TDesC & aColName )

Parameters

const TDesC & aColName

operator[](TDbColNo)

const TDbCol & operator[] ( TDbColNo aCol ) const [inline]

Returns a column definition by its ordinal number in the set.

Note that using a TDbColSetIter is another way to iterate through the contents of a CDbColSet .

Parameters

TDbColNo aCol The ordinal number of the column in the set. Columns in a column set are numbered from 1 to Count(), unlike Symbian OS array classes. Ordinal 0 is reserved to represent the invalid column number KDbNullColNo.

Member Data Documentation

CArrayPakFlat< TDbCol > iColumns

CArrayPakFlat < TDbCol > iColumns [private]