class TDbCol |
Defines a column in a table or rowset.
The data members are public because this is really a structure to group the attributes of the column together.
Three non-default constructors are provided for convenience.
Public Member Functions | |
---|---|
TDbCol() | |
TDbCol(const TDbCol &) | |
TDbCol(const TDesC &, TDbColType) | |
TDbCol(const TDesC &, TDbColType, TInt) | |
TBool | IsLong(TDbColType) |
TDbCol & | operator=(const TDbCol &) |
Private Member Functions | |
---|---|
TDbCol(const TDesC &) |
Public Attributes | |
---|---|
TUint | iAttributes |
TInt | iMaxLength |
TDbColNameC | iName |
TDbColType | iType |
TDbCol | ( | ) | [inline] |
Constructs an uninitialised TDbCol. It is necessary because there are also non-default constructors in this class.
TDbCol | ( | const TDbCol & | ) | [inline] |
TDbCol copy constructor.
const TDbCol & | This TDbCol object will be constructed as an exact copy of aSrcCol object. |
IMPORT_C | TDbCol | ( | const TDesC & | aName, |
TDbColType | aType | |||
) |
const TDesC & aName | |
TDbColType aType |
IMPORT_C | TDbCol | ( | const TDesC & | aName, |
TDbColType | aType, | |||
TInt | aMaxLength | |||
) |
const TDesC & aName | |
TDbColType aType | |
TInt aMaxLength |
TBool | IsLong | ( | TDbColType | aType | ) | [static, inline] |
Tests if a column is of the Long column type, i.e. one of the EDbColLongXxxx types.
ETrue if the aType is a Long column type, EFalse otherwise.
TDbColType aType | The column type to test. |
TDbCol & | operator= | ( | const TDbCol & | ) | [inline] |
TDbCol "=" operator.
const TDbCol & | This TDbCol object will be made to be an exact copy of aSrcCol object. |
TUint | iAttributes |
A set of flags describing other column attributes. This must be one of the anonymous enum values ENotNull or EAutoIncrement.
TInt | iMaxLength |
The maximum length of data that can be stored in a Text or Binary column.