RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSet Class

TDataSet is the base class for all dataset components that represent data in rows and columns.

Pascal
TDataSet = class(TComponent, IProviderSupport);
C++
class TDataSet : public TComponent, public IProviderSupport;

DB

TDataSet introduces the basic properties, events, and methods for working with data. 

Many of these properties, events, and methods are abstract (Delphi) or pure virtual (C++) in TDataSet. Abstract or pure virtual declarations are declarations without implementations. At the TDataSet level they cannot be used or accessed. Developers must use or derive descendants of TDataSet that redeclare and implement these abstract or pure virtual methods. Many of the other TDataSet methods are declared and implemented in TDataSet as virtual methods, but the implementations are merely stubs that are reimplemented in descendants. 

TDataSet has two several descendants: TBDEDataSet, TCustomADONETConnector, TIBCustomDataSet, TCustomSQLDataSet, TCustomClientDataSet and TWideDataSet

TBDEDataSet is the base class for datasets that access their data using the Borland Database Engine (BDE). TBDEDataSet descendants include TTable, TQuery, and TStoredProc. Developers who create custom dataset components that use the BDE derive them from TBDEDataSet, TDBDataSet, TQuery, TStoredProc, or TTable.  

TCustomADONETConnector is the base class for datasets that access their data using ActiveX Data Objects (ADO). TCustomADONETConnector descendants include TADODataSet, TADOTable, TADOQuery, and TADOStoredProc. Developers who create custom dataset components that use ADO derive them from CustomADODataSet.  

TIBCustomDataSet is the base class for datasets that directly access the data in InterBase tables. TIBCustomDataSet descendants include TIBDataSet, TIBTable, TIBQuery, and TIBStoredProc. Developers who create custom dataset components that directly access data in an InterBase database derive from TIBCustomDataSet.  

TCustomSQLDataSet is the base class for unidirectional datasets. Unidirectional datasets are read-only datasets that permit only forward navigation. TCustomSQLDataSet descendants include the dbExpress datasets TSQLDataSet, TSQLQuery, TSQLTable, and TSQLStoredProc. Developers who create custom dataset components that use dbExpress to access their data derive from TCustomSQLDataSet. 

TCustomClientDataSet is the base class for in-memory datasets. Client datasets can work with data from files on disk or with data provided by another component via a provider. They cache that data in memory, maintain a record of any changes in a change log, and apply cached updates at a later point back to the source of the data. Developers who create custom datasets that store their data in an in-memory cache derive from TCustomClientDataSet. 

TWideDataSet provides dataset support for wide strings. 

Developer's can also derive custom dataset components directly from TDataSet, providing their own mechanisms for accessing and manipulating the data. 

 

TClientDataSet 

TWideDataSet 

TSQLTable 

TSQLQuery 

TSQLStoredProc 

TSQLDataSet 

TBDEDataSet 

TDBDataSet 

TQuery 

TStoredProc 

TTable 

TADODataSet 

TADOTable 

TADOQuery 

Marking and Returning to Records 

Understanding Datasets: Overview 

Distributing Database Applications 

Connecting to Databases with TDatabase

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