Componentes.Terceros.RemObj.../official/5.0.24.615/Data Abstract for Delphi/Samples/Dynamic SQL/DynSQLLibrary_Invk.pas

68 lines
2.1 KiB
ObjectPascal

unit DynSQLLibrary_Invk;
{----------------------------------------------------------------------------}
{ 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. }
{----------------------------------------------------------------------------}
{$I Remobjects.inc}
interface
uses
{vcl:} Classes,
{RemObjects:} uROXMLIntf, uROServer, uROServerIntf, uROTypes, uROClientIntf,
{Used RODL Intf's:} DataAbstract4_Intf,
{Used RODL Invk's:} DataAbstract4_Invk,
{Generated:} DynSQLLibrary_Intf;
type
{$M+}
TDynSQLService_Invoker = class(TDataAbstractService_Invoker)
private
protected
published
procedure Invoke_MyUpdateData(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
end;
{$M-}
implementation
uses
{RemObjects:} uRORes, uROClient;
{ TDynSQLService_Invoker }
procedure TDynSQLService_Invoker.Invoke_MyUpdateData(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ procedure MyUpdateData(const Delta: Binary); }
var
Delta: Binary;
__lObjectDisposer: TROObjectDisposer;
begin
Delta := nil;
try
__Message.Read('Delta', TypeInfo(Binary), Delta, []);
(__Instance as IDynSQLService).MyUpdateData(Delta);
__Message.InitializeResponseMessage(__Transport, 'DynSQLLibrary', 'DynSQLService', 'MyUpdateDataResponse');
__Message.Finalize;
__Message.UnsetAttributes(__Transport);
__oResponseOptions := [roNoResponse];
finally
__lObjectDisposer := TROObjectDisposer.Create(__Instance);
try
__lObjectDisposer.Add(Delta);
finally
__lObjectDisposer.Free();
end;
end;
end;
end.