| class TDbKeyCol |
Defines a key column in an index.
The data members are public as this is really a structure to group the attributes of the key column together. Two non-default constructors are provided for convenience.
| Public Member Functions | |
|---|---|
| TDbKeyCol() | |
| TDbKeyCol(const TDbKeyCol &) | |
| TDbKeyCol(const TDesC &, TOrder) | |
| TDbKeyCol(const TDesC &, TInt, TOrder) | |
| TDbKeyCol & | operator=(const TDbKeyCol &) |
| Public Member Enumerations | |
|---|---|
| enum | TOrder { EAsc, EDesc } |
| Public Attributes | |
|---|---|
| TInt | iLength |
| TDbColNameC | iName |
| TOrder | iOrder |
| TDbKeyCol | ( | ) | [inline] |
Constructs an uninitialised object. Default constructor. It is necessary because there are also non-default constructors in this class.
| TDbKeyCol | ( | const TDbKeyCol & | ) | [inline] |
TDbKeyCol copy constructor.
| const TDbKeyCol & | This TDbKeyCol object will be constructed as an exact copy of aSrcKeyCol object. |
| IMPORT_C | TDbKeyCol | ( | const TDesC & | aName, |
| TInt | aLength, | |||
| TOrder | anOrder = EAsc | |||
| ) | ||||
| TDbKeyCol & | operator= | ( | const TDbKeyCol & | ) | [inline] |
TDbKeyCol "=" operator.
| const TDbKeyCol & | This TDbKeyCol object will be made to be an exact copy of aSrcKeyCol object. |
Specifies whether a key column in an index should be sorted in ascending or descending order.
| EAsc |
Use ascending order. |
| EDesc |
Use descending order. |
| TInt | iLength |
The maximum number of characters used to index Text or LongText columns. If equal to KDbUndefinedLength (the default), all the characters in the defined column will be used.