<?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=FindClassTableName_%28CM%29</id>
		<title>FindClassTableName (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=FindClassTableName_%28CM%29"/>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=FindClassTableName_(CM)&amp;action=history"/>
		<updated>2026-05-01T19:26:23Z</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=FindClassTableName_(CM)&amp;diff=820&amp;oldid=prev</id>
		<title>Syfre : Nouvelle page : &lt;source lang='delphi'&gt;function FindClassTableName(const iClassName:string):string;&lt;/source&gt;  Cette fonction retrouve le nom de table d'une classe métier.  {{info|Le nom de table n'e...</title>
		<link rel="alternate" type="text/html" href="https://frp.sage.fr/wiki1000/index.php?title=FindClassTableName_(CM)&amp;diff=820&amp;oldid=prev"/>
				<updated>2009-07-19T08:41:53Z</updated>
		
		<summary type="html">&lt;p&gt;Nouvelle page : &amp;lt;source lang=&amp;#039;delphi&amp;#039;&amp;gt;function FindClassTableName(const iClassName:string):string;&amp;lt;/source&amp;gt;  Cette fonction retrouve le nom de table d&amp;#039;une classe métier.  {{info|Le nom de table n&amp;#039;e...&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;function FindClassTableName(const iClassName:string):string;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Cette fonction retrouve le nom de table d'une classe métier.&lt;br /&gt;
&lt;br /&gt;
{{info|Le nom de table n'est pas le nom de classe.}}&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Result&lt;br /&gt;
|Le nom de la table de la classe métier dans le contexte de base de données par défaut.&lt;br /&gt;
|-&lt;br /&gt;
|iClassName&lt;br /&gt;
|Une classe métier&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Exemple&lt;br /&gt;
&amp;lt;source lang='delphi'&amp;gt;&lt;br /&gt;
var vCursorUpdate:TQuery;&lt;br /&gt;
begin&lt;br /&gt;
   vCursorUpdate := QueryBroker('','TCompteGeneral','');&lt;br /&gt;
   vCursorUpdate.Sql.Clear;&lt;br /&gt;
   vCursorUpdate.Sql.Add('UPDATE');&lt;br /&gt;
   vCursorUpdate.SQL.Add(ClassManager.FindClassTableName('TCompteGeneral'));&lt;br /&gt;
   vCursorUpdate.Sql.Add('SET oidunite   = ' + vCursorUpdate.Translator.dbOutOid(vUniteCommerciale.InstanceOid));&lt;br /&gt;
   vCursorUpdate.Sql.Add('WHERE oidunite = ' + vCursorUpdate.Translator.dbOutOid(vdbfUnit.InstanceOid));&lt;br /&gt;
   vCursorUpdate.ExecSQL;&lt;br /&gt;
   vCursorUpdate.Close;&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{tip|Utiliser cette fonction pour construire les ordres SQL des requêtes.}}&lt;br /&gt;
&lt;br /&gt;
Voir aussi&lt;br /&gt;
&lt;br /&gt;
{{Footer|Gestion des bases de données (CM)}}&lt;br /&gt;
[[category:ClassManager]]&lt;br /&gt;
[[category:CMDB]]&lt;/div&gt;</summary>
		<author><name>Syfre</name></author>	</entry>

	</feed>