255 |
|
['{8bdccfe9-d552-446b-bd82-844ca264455d}'] |
256 |
|
function getRawValue: Int64; |
257 |
|
function getScale: integer; |
258 |
< |
function clone(aNewScale: integer): IFBNumeric; |
258 |
> |
function AdjustScaleTo(aNewScale: integer): IFBNumeric; |
259 |
|
function getAsString: AnsiString; |
260 |
|
function getAsDouble: double; |
261 |
|
function getAsBCD: TBCD; |
327 |
|
function GetMessage: AnsiString; |
328 |
|
function CheckStatusVector(ErrorCodes: array of TFBStatusCode): Boolean; |
329 |
|
function GetIBDataBaseErrorMessages: TIBDataBaseErrorMessages; |
330 |
+ |
function Clone: IStatus; |
331 |
|
procedure SetIBDataBaseErrorMessages(Value: TIBDataBaseErrorMessages); |
332 |
|
end; |
333 |
|
|
906 |
|
|
907 |
|
TTransactionAction = (TARollback, TACommit, TACommitRetaining, TARollbackRetaining); |
908 |
|
TTransactionCompletion = TARollback.. TACommit; |
909 |
+ |
TTrCompletionState = (trCommitted, trRolledback, trCommitFailed, trRollbackFailed); |
910 |
+ |
|
911 |
|
|
912 |
|
ITransaction = interface |
913 |
|
['{30928d0e-a9d7-4c61-b7cf-14f4f38abe2a}'] |
919 |
|
function GetJournalingActive(attachment: IAttachment): boolean; |
920 |
|
function GetDefaultCompletion: TTransactionCompletion; |
921 |
|
procedure PrepareForCommit; {Two phase commit - stage 1} |
922 |
< |
procedure Commit(Force: boolean=false); |
922 |
> |
function Commit(Force: boolean=false): TTrCompletionState; |
923 |
|
procedure CommitRetaining; |
924 |
|
function HasActivity: boolean; |
925 |
< |
procedure Rollback(Force: boolean=false); |
925 |
> |
function Rollback(Force: boolean=false): TTrCompletionState; |
926 |
|
procedure RollbackRetaining; |
927 |
|
function GetAttachmentCount: integer; |
928 |
|
function GetAttachment(index: integer): IAttachment; |
961 |
|
['{6a0be233-ed08-4524-889c-2e45d0c20e5f}'] |
962 |
|
procedure GetEvents(EventNames: TStrings); |
963 |
|
procedure SetEvents(EventNames: TStrings); overload; |
964 |
< |
procedure SetEvents(EventName: AnsiString); overload; |
964 |
> |
procedure SetEvents(EventName: string); overload; |
965 |
|
procedure Cancel; |
966 |
|
function ExtractEventCounts: TEventCounts; |
967 |
|
procedure WaitForEvent; |
1616 |
|
begin |
1617 |
|
inherited Create(aStatus.Getsqlcode,aStatus.GetMessage); |
1618 |
|
FIBErrorCode := aStatus.GetIBErrorCode; |
1619 |
< |
FStatus := aStatus; |
1619 |
> |
FStatus := aStatus.Clone; |
1620 |
|
end; |
1621 |
|
|
1622 |
|
constructor EIBInterBaseError.Create(ASQLCode: Long; AIBErrorCode: Long; |