TDADeltaList

Overview

TDADeltaList represents a list of IDADeltas. This class is used only internally and is designed for storing lists of details deltas. It is used later for updating Autoinc values in changes of details deltas.

TDADeltaList extends TInterfaceList with the DeltaByName and FindDelta functions.

Location

  • Unit: uDADelta.pas
  • Ancestry: TInterfaceList | TDADeltaList

Properties


Deltas

Provides direct access to an IDADelta in the list.

property Deltas[Index: integer]: IDADelta read write

Instance Methods


Add  reintroduce

Adds an IDADelta to the list.

function Add(const aDelta: IDADelta): integer

Parameters:

  • aDelta: given instance.

DeltaByName

Returns an IDADelta with the specified name and raises an exception if it isn't found.

function DeltaByName(const aDeltaName: string): IDADelta

Parameters:

  • aDeltaName: specified name

FindDelta

Returns an IDADelta with the specified name.

function FindDelta(const aDeltaName: string): IDADelta

Parameters:

  • aDeltaName: name

Insert  reintroduce

Inserts an IDADelta into the list at a specified position.

procedure Insert(Index: Integer; const aDelta: IDADelta)

Parameters:

  • Index: position
  • aDelta: delta