Datasnap.DataBkr.TCRemoteDataModule

From RAD Studio API Documentation
Jump to: navigation, search

System.Classes.TDataModuleSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTCRemoteDataModule

Delphi

TCRemoteDataModule = class(TDataModule)

C++

class PASCALIMPLEMENTATION TCRemoteDataModule : public System::Classes::TDataModule

Properties

Type Visibility Source Unit Parent
class public
Datasnap.DataBkr.pas
Datasnap.DataBkr.hpp
Datasnap.DataBkr Datasnap.DataBkr

Description

TCRemoteDataModule maintains a list of available providers in an application server.

TCRemoteDataModule is the base class for remote data modules that appear in the application servers of multi-tiered database applications that are written in C++. It manages a list of provider components, which handle providing data to client applications and applying updates received from those clients.

Remote data modules act as the central repository for all objects in the application server. They can contain any nonvisual components. Typically these are data access components, such as datasets and the provider components that handle communication between these datasets and client applications. Remote data modules can also contain other nonvisual components, such as TTimer, or TImageList.

At design time a remote data module provides a visual container into which a developer can place nonvisual components, set their properties, and write event handlers for them. In the unit file for the remote data module a developer can also code any business rules that are to be centralized in the middle tier of a multi-tiered application.

To create a remote data module at design time, choose File > New, and select Remote Data Module from the multi-tiered page of the new items dialog. The Remote Data Module Wizard then creates a new descendant of TCRemoteDataModule that supports an interface that descends from TRemoteDataModule.

The interface itself is handled by a companion implementation object. This object descends from REMOTEDATAMODULE_IMPL(), which is a macro defined in Atlvcl.h. The implementation object uses the ATL to provide Automation support for the TRemoteDataModule interface, which client applications use to communicate with the providers in the remote data module.

Note: TCRemoteDataModule does not provide support for the TRemoteDataModule interface. This support is introduced by the TRemoteDataModule class, a descendant of TCRemoteDataModule.

See Also