Componentes.Terceros.RemObj.../internal/5.0.23.613/1/Data Abstract for Delphi/Samples/Business Rules Scripts/BusinessRulesScriptsLibrary_Intf.pas

96 lines
2.6 KiB
ObjectPascal
Raw Permalink Normal View History

unit BusinessRulesScriptsLibrary_Intf;
{----------------------------------------------------------------------------}
{ This unit was automatically generated by the RemObjects SDK after reading }
{ the RODL file associated with this project . }
{ }
{ Do not modify this unit manually, or your changes will be lost when this }
{ unit is regenerated the next time you compile the project. }
{----------------------------------------------------------------------------}
interface
uses
{vcl:} Classes, TypInfo,
{RemObjects:} uROClasses, uROClient, uROTypes, uROClientIntf,
{Used RODLs:} DataAbstract4_Intf;
const
{ Library ID }
LibraryUID = '{E97481D6-EA65-4F8F-8CB0-128A20DA2B2C}';
{ Service Interface ID's }
INewService_IID : TGUID = '{25DCCAE5-CA08-41B5-8DFC-03C4E548FE33}';
{ Event ID's }
type
{ Forward declarations }
INewService = interface;
{ INewService }
INewService = interface(IDataAbstractService)
['{25DCCAE5-CA08-41B5-8DFC-03C4E548FE33}']
function GetDatasetScripts(const DatasetNames: String): String;
end;
{ CoNewService }
CoNewService = class
class function Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): INewService;
end;
{ TNewService_Proxy }
TNewService_Proxy = class(TDataAbstractService_Proxy, INewService)
protected
function __GetInterfaceName:string; override;
function GetDatasetScripts(const DatasetNames: String): String;
end;
implementation
uses
{vcl:} SysUtils,
{RemObjects:} uROEventRepository, uRORes;
{ CoNewService }
class function CoNewService.Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): INewService;
begin
result := TNewService_Proxy.Create(aMessage, aTransportChannel);
end;
{ TNewService_Proxy }
function TNewService_Proxy.__GetInterfaceName:string;
begin
result := 'NewService';
end;
function TNewService_Proxy.GetDatasetScripts(const DatasetNames: String): String;
begin
try
__Message.InitializeRequestMessage(__TransportChannel, 'BusinessRulesScriptsLibrary', __InterfaceName, 'GetDatasetScripts');
__Message.Write('DatasetNames', TypeInfo(String), DatasetNames, []);
__Message.Finalize;
__TransportChannel.Dispatch(__Message);
__Message.Read('Result', TypeInfo(String), result, []);
finally
__Message.FreeStream;
end
end;
initialization
RegisterProxyClass(INewService_IID, TNewService_Proxy);
finalization
UnregisterProxyClass(INewService_IID);
end.