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

~CDbColSet()

IMPORT_C~CDbColSet()

Member Functions Documentation

AddL(const TDbCol &)

IMPORT_C CDbColSet &AddL(const TDbCol &aCol)

Parameters

const TDbCol & aCol

Clear()

voidClear()[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 TDbColNoColNo(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.

The number of columns in the columns set.

NewL()

IMPORT_C CDbColSet *NewL()[static]

NewLC()

IMPORT_C CDbColSet *NewLC()[static]

Remove(const TDesC &)

IMPORT_C voidRemove(const TDesC &aColName)

Parameters

const TDesC & aColName

operator[](TDbColNo)

const TDbCol &operator[](TDbColNoaCol)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.

The column definition requested.

Parameters

TDbColNo aColThe 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]