RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCRemoteDataModule Class

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

Pascal
TCRemoteDataModule = class(TDataModule);
C++
class TCRemoteDataModule : public TDataModule;

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.
 

 

IAppServer 

TDataSetProvider

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!