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.
Public Member Functions | |
---|---|
CDbColSet() | |
~CDbColSet() | |
IMPORT_C CDbColSet & | AddL(const TDbCol &) |
void | Clear() |
IMPORT_C const TDbCol * | Col(const TDesC &) |
IMPORT_C TDbColNo | ColNo(const TDesC &) |
TInt | Count() |
IMPORT_C CDbColSet * | NewL() |
IMPORT_C CDbColSet * | NewLC() |
IMPORT_C void | Remove(const TDesC &) |
const TDbCol & | operator[](TDbColNo) |
Private Attributes | |
---|---|
CArrayPakFlat< TDbCol > | iColumns |
IMPORT_C const TDbCol * | Col | ( | const TDesC & | aColName | ) | const |
const TDesC & aColName |
IMPORT_C TDbColNo | ColNo | ( | const TDesC & | aColName | ) | const |
const TDesC & aColName |
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.
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.
The column definition requested.
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. |