TDATableFieldCollectionItem

Overview

TDATableFieldCollectionItem is a very simple base class used by the TDASimpleQueryBuilder. It represents certain data table fields inside the field collection.

It is used to generate a proper SQL statement for requesting data from a given data table in the database.

DataAbstract uses it behind the scene. In most cases you will not need to deal with this class directly, unless you want to override the TDAQueryBuilder class for custom purposes.

Location


Properties


FieldName

Represents the name of the field in the data table in the database. Note that this name is not the schema field name, but the field name from the database.

property FieldName: string read write

TableName

Represents the name of the table in the database. Not mandatory. Note that this name is not the schema table name, but the table name from the database.

property TableName: string read write

Instance Methods


Assign  override

Copies data from a given source.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

AssignTableField

Assigns the FieldName and TableName.

procedure AssignTableField(Source: TDATableFieldCollectionItem)

Parameters:

  • Source: Instance whose properties will be copied