115 |
|
|
116 |
|
{ TFBStatus } |
117 |
|
|
118 |
< |
TFBStatus = class(TFBInterfacedObject) |
118 |
> |
TFBStatus = class(TFBInterfacedObject, IStatus) |
119 |
|
private |
120 |
|
FIBDataBaseErrorMessages: TIBDataBaseErrorMessages; |
121 |
|
FPrefix: AnsiString; |
127 |
|
public |
128 |
|
constructor Create(aOwner: TFBClientAPI; prefix: AnsiString=''); |
129 |
|
function StatusVector: PStatusVector; virtual; abstract; |
130 |
+ |
procedure Assign(src: TFBStatus); virtual; |
131 |
+ |
function Clone: IStatus; virtual; abstract; |
132 |
|
|
133 |
|
{IStatus} |
134 |
|
function GetIBErrorCode: TStatusCode; |
250 |
|
IJournallingHook = interface |
251 |
|
['{7d3e45e0-3628-416a-9e22-c20474825031}'] |
252 |
|
procedure TransactionStart(Tr: ITransaction); |
253 |
< |
function TransactionEnd(TransactionID: integer; Action: TTransactionAction): boolean; |
253 |
> |
function TransactionEnd(TransactionID: integer; Completion: TTrCompletionState): boolean; |
254 |
|
procedure TransactionRetained(Tr: ITransaction; OldTransactionID: integer; Action: TTransactionAction); |
255 |
|
procedure ExecQuery(Stmt: IStatement); |
256 |
+ |
procedure ExecImmediateJnl(sql: AnsiString; tr: ITransaction); |
257 |
|
end; |
258 |
|
|
259 |
|
implementation |
640 |
|
FIBDataBaseErrorMessages := [ShowIBMessage]; |
641 |
|
end; |
642 |
|
|
643 |
+ |
procedure TFBStatus.Assign(src: TFBStatus); |
644 |
+ |
begin |
645 |
+ |
FOwner := src.FOwner; |
646 |
+ |
FPrefix := src.FPrefix; |
647 |
+ |
SetIBDataBaseErrorMessages(src.GetIBDataBaseErrorMessages); |
648 |
+ |
end; |
649 |
+ |
|
650 |
|
function TFBStatus.GetIBErrorCode: TStatusCode; |
651 |
|
begin |
652 |
|
Result := StatusVector^[1]; |