Back to Devexpress

TdxBackendCustomDataConnection Class

vcl-dxbackend-dfa5a01b.md

latest4.0 KB
Original Source

TdxBackendCustomDataConnection Class

The base class for all data connection components.

Declaration

delphi
TdxBackendCustomDataConnection = class abstract(TcxComponentCollectionItem)

Remarks

A data connection component is designed to bind a supported client component to data stored in memory or a database.

Main API Members

The list below outlines key members of the TdxBackendCustomDataConnection class. These members allow you to configure core data connection settings.

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.

General-Purpose API Members

Collection | IndexSpecify the parent collection component.

Direct TdxBackendCustomDataConnection Class References

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.

Terminal TdxBackendCustomDataConnection Class Descendant

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.).

Inheritance

TObject TPersistent TComponent TcxCustomComponent TcxComponentCollectionItem TdxBackendCustomDataConnection

See Also

TdxBackendDataConnectionManager Class

TdxBackendCustomDataConnection Members

dxBackend Unit