Sign in Join
FPDoc Onlineexperiment

TDefCollection class

In unit DB

Definition collection.

Declaration

pascal
TDefCollection = class(TOwnedCollection)

Inheritance

  1. TDefCollection
  2. TOwnedCollection
  3. TCollection
  4. TPersistent
  5. TObject

Descends from it: TFieldDefs TIndexDefs

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 Find method can find items by named.

Properties

DatasetpublicDataset this collection manages definitions for.
UpdatedpublicHas one of the items been changed.

Methods

SetItemNameprotectedVirtual method to set the name of the specified item.
createpublicInstantiate a new TDefCollection instance.
FindpublicFind an item by name.
GetItemNamespublicReturn a list of all names in the collection.
IndexOfpublicFind location of item by name.

Inherited

From TOwnedCollection (1)

GetOwner

From TCollection (29)

Add Assign BeginUpdate Changed Clear Count Delete Destroy EndUpdate Exchange FindItemID GetAttr GetAttrCount GetEnumerator GetItem GetItemAttr GetNamePath Insert ItemClass Items Move Notify Owner PropName SetItem SetPropName Sort Update UpdateCount

From TPersistent (5)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.