|
|
|
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.
Defined in TDbKeyCol:
EAscUse ascending order. EDescUse descending order. TDbKeyCol()Constructs an uninitialised object. Default constructor. It is necessary because...TDbKeyCol(const TDbKeyCol &)TDbKeyCol copy constructor. TDbKeyCol(const TDesC &,TInt,TOrder)Constructs an object with the given name, ordering and optional truncation lengt...TDbKeyCol(const TDesC &,TOrder)TOrderSpecifies whether a key column in an index should be sorted in ascending or desc...iLengthThe ordering of the key. iNameThe column name for the key. iOrderThe maximum number of characters used to index Text or LongText columns. If equa...operator=(const TDbKeyCol &)TDbKeyCol "=" operator. inline TDbKeyCol();
Constructs an uninitialised object. Default constructor. It is necessary because there are also non-default constructors in this class.
inline TDbKeyCol(const TDbKeyCol &);
TDbKeyCol copy constructor.
|
IMPORT_C TDbKeyCol(const TDesC &aName, TOrder anOrder=EAsc);
|
IMPORT_C TDbKeyCol(const TDesC &aName, TInt aLength, TOrder anOrder=EAsc);
Constructs an object with the given name, ordering and optional truncation length.
|
inline TDbKeyCol& operator=(const TDbKeyCol &);
TDbKeyCol "=" operator.
|
|
TOrder
Specifies whether a key column in an index should be sorted in ascending or descending order.
|
TOrder iOrder;
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.
TDbColNameC iName;
The column name for the key.