105 lines
2.9 KiB
ObjectPascal
105 lines
2.9 KiB
ObjectPascal
|
|
unit DynSQLLibrary_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. }
|
||
|
|
{----------------------------------------------------------------------------}
|
||
|
|
|
||
|
|
{$I Remobjects.inc}
|
||
|
|
|
||
|
|
interface
|
||
|
|
|
||
|
|
uses
|
||
|
|
{vcl:} Classes, TypInfo,
|
||
|
|
{RemObjects:} uROXMLIntf, uROClasses, uROClient, uROTypes, uROClientIntf,
|
||
|
|
{Used RODLs:} DataAbstract4_Intf;
|
||
|
|
|
||
|
|
const
|
||
|
|
{ Library ID }
|
||
|
|
LibraryUID = '{7DDA8CC1-A876-4A25-9280-3352E8A464EB}';
|
||
|
|
TargetNamespace = '';
|
||
|
|
|
||
|
|
{ Service Interface ID's }
|
||
|
|
IDynSQLService_IID : TGUID = '{02F71273-9E5C-4BD7-81EF-3BD4663EA0AB}';
|
||
|
|
|
||
|
|
{ Event ID's }
|
||
|
|
|
||
|
|
type
|
||
|
|
{ Forward declarations }
|
||
|
|
IDynSQLService = interface;
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
{ Enumerateds }
|
||
|
|
|
||
|
|
{ IDynSQLService }
|
||
|
|
IDynSQLService = interface(IDataAbstractService)
|
||
|
|
['{02F71273-9E5C-4BD7-81EF-3BD4663EA0AB}']
|
||
|
|
function MyUpdateData(const aTableName: String; const Delta: Binary): Binary;
|
||
|
|
end;
|
||
|
|
|
||
|
|
{ CoDynSQLService }
|
||
|
|
CoDynSQLService = class
|
||
|
|
class function Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IDynSQLService;
|
||
|
|
end;
|
||
|
|
|
||
|
|
{ TDynSQLService_Proxy }
|
||
|
|
TDynSQLService_Proxy = class(TDataAbstractService_Proxy, IDynSQLService)
|
||
|
|
protected
|
||
|
|
function __GetInterfaceName:string; override;
|
||
|
|
|
||
|
|
function MyUpdateData(const aTableName: String; const Delta: Binary): Binary;
|
||
|
|
end;
|
||
|
|
|
||
|
|
implementation
|
||
|
|
|
||
|
|
uses
|
||
|
|
{vcl:} SysUtils,
|
||
|
|
{RemObjects:} uROEventRepository, uROSerializer, uRORes;
|
||
|
|
|
||
|
|
{ CoDynSQLService }
|
||
|
|
|
||
|
|
class function CoDynSQLService.Create(const aMessage: IROMessage; aTransportChannel: IROTransportChannel): IDynSQLService;
|
||
|
|
begin
|
||
|
|
result := TDynSQLService_Proxy.Create(aMessage, aTransportChannel);
|
||
|
|
end;
|
||
|
|
|
||
|
|
{ TDynSQLService_Proxy }
|
||
|
|
|
||
|
|
function TDynSQLService_Proxy.__GetInterfaceName:string;
|
||
|
|
begin
|
||
|
|
result := 'DynSQLService';
|
||
|
|
end;
|
||
|
|
|
||
|
|
function TDynSQLService_Proxy.MyUpdateData(const aTableName: String; const Delta: Binary): Binary;
|
||
|
|
begin
|
||
|
|
try
|
||
|
|
result := nil;
|
||
|
|
__Message.InitializeRequestMessage(__TransportChannel, 'DynSQLLibrary', __InterfaceName, 'MyUpdateData');
|
||
|
|
__Message.Write('aTableName', TypeInfo(String), aTableName, []);
|
||
|
|
__Message.Write('Delta', TypeInfo(Binary), Delta, []);
|
||
|
|
__Message.Finalize;
|
||
|
|
|
||
|
|
__TransportChannel.Dispatch(__Message);
|
||
|
|
|
||
|
|
__Message.Read('Result', TypeInfo(Binary), result, []);
|
||
|
|
finally
|
||
|
|
__Message.UnsetAttributes(__TransportChannel);
|
||
|
|
__Message.FreeStream;
|
||
|
|
end
|
||
|
|
end;
|
||
|
|
|
||
|
|
initialization
|
||
|
|
RegisterProxyClass(IDynSQLService_IID, TDynSQLService_Proxy);
|
||
|
|
|
||
|
|
|
||
|
|
finalization
|
||
|
|
UnregisterProxyClass(IDynSQLService_IID);
|
||
|
|
|
||
|
|
end.
|