FireDAC.Stan.Option.TFDUpdateOptions.FetchGeneratorsPoint

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property FetchGeneratorsPoint: TFDFetchGeneratorsPoint read GetFetchGeneratorsPoint

C++

__property TFDFetchGeneratorsPoint FetchGeneratorsPoint = {read=GetFetchGeneratorsPoint, write=SetFetchGeneratorsPoint, stored=IsGGPS, default=2};

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Stan.Option.pas
FireDAC.Stan.Option.hpp
FireDAC.Stan.Option TFDUpdateOptions

Description

Controls the moment when the next generator value is fetched.

Use FetchGeneratorsPoint to specify the moment when the next generator value is fetched from a database and assigned to an auto-incremental field. The default value is gpDeferred

The next generator value will be fetched from a generator, specified by the TFDUpdateOptions.GeneratorName/TFDAutoIncField.GeneratorName properties and assigned to the auto-incremental fields, which have pfInUpdate in ProviderFlags.

An auto-incremental field is:

Generators are supported by InterBase and Firebird. Sequences are supported by Oracle and PostgreSQL DBMSs. For other DBMSs this property has no meaning.  The value can be one of the following:

Mode 

Description 

gpNone 

Do not fetch generator values. 

gpImmediate 

Fetch values right after starting to append a new record. Normally, this is the value for the TDataSet.Insert or Append methods. 

gpDeferred 

Fetch values right before posting a new record to a database. Normally, this is the value for the TDataSet.Post or ApplyUpdates methods. 

See Also