Location:
d32dbms.h
Link against: edbms.lib
TDbCol
Supported from 5.0
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
:
Anonymous
, EAutoIncrement
, ENotNull
, IsLong()
, TDbCol()
, iAttributes
, iMaxLength
, iName
, iType
TDbCol();
Constructs an uninitialised TDbCol
. It is
necessary because there are also non-default constructors in this
class.
TDbCol(const TDesC& aName);
TDbCol(const TDesC& aName,TDbColType aType);
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 TBool IsLong(TDbColType aType);
Tests if a column is of the Long column type, i.e. one of the
EDbColLongXxxx
types.
|
|
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.
Anonymous
|