Componentes.Terceros.RemObj.../internal/5.0.30.691/1/Data Abstract for Delphi/Samples/Dynamic SQL/DynSQLLibrary_Invk.pas

71 lines
2.3 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
TDynSQLService_Invoker = class(TDataAbstractService_Invoker)
private
protected
published
procedure Invoke_MyUpdateData(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
end;
implementation
uses
{RemObjects:} uRORes, uROClient;
{ TDynSQLService_Invoker }
procedure TDynSQLService_Invoker.Invoke_MyUpdateData(const __Instance:IInterface; const __Message:IROMessage; const __Transport:IROTransport; out __oResponseOptions:TROResponseOptions);
{ function MyUpdateData(const aTableName: String; const Delta: Binary): Binary; }
var
aTableName: String;
Delta: Binary;
lResult: Binary;
__lObjectDisposer: TROObjectDisposer;
begin
Delta := nil;
lResult := nil;
try
__Message.Read('aTableName', TypeInfo(String), aTableName, []);
__Message.Read('Delta', TypeInfo(Binary), Delta, []);
lResult := (__Instance as IDynSQLService).MyUpdateData(aTableName, Delta);
__Message.InitializeResponseMessage(__Transport, 'DynSQLLibrary', 'DynSQLService', 'MyUpdateDataResponse');
__Message.Write('Result', TypeInfo(Binary), lResult, []);
__Message.Finalize;
__Message.UnsetAttributes(__Transport);
finally
__lObjectDisposer := TROObjectDisposer.Create(__Instance);
try
__lObjectDisposer.Add(Delta);
__lObjectDisposer.Add(lResult);
finally
__lObjectDisposer.Free();
end;
end;
end;
initialization
end.