<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://frp.sage.fr/wiki1000/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=BeginLongTranWithClassLocks_%28CM%29</id>
		<title>BeginLongTranWithClassLocks (CM) - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="https://frp.sage.fr/wiki1000/index.php?action=history&amp;feed=atom&amp;title=BeginLongTranWithClassLocks_%28CM%29"/>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=BeginLongTranWithClassLocks_(CM)&amp;action=history"/>
		<updated>2026-05-09T08:10:54Z</updated>
		<subtitle>Historique pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.18.6</generator>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=BeginLongTranWithClassLocks_(CM)&amp;diff=12087&amp;oldid=prev</id>
		<title>Syfre le 13 février 2018 à 09:14</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=BeginLongTranWithClassLocks_(CM)&amp;diff=12087&amp;oldid=prev"/>
				<updated>2018-02-13T09:14:25Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Version précédente&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Version du 13 février 2018 à 09:14&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 1 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{Version800}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang='delphi'&amp;gt;procedure BeginTranLongTranWithClassLocks(iBatchSize:Integer; iParam:Variant; iLockOpe:Integer; const iClassToLock:Array of string);&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;source lang='delphi'&amp;gt;procedure BeginTranLongTranWithClassLocks(iBatchSize:Integer; iParam:Variant; iLockOpe:Integer; const iClassToLock:Array of string);&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 46 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 48 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category:ClassManager]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category:ClassManager]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category:CMT]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[category:CMT]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Version800]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	<entry>
		<id>https://frp.sage.fr/wiki1000/index.php?title=BeginLongTranWithClassLocks_(CM)&amp;diff=12085&amp;oldid=prev</id>
		<title>Syfre : Page créée avec « &lt;source lang='delphi'&gt;procedure BeginTranLongTranWithClassLocks(iBatchSize:Integer; iParam:Variant; iLockOpe:Integer; const iClassToLock:Array of string);&lt;/source&gt;  Démar... »</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=BeginLongTranWithClassLocks_(CM)&amp;diff=12085&amp;oldid=prev"/>
				<updated>2018-02-13T09:09:25Z</updated>
		
		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;procedure BeginTranLongTranWithClassLocks(iBatchSize:Integer; iParam:Variant; iLockOpe:Integer; const iClassToLock:Array of string);&amp;lt;/source&amp;gt;  Démar... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang='delphi'&amp;gt;procedure BeginTranLongTranWithClassLocks(iBatchSize:Integer; iParam:Variant; iLockOpe:Integer; const iClassToLock:Array of string);&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Démarre une transaction longue en posant des verrous de classe.&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|iBatchSize&lt;br /&gt;
|Taille de lot minimum.&lt;br /&gt;
Zéro pour utiliser la valeur par défaut.&lt;br /&gt;
|-&lt;br /&gt;
|iParam&lt;br /&gt;
|Paramètre indiquant une classe métier.&lt;br /&gt;
Ce paramètre peut être :&lt;br /&gt;
*Une instance d'objet, la classe de l'instance est utilisée.&lt;br /&gt;
*Un chaîne nom de classe.&lt;br /&gt;
|-&lt;br /&gt;
|iLockOpe&lt;br /&gt;
|Indique l'identifiant de verrou de classe qui sera posé&lt;br /&gt;
|-&lt;br /&gt;
|iClassToLock&lt;br /&gt;
|Indique un ensemble de classe sur lesquelles seront posés les verrous&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Les verrous de classe sont posés avant le démarrage de la transaction et sont maintenus jusqu'au commit ou rollback de la transaction.&lt;br /&gt;
&lt;br /&gt;
Cette fonction peut échouer si les verrous ne peuvent pas être posés du fait de la concurrence d'accès. &lt;br /&gt;
&lt;br /&gt;
{{warning|Si vous posez des verrous sur un ensemble de classe, faite attention à toujours utiliser le même ordre pour éviter des situations de verrous mortels.}}&lt;br /&gt;
&lt;br /&gt;
Exemple&lt;br /&gt;
&amp;lt;source lang='delphi'&amp;gt;&lt;br /&gt;
//Procedure _NeedTransaction(aClasse:String; aTranCount:Integer);&lt;br /&gt;
begin&lt;br /&gt;
  if ClassManager.TranCount=0 then&lt;br /&gt;
   begin&lt;br /&gt;
     ClassManager.BeginLongTranWithClassLocks(0,aClasse,cSecureLogOpe,['JSPieceFacturationVente','JSFacturationDetail']); &lt;br /&gt;
   end; &lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Voir aussi :&lt;br /&gt;
&lt;br /&gt;
* [[BeginLongTran (CM)|BeginLongTran]]&lt;br /&gt;
&lt;br /&gt;
{{Footer|Gestion des transactions (CM)}}&lt;br /&gt;
[[category:ClassManager]]&lt;br /&gt;
[[category:CMT]]&lt;/div&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	</feed>