Skip to content

TDefCollection

Definition collection.

Declaration

Source position: db.pas line 157

type

  TDefCollection = class(TOwnedCollection)
  public
    constructor create;
    function Find : TNamedItem;
    procedure GetItemNames;
    function IndexOf : LongInt;
    property Dataset: TDataSet; {r}
    property Updated: Boolean; {rw}
  end;

Description

TDefCollection is a parent class for the TFieldDefs and TIndexDefs collections: It holds a set of named definitions on behalf of a TDataset component. To this end, it introduces a dataset property, and a mechanism to notify the dataset of any updates in the collection. It is supposed to hold items of class TNamedItem, so the TDefCollection.Find method can find items by named.

Properties

Member Visibility Description
Dataset read only public Dataset this collection manages definitions for.
Updated public Has one of the items been changed.
See all Properties

Methods

Member Visibility Description
create public Instantiate a new TDefCollection instance.
Find public Find an item by name.
GetItemNames public Return a list of all names in the collection.
IndexOf public Find location of item by name.
See all Methods