CommitLongTran (CM)

De Wiki1000
procedure CommitlongTran;

Cette procédure valide une transaction longue.

Pas de paramètre.

Exemple

var idx:Integer;
begin
  ClassManager.BeginLonTran(100,'MaClass');
  try
    for idx:=0 to VeryBigInt do
     begin
       doProcessItem(idx);
       ClassManager.BatchLongTran;
     end;
    ClassManager.CommitLongTran;
  except
    ClassManager.RollBackLongTran;
    raise;
  end; 
end;

Voir aussi

Gestion des transactions (CM)Développement DSM





Whos here now:   Members 0   Guests 0   Bots & Crawlers 1
 
Outils personnels