TDAUnionSourceTable

Overview

The TDAUnionSourceTable class links a particular table as part of a TDAUnionDataTable.

The TDAUnionSourceTable is just a reference to the existing regular DataTable registered in the schema; it provides an additional mappings collection that defines relations between UnionTable fields and SourceTable fields.

You can add/remove source tables to/from the union table on the Tables page in Schema Modeler.

Note: You can select only tables that are already registered, exist in the schema and have proper mapping to the database table which they represent as union source tables.

Location


 

constructor Create  override

Creates a new instance.

constructor Create(Collection: TCollection)

Parameters:

  • Collection: passed to TCollectionItem.Create.

Assign  override

Copies data from a given source.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

ColumnMappings

Returns the TDAColumnMappingCollection which provides mapping between fields in the union source table and the union table.

property ColumnMappings: TDAColumnMappingCollection read write

GetDisplayName  protected override

Returns the name of the union source table as it appears in the collection editor.

function GetDisplayName: string

IsReadOnly

This property is used to prevent the modification of read only data by the Data Abstract engine. OFF by default.

Note that you can mark any source table as Read-Only and it will affect only the union source table while the referenced schema data table remains read/write.

property IsReadOnly: Boolean read write

Name

Designates the name of the particular source table.

property Name: string read write

 

ColumnMappings

Returns the TDAColumnMappingCollection which provides mapping between fields in the union source table and the union table.

property ColumnMappings: TDAColumnMappingCollection read write

IsReadOnly

This property is used to prevent the modification of read only data by the Data Abstract engine. OFF by default.

Note that you can mark any source table as Read-Only and it will affect only the union source table while the referenced schema data table remains read/write.

property IsReadOnly: Boolean read write

Name

Designates the name of the particular source table.

property Name: string read write

 

constructor Create  override

Creates a new instance.

constructor Create(Collection: TCollection)

Parameters:

  • Collection: passed to TCollectionItem.Create.

Assign  override

Copies data from a given source.

procedure Assign(Source: TPersistent)

Parameters:

  • Source: Instance whose properties will be copied

GetDisplayName  protected override

Returns the name of the union source table as it appears in the collection editor.

function GetDisplayName: string

 

  • Schemas
  • Union Tables Sample (Delphi)