63 |
|
{IServiceManager} |
64 |
|
function getSPB: ISPB; |
65 |
|
function getServerName: AnsiString; |
66 |
+ |
function getProtocol: TProtocol; |
67 |
+ |
function getPortNo: AnsiString; |
68 |
|
procedure Attach; |
69 |
|
procedure Detach(Force: boolean=false); virtual; abstract; |
70 |
|
function AllocateSRB: ISRB; |
71 |
|
function AllocateSQPB: ISQPB; |
72 |
< |
function Query(SQPB: ISQPB; Request: ISRB): IServiceQueryResults; overload; virtual; abstract; |
73 |
< |
function Query(Request: ISRB): IServiceQueryResults; overload; |
72 |
> |
function Query(SQPB: ISQPB; Request: ISRB; RaiseExceptionOnError: boolean=true): IServiceQueryResults; overload; virtual; abstract; |
73 |
> |
function Query(Request: ISRB; RaiseExceptionOnError: boolean=true): IServiceQueryResults; overload; |
74 |
|
end; |
75 |
|
|
76 |
|
implementation |
113 |
|
Result := FServerName; |
114 |
|
end; |
115 |
|
|
116 |
+ |
function TFBServiceManager.getProtocol: TProtocol; |
117 |
+ |
begin |
118 |
+ |
Result := FProtocol; |
119 |
+ |
end; |
120 |
+ |
|
121 |
+ |
function TFBServiceManager.getPortNo: AnsiString; |
122 |
+ |
begin |
123 |
+ |
Result := FPort; |
124 |
+ |
end; |
125 |
+ |
|
126 |
|
procedure TFBServiceManager.Attach; |
127 |
|
var ConnectString: AnsiString; |
128 |
|
begin |
140 |
|
Result := TSQPB.Create; |
141 |
|
end; |
142 |
|
|
143 |
< |
function TFBServiceManager.Query(Request: ISRB): IServiceQueryResults; |
143 |
> |
function TFBServiceManager.Query(Request: ISRB; RaiseExceptionOnError: boolean |
144 |
> |
): IServiceQueryResults; |
145 |
|
begin |
146 |
< |
Result := Query(nil,Request); |
146 |
> |
Result := Query(nil,Request,RaiseExceptionOnError); |
147 |
|
end; |
148 |
|
|
149 |
|
end. |