|
||
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(TDbColType)
Tests if a column is of the Long column type, i.e. one of the EDbColLongXxxx typ...TDbCol()
Constructs an uninitialised TDbCol. It is necessary because there are also non-d...TDbCol(const TDbCol &)
TDbCol copy constructor. TDbCol(const TDesC &,TDbColType)
TDbCol(const TDesC &,TDbColType,TInt)
Constructs a TDbCol with the given name, optional type and optional maximum leng...anonymous
iAttributes
A set of flags describing other column attributes. This must be one of the anony...iMaxLength
The maximum length of data that can be stored in a Text or Binary column. iName
The column name. iType
The column type. operator=(const TDbCol &)
TDbCol "=" operator. inline TDbCol();
Constructs an uninitialised TDbCol. It is necessary because there are also non-default constructors in this class.
inline TDbCol(const TDbCol &);
TDbCol copy constructor.
|
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.
|
inline TDbCol& operator=(const TDbCol &);
TDbCol "=" operator.
|
|
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.