Sign in Join
FPDoc Onlineexperiment

TDataLink class

In unit DB

Data event handling agent for controls.

Declaration

pascal
TDataLink = class(TPersistent)

Inheritance

  1. TDataLink
  2. TPersistent
  3. TObject

Descends from it: TComponentDataLink TDBNavDataLink TDetailDataLink TFieldDataLink

Description

TDataLink is used by GUI controls or datasets in a master-detail relationship to handle data events coming from a TDatasource instance. It is a class that exists for component programmers, application coders should never need to use TDataLink or one of it's descendents.

DB-Aware Component coders must use a TDatalink instance to handle all communication with a TDataset instance, rather than communicating directly with the dataset. TDataLink contains methods which are called by the various events triggered by the dataset. Inversely, it has some methods to trigger actions in the dataset.

TDatalink is an abstract class; it is never used directly. Instead, a descendent class is used which overrides the various methods that are called in response to the events triggered by the dataset. Examples are .

See also

Properties

VisualControlprotected
FirstRecordprotected
ActivepublicIs the link active.
ActiveRecordpublicCurrently active record.
BOFpublicIs the dataset at the first record.
BufferCountpublicSet to the number of record buffers this datalink needs.
DataSetpublicDataset this datalink is connected to.
DataSourcepublicDatasource this datalink is connected to.
DataSourceFixedpublicCan the datasource be changed.
EditingpublicIs the dataset in edit mode.
Eofpublic
ReadOnlypublicIs the link readonly.
RecordCountpublicNumber of records in the buffer of the dataset.

Methods

ActiveChangedprotected
CheckBrowseModeprotected
DataEventprotected
DataSetChangedprotected
DataSetScrolledprotected
EditingChangedprotected
FocusControlprotected
GetActiveRecordprotected
GetBOFprotected
GetBufferCountprotected
GetEOFprotected
GetRecordCountprotected
LayoutChangedprotected
MoveByprotected
RecordChangedprotected
SetActiveRecordprotected
SetBufferCountprotected
UpdateDataprotected
CreatepublicInitialize a new instance of TDataLink.
DestroypublicRemove an instance of TDatalink from memory.
EditpublicSet the dataset in edit mode, if possible.
UpdateRecordpublicCalled when the data in the dataset must be updated.
ExecuteActionpublicExecute action.
UpdateActionpublicUpdate handler for actions.

Inherited

From TPersistent (8)

Assign AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner

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.