TDANativeField_Dataset

Overview

TDANativeField_Dataset is a wrapper for the standard TField VCL class as implementation of the IDANativeField interface.

Location

Implements

Instance Methods


constructor Create

Creates a new instance.

constructor Create(AField: TField; ADANativeDatabaseAccess: IDANativeDatabaseAccess)

Parameters:

  • AField: field
  • ADANativeDatabaseAccess: owner

GetDataType  protected

Returns the referred field TField.

function GetDataType: TFieldType

GetDecimalPrecision  protected

If the referred field is TFMTBCDField or TBCDField, the method returns its Precision. Otherwise returns 0.

function GetDecimalPrecision: Integer

GetDecimalScale  protected

If the referred field is TFMTBCDField or TBCDField, the method returns its Size. Otherwise returns 0.

function GetDecimalScale: Integer

GetFieldIndex  protected

Returns the referred field TField.

function GetFieldIndex: integer

GetFieldName  protected

Returns the field name.

function GetFieldName: string

GetNativeObject  protected

Returns the referred field.

function GetNativeObject: TObject

GetSize  protected

Returns the referred field TField.

function GetSize: integer

GetValue  protected

Returns the referred field TField.

function GetValue: Variant

IsNull  protected

Returns the referred field TField.

function IsNull: Boolean

isTFieldCompatible  protected

Returns true.

function isTFieldCompatible: Boolean

SetDataType  protected

If the referred field is TBlobField, this method sets its BlobType to Value. Otherwise it does nothing.

procedure SetDataType(Value: TFieldType)

Parameters:

  • Value: BlobType.

SetDecimalPrecision  protected

If the referred field is TFMTBCDField or TBCDField, this method sets its Precision to Value. Otherwise it does nothing.

procedure SetDecimalPrecision(Value: integer)

Parameters:

  • Value: Precision.

SetDecimalScale  protected

If the referred field is TFMTBCDField or TBCDField, this method sets its Size to Value. Otherwise it does nothing.

procedure SetDecimalScale(Value: integer)

Parameters:

  • Value: Size.

See Also