TDAFieldGenerator
Overview
TDAFieldGenerator adds connection support into TDABaseFieldGenerator.
This class is used automatically by TDAQueryBuilder.
Location
- Unit: uDAQueryBuilder.pas
- Ancestry: TPersistent | TDABaseFieldGenerator | TDAFieldGenerator
constructor Create reintroduce overload (declared in TDABaseFieldGenerator)
Creates a new instance.
constructor Create
constructor Create (TDASimpleQueryBuilder) reintroduce overload (declared in TDABaseFieldGenerator)
Creates a new instance with given parameter.
constructor Create(AQueryBuilder: TDASimpleQueryBuilder)
Parameters:
- AQueryBuilder: query builder
AlwaysQuoteFieldName (declared in TDABaseFieldGenerator)
Changes the behavior of QuoteFieldNameIfNeeded method.
property AlwaysQuoteFieldName: Boolean read write
Assign override
Copies the contents of another instance to the object where the method is executed
procedure Assign(Source: TPersistent)
Parameters:
- Source: Instance whose properties will be copied
ColumnMapping (declared in TDABaseFieldGenerator)
property ColumnMapping: TDAColumnMappingCollection read write
Connection
Active connection
property Connection: IDACustomConnection read write
GenerateFieldName (declared in TDABaseFieldGenerator)
Generates field name according to column mapping and quotation.
function GenerateFieldName(aTablename: string; aFieldName: string; aProcessMapping: Boolean): string
Parameters:
- aTablename: table name
- aFieldName: field name
- aProcessMapping: Controls if GetMappingTableField is applied to
aFieldName
. true by default.
GetMappingTableField protected (declared in TDABaseFieldGenerator)
Returns correspondent name from column mapping.
function GetMappingTableField(const aDataSetField: string): string
Parameters:
- aDataSetField: dataset field
IdentifierNeedsQuoting protected override
Checks if identifier need to be quoted.
function IdentifierNeedsQuoting(const iIdentifier: string): Boolean
Parameters:
- iIdentifier: identifier.
QuoteFieldNameIfNeeded protected override
Quotes field name if is required.
function QuoteFieldNameIfNeeded(const aTableName: string; const aFieldName: string): string
Parameters:
- aTableName: table name.
- aFieldName: field name.
QuoteIdentifier protected override
Quotes identifier.
function QuoteIdentifier(const iIdentifier: string): string
Parameters:
- iIdentifier: identifier.
QuoteIdentifierIfNeeded protected override
Quotes identifier if is required.
function QuoteIdentifierIfNeeded(const iIdentifier: string): string
Parameters:
- iIdentifier: identifier.
AlwaysQuoteFieldName (declared in TDABaseFieldGenerator)
Changes the behavior of QuoteFieldNameIfNeeded method.
property AlwaysQuoteFieldName: Boolean read write
ColumnMapping (declared in TDABaseFieldGenerator)
property ColumnMapping: TDAColumnMappingCollection read write
Connection
Active connection
property Connection: IDACustomConnection read write
constructor Create reintroduce overload (declared in TDABaseFieldGenerator)
Creates a new instance.
constructor Create
constructor Create (TDASimpleQueryBuilder) reintroduce overload (declared in TDABaseFieldGenerator)
Creates a new instance with given parameter.
constructor Create(AQueryBuilder: TDASimpleQueryBuilder)
Parameters:
- AQueryBuilder: query builder
Assign override
Copies the contents of another instance to the object where the method is executed
procedure Assign(Source: TPersistent)
Parameters:
- Source: Instance whose properties will be copied
GenerateFieldName (declared in TDABaseFieldGenerator)
Generates field name according to column mapping and quotation.
function GenerateFieldName(aTablename: string; aFieldName: string; aProcessMapping: Boolean): string
Parameters:
- aTablename: table name
- aFieldName: field name
- aProcessMapping: Controls if GetMappingTableField is applied to
aFieldName
. true by default.
GetMappingTableField protected (declared in TDABaseFieldGenerator)
Returns correspondent name from column mapping.
function GetMappingTableField(const aDataSetField: string): string
Parameters:
- aDataSetField: dataset field
IdentifierNeedsQuoting protected override
Checks if identifier need to be quoted.
function IdentifierNeedsQuoting(const iIdentifier: string): Boolean
Parameters:
- iIdentifier: identifier.
QuoteFieldNameIfNeeded protected override
Quotes field name if is required.
function QuoteFieldNameIfNeeded(const aTableName: string; const aFieldName: string): string
Parameters:
- aTableName: table name.
- aFieldName: field name.
QuoteIdentifier protected override
Quotes identifier.
function QuoteIdentifier(const iIdentifier: string): string
Parameters:
- iIdentifier: identifier.
QuoteIdentifierIfNeeded protected override
Quotes identifier if is required.
function QuoteIdentifierIfNeeded(const iIdentifier: string): string
Parameters:
- iIdentifier: identifier.