« CommitLongTranEx (CM) » : différence entre les versions
(Nouvelle page : <source lang='delphi'>procedure CommitlongTranEx(iOptions:TCommitOptions);</source> Cette procédure valide une transaction longue. {|class="wikitable" |- |iOption |Option de valid...) |
Aucun résumé des modifications |
||
Ligne 19 : | Ligne 19 : | ||
begin | begin | ||
doProcessItem(idx); | doProcessItem(idx); | ||
ClassManager. | ClassManager.BatchLongTranEx(coNoCumul); | ||
end; | end; | ||
ClassManager. | ClassManager.CommitLongTranEx(coNoCummul); | ||
except | except | ||
ClassManager.RollBackLongTran; | ClassManager.RollBackLongTran; |
Dernière version du 19 juillet 2009 à 15:19
<source lang='delphi'>procedure CommitlongTranEx(iOptions:TCommitOptions);</source>
Cette procédure valide une transaction longue.
iOption | Option de validation
Voir CommitEx |
Exemple <source lang='delphi'> 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; </source>
Voir aussi
{{#if:Gestion des transactions (CM)|
{{#if:Gestion des transactions (CM)|— Gestion des transactions (CM) |}} — Développement DSM —
|
{{#if:|— [[{{{1}}}]] |}} — Développement DSM —
}}