98 |
|
function obtainInfoCode: Integer; |
99 |
|
function getInfo(code: Integer): Pointer; |
100 |
|
function setInfo(code: Integer; value: Pointer): Pointer; |
101 |
+ |
function cloneAttachment: IAttachment; |
102 |
+ |
function GetServiceManager: IServiceManager; |
103 |
|
function HasConfigFile: boolean; |
104 |
|
function ReadConfigString(Section, Ident, DefaultValue: AnsiString): AnsiString; |
105 |
|
function ReadConfigInteger(Section, Ident: AnsiString; DefaultValue: integer): integer; |
560 |
|
inherited Create(aController); |
561 |
|
FContext := context; |
562 |
|
FirebirdAPI := TFB30ClientAPI.Create(context.getMaster); |
563 |
+ |
aController.StartJournaling(self); |
564 |
|
end; |
565 |
|
|
566 |
|
function TFBUDRExternalContext.AsText: AnsiString; |
635 |
|
Result := FContext.setInfo(code,value); |
636 |
|
end; |
637 |
|
|
638 |
+ |
function TFBUDRExternalContext.cloneAttachment: IAttachment; |
639 |
+ |
var DPB: IDPB; |
640 |
+ |
begin |
641 |
+ |
DPB := GetFirebirdAPI.AllocateDPB; |
642 |
+ |
DPB.Add(isc_dpb_user_name).setAsString(GetUserName); |
643 |
+ |
DPB.Add(isc_dpb_lc_ctype).setAsString(GetClientCharSet); |
644 |
+ |
Result := GetFirebirdAPI.OpenDatabase(GetDatabaseName,DPB); |
645 |
+ |
end; |
646 |
+ |
|
647 |
+ |
function TFBUDRExternalContext.GetServiceManager: IServiceManager; |
648 |
+ |
var SPB: ISPB; |
649 |
+ |
begin |
650 |
+ |
SPB := FirebirdAPI.AllocateSPB; |
651 |
+ |
SPB.Add(isc_spb_user_name).setAsString(GetUserName); |
652 |
+ |
Result := GetFirebirdAPI.GetServiceManager('',Local,SPB); |
653 |
+ |
end; |
654 |
+ |
|
655 |
|
function TFBUDRExternalContext.HasConfigFile: boolean; |
656 |
|
begin |
657 |
|
Result := Controller.HasConfigFile; |