IDANativeField
Overview
This interface should be implemented by the Delphi Data Abstract Drivers class in case a native driver is non-Dataset-compatible. It will be used to access field properties and values. TDACustomField has two field value members, one of which is a TField type, the other a IDANativeField type. If a database driver does not supply a TField member, it should set a IDANativeField member.
Location
- Unit: uDAFields.pas
- Ancestry: IDANativeField
DataType
Specifies the type of data contained within the field, from a collection of supported TDADataTypes. Depending on the data type, the Size and BlobType properties are also used to further define the data type in more detail. For datString and datWideString, Size will define the maximum length of string permitted for the field; for blobs and memos, BlobType provides special options.
property DataType: TFieldType read write
DecimalPrecision
Specifies decimal precision for a binary coded decimal value (if the DataType of the field is set to datDecimal).
property DecimalPrecision: Integer read write
DecimalScale
Specifies decimal scale for a binary coded decimal value (if the DataType of the field is set to datDecimal).
property DecimalScale: Integer read write
FieldName
Defines the name of the field.
property FieldName: string read
GetNativeObject
Returns the native object.
function GetNativeObject: TObject
Index
Field's index
property Index: Integer read
IsNull
Returns whether the field currently contains a value (false) or is Null (true).
function IsNull: Boolean
isTFieldCompatible
Returns True if GetNativeObject has TField as ancestor
function isTFieldCompatible: Boolean
Size
Sets the maximum length of string permitted for the field, DataType is set to datString or datWideString.
property Size: Integer read
Value
Gets or sets the value of the field as variant.
property Value: Variant read
DataType
Specifies the type of data contained within the field, from a collection of supported TDADataTypes. Depending on the data type, the Size and BlobType properties are also used to further define the data type in more detail. For datString and datWideString, Size will define the maximum length of string permitted for the field; for blobs and memos, BlobType provides special options.
property DataType: TFieldType read write
DecimalPrecision
Specifies decimal precision for a binary coded decimal value (if the DataType of the field is set to datDecimal).
property DecimalPrecision: Integer read write
DecimalScale
Specifies decimal scale for a binary coded decimal value (if the DataType of the field is set to datDecimal).
property DecimalScale: Integer read write
FieldName
Defines the name of the field.
property FieldName: string read
Index
Field's index
property Index: Integer read
Size
Sets the maximum length of string permitted for the field, DataType is set to datString or datWideString.
property Size: Integer read
Value
Gets or sets the value of the field as variant.
property Value: Variant read
GetNativeObject
Returns the native object.
function GetNativeObject: TObject
IsNull
Returns whether the field currently contains a value (false) or is Null (true).
function IsNull: Boolean
isTFieldCompatible
Returns True if GetNativeObject has TField as ancestor
function isTFieldCompatible: Boolean