FireDAC.Stan.Option.TFDUpdateOptions.FetchGeneratorsPoint
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:
- A field of the TFDAutoIncField class.
- A field whose name is specified in AutoIncFields.
- A field with TField.AutoGenerateValue =
arAutoInc
.
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 |
---|---|
|
Do not fetch generator values. |
|
Fetch values right after starting to append a new record. Normally, this is the value for the TDataSet.Insert or Append methods. |
|
Fetch values right before posting a new record to a database. Normally, this is the value for the TDataSet.Post or ApplyUpdates methods. |