RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter Class

TCustomDataSetAdapter is the base class for adapters that represent the information from a dataset.

Pascal
TCustomDataSetAdapter = class(TDefaultFieldsPagedAdapter, IAdapterMode, IAdapterDataSetComponent, IGetDesigntimeWarnings, IGetAdapterModeNames, IGetRecordKeys, IFullyQualifyInputNames);
C++
class TCustomDataSetAdapter : public TDefaultFieldsPagedAdapter, public IAdapterMode, public IAdapterDataSetComponent, public IGetDesigntimeWarnings, public IGetAdapterModeNames, public IGetRecordKeys, public IFullyQualifyInputNames;

DBAdapt

TCustomDataSetAdapter is the base class for adapters that define a scriptable interace to TDataSet objects. It allows datasets to operate properly in a stateless environment, and contains field and action components for working with the fields and records of the dataset. Each field of the dataset adapter represents a field in the dataset, and the actions operate on the underlying TDataSet object. 

Two important properties that TCustomDataSetAdapter introduces are DataSet, which specifies the associated dataset for this adapter, and Mode, which indicates how forms built from this adapter are to operate on the information it provides. TCustomDataSetAdapter also introduces support for master/detail relationships between dataset. Use the MasterAdapter property to indicate master/detail relationships between TDataSetAdapter components. 

Do not instantiate TCustomDataSetAdapter directly. Use TDataSetAdapter or create your own concrete descendant. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!