CommitLongTranEx (CM)
procedure CommitlongTranEx(iOptions:TCommitOptions);
Cette procédure valide une transaction longue.
| iOption | Option de validation
Voir CommitEx |
Exemple
var idx:Integer;
begin
ClassManager.BeginLonTran(100,'MaClass');
try
for idx:=0 to VeryBigInt do
begin
doProcessItem(idx);
ClassManager.BatchLongTranEx(coNoCumul);
end;
ClassManager.CommitLongTranEx(coNoCummul);
except
ClassManager.RollBackLongTran;
raise;
end;
end;
Voir aussi