vcl-dxbackend-dfa5a01b.md
The base class for all data connection components.
TdxBackendCustomDataConnection = class abstract(TcxComponentCollectionItem)
A data connection component is designed to bind a supported client component to data stored in memory or a database.
The list below outlines key members of the TdxBackendCustomDataConnection class. These members allow you to configure core data connection settings.
ActiveSpecifies if the data connection is active.DisplayNameSpecifies the data connection’s name both in template/layout designer and Collection Editor dialogs.
Collection | IndexSpecify the parent collection component.
The following public API members reference data connection components as a TdxBackendCustomDataConnection object:
TdxBackendDataConnectionCollection.AddCreates a data connection of the required type and ads the connection to the collection.TdxBackendDataConnectionCollection.ItemsProvides indexed access to all data connection components stored in the collection.TdxBackendDataConnectionManager.ItemsProvides indexed access to stored data connection components.TdxBackendCustomDataConnectionClassA reference to a backend data connection component class.
Tip
You need to cast a returned TdxBackendCustomDataConnection object to the corresponding terminal descendant class to acess all public API members.
Call the ClassType function or use any other RTTI functionality to identify the actual data connection component type.
Do not use the TdxBackendCustomDataConnection class directly. Use the following descendants instead:
TdxBackendInMemoryJSONConnectionA component designed for interaction with data stored in memory.TdxBackendDataSetJSONConnectionA component designed to fetch data from one or multiple datasets (TDataSet descendant instances).TdxBackendDatabaseSQLConnectionA non-visual component designed to fetch data from a relational database (SQL Server, PostgreSQL, SQLite, etc.).
TObject TPersistent TComponent TcxCustomComponent TcxComponentCollectionItem TdxBackendCustomDataConnection
See Also
TdxBackendDataConnectionManager Class