<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>http://wiki.sage.fr/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="http://wiki.sage.fr/index.php?action=history&amp;feed=atom&amp;title=BeginLongTranWithClassLocks_%28CM%29"/>
	<link rel="alternate" type="text/html" href="http://wiki.sage.fr/index.php?title=BeginLongTranWithClassLocks_(CM)&amp;action=history"/>
	<updated>2026-05-25T00:26:16Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>http://wiki.sage.fr/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="http://wiki.sage.fr/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 style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&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; id=&quot;mw-diff-left-l1&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; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;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; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;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=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&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;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&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;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l46&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=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:ClassManager]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:ClassManager]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[category:CMT]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&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; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;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>http://wiki.sage.fr/index.php?title=BeginLongTranWithClassLocks_(CM)&amp;diff=12085&amp;oldid=prev</id>
		<title>Syfre : Page créée avec « &lt;source lang=&#039;delphi&#039;&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="http://wiki.sage.fr/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=&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;&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&amp;#039;objet, la classe de l&amp;#039;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&amp;#039;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&amp;#039;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&amp;#039;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=&amp;#039;delphi&amp;#039;&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,[&amp;#039;JSPieceFacturationVente&amp;#039;,&amp;#039;JSFacturationDetail&amp;#039;]); &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>