Location:
D32DBMS.H
Link against: edbms.lib
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.
Defined in TDbCol
:
EAutoIncrement
, ENotNull
, IsLong()
, TDbCol()
, TDbCol()
, TDbCol()
, anonymous
, iAttributes
, iMaxLength
, iName
, iType
inline TDbCol();
Constructs an uninitialised TDbCol. It is necessary because there are also non-default constructors in this class.
IMPORT_C TDbCol(const TDesC &aName, TDbColType aType);
|
IMPORT_C TDbCol(const TDesC &aName, TDbColType aType, TInt aMaxLength);
Constructs a TDbCol with the given name, optional type and optional maximum length.
Note: The iAttributes member is initialised to 0.
|
static inline TBool IsLong(TDbColType aType);
Tests if a column is of the Long column type, i.e. one of the EDbColLongXxxx types.
|
|
TInt iMaxLength;
The maximum length of data that can be stored in a Text or Binary column.
TUint iAttributes;
A set of flags describing other column attributes. This must be one of the anonymous enum values ENotNull or EAutoIncrement.
TDbColNameC iName;
The column name.