[hibernate-commits] Hibernate SVN: r12748 - in core/trunk/documentation/manual: es-ES/src/main/docbook/modules and 5 other directories.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Sun Jul 8 05:24:39 EDT 2007


Author: d.plentz
Date: 2007-07-08 05:24:38 -0400 (Sun, 08 Jul 2007)
New Revision: 12748

Modified:
   core/trunk/documentation/manual/en-US/src/main/docbook/modules/performance.xml
   core/trunk/documentation/manual/en-US/src/main/docbook/modules/query_hql.xml
   core/trunk/documentation/manual/es-ES/src/main/docbook/modules/performance.xml
   core/trunk/documentation/manual/es-ES/src/main/docbook/modules/query_hql.xml
   core/trunk/documentation/manual/fr-FR/src/main/docbook/modules/performance.xml
   core/trunk/documentation/manual/fr-FR/src/main/docbook/modules/query_hql.xml
   core/trunk/documentation/manual/ja-JP/src/main/docbook/modules/performance.xml
   core/trunk/documentation/manual/ja-JP/src/main/docbook/modules/query_hql.xml
   core/trunk/documentation/manual/ko-KR/src/main/docbook/modules/performance.xml
   core/trunk/documentation/manual/ko-KR/src/main/docbook/modules/query_hql.xml
   core/trunk/documentation/manual/pt-BR/src/main/docbook/modules/performance.xml
   core/trunk/documentation/manual/pt-BR/src/main/docbook/modules/query_hql.xml
   core/trunk/documentation/manual/zh-CN/src/main/docbook/modules/performance.xml
   core/trunk/documentation/manual/zh-CN/src/main/docbook/modules/query_hql.xml
Log:
[HHH-2201] session.iterate() does not exist

Modified: core/trunk/documentation/manual/en-US/src/main/docbook/modules/performance.xml
===================================================================
--- core/trunk/documentation/manual/en-US/src/main/docbook/modules/performance.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/en-US/src/main/docbook/modules/performance.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -351,7 +351,7 @@
             </para>
 
             <programlisting><![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);
-Iterator iter = session.iterate("from CatImpl as cat where cat.name='fritz'");
+Iterator iter = session.createQuery("from CatImpl as cat where cat.name='fritz'").iterate();
 Cat fritz = (Cat) iter.next();]]></programlisting>
 
             <para>

Modified: core/trunk/documentation/manual/en-US/src/main/docbook/modules/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/en-US/src/main/docbook/modules/query_hql.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/en-US/src/main/docbook/modules/query_hql.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -1085,7 +1085,7 @@
             You can count the number of query results without actually returning them:
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue()]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue()]]></programlisting>
 
         <para>
             To order a result by the size of a collection, use the following query:
@@ -1153,7 +1153,7 @@
             You can find the size of a collection without initializing it:
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue();]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue();]]></programlisting>
 
     </sect1>
 

Modified: core/trunk/documentation/manual/es-ES/src/main/docbook/modules/performance.xml
===================================================================
--- core/trunk/documentation/manual/es-ES/src/main/docbook/modules/performance.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/es-ES/src/main/docbook/modules/performance.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -315,7 +315,7 @@
             </para>
 
             <programlisting><![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);
-Iterator iter = session.iterate("from CatImpl as cat where cat.name='fritz'");
+Iterator iter = session.createQuery("from CatImpl as cat where cat.name='fritz'").iterate();
 Cat fritz = (Cat) iter.next();]]></programlisting>
 
             <para>

Modified: core/trunk/documentation/manual/es-ES/src/main/docbook/modules/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/es-ES/src/main/docbook/modules/query_hql.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/es-ES/src/main/docbook/modules/query_hql.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -1031,7 +1031,7 @@
             Puedes contar el n&#x00fa;mero de resultados de una consulta sin devolverlos realmente:
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue()]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue()]]></programlisting>
 
         <para>
             Para ordenar un resultado por el tama&#x00f1;o de una colecci&#x00f3;n, usa la siguiente consulta:
@@ -1099,7 +1099,7 @@
             Puedes hallar el tama&#x00f1;o de una colecci&#x00f3;n sin inicializarla:
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue();]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue();]]></programlisting>
 
     </sect1>
 

Modified: core/trunk/documentation/manual/fr-FR/src/main/docbook/modules/performance.xml
===================================================================
--- core/trunk/documentation/manual/fr-FR/src/main/docbook/modules/performance.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/fr-FR/src/main/docbook/modules/performance.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -369,7 +369,7 @@
         </para>
 
         <programlisting><![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);
-Iterator iter = session.iterate("from CatImpl as cat where cat.name='fritz'");
+Iterator iter = session.createQuery("from CatImpl as cat where cat.name='fritz'").iterate();
 Cat fritz = (Cat) iter.next();]]></programlisting>
         
         <para>

Modified: core/trunk/documentation/manual/fr-FR/src/main/docbook/modules/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/fr-FR/src/main/docbook/modules/query_hql.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/fr-FR/src/main/docbook/modules/query_hql.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -1074,7 +1074,7 @@
             Vous pouvez compter le nombre de résultats d'une requête sans les retourner :
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue()]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue()]]></programlisting>
 
         <para>
             Pour trier les résultats par la taille d'une collection, utilisez la requête suivante :
@@ -1142,7 +1142,7 @@
             Vous pouvez récupérer la taille d'une collection sans l'initialiser :
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue();]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue();]]></programlisting>
 
     </sect1>
 

Modified: core/trunk/documentation/manual/ja-JP/src/main/docbook/modules/performance.xml
===================================================================
--- core/trunk/documentation/manual/ja-JP/src/main/docbook/modules/performance.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/ja-JP/src/main/docbook/modules/performance.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -347,7 +347,7 @@
             </para>
 
             <programlisting><![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);
-Iterator iter = session.iterate("from CatImpl as cat where cat.name='fritz'");
+Iterator iter = session.createQuery("from CatImpl as cat where cat.name='fritz'").iterate();
 Cat fritz = (Cat) iter.next();]]></programlisting>
 
             <para>

Modified: core/trunk/documentation/manual/ja-JP/src/main/docbook/modules/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/ja-JP/src/main/docbook/modules/query_hql.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/ja-JP/src/main/docbook/modules/query_hql.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -1056,7 +1056,7 @@
             ŽÀÛ‚ÉŒ‹‰Ê‚ð•Ô‚³‚È‚­‚Ä‚àƒNƒGƒŠ‚ÌŒ‹‰Ê”‚𐔂¦‚邱‚Æ‚ª‚Å‚«‚Ü‚·B:
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue()]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue()]]></programlisting>
 
         <para>
             ƒRƒŒƒNƒVƒ‡ƒ“‚̃TƒCƒY‚É‚æ‚茋‰Ê‚ð•À‚בւ¦‚邽‚߂ɂ͈ȉº‚̃NƒGƒŠ‚ðŽg—p‚µ‚Ü‚·B:
@@ -1123,7 +1123,7 @@
             ƒRƒŒƒNƒVƒ‡ƒ“‚ð‰Šú‰»‚¹‚¸‚ɃRƒŒƒNƒVƒ‡ƒ“‚̃TƒCƒY‚𓾂邱‚Æ‚ª‚Å‚«‚Ü‚·B: 
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue();]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue();]]></programlisting>
 
     </sect1>
 

Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/modules/performance.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/modules/performance.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/modules/performance.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -315,7 +315,7 @@
             </para>
 
             <programlisting><![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);
-Iterator iter = session.iterate("from CatImpl as cat where cat.name='fritz'");
+Iterator iter = session.createQuery("from CatImpl as cat where cat.name='fritz'").iterate();
 Cat fritz = (Cat) iter.next();]]></programlisting>
 
             <para>

Modified: core/trunk/documentation/manual/ko-KR/src/main/docbook/modules/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/ko-KR/src/main/docbook/modules/query_hql.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/ko-KR/src/main/docbook/modules/query_hql.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -1032,7 +1032,7 @@
                         당신은 실제로 질의 결과들을 반환하지 않고서 그것들(질의 결과들)의 개수를 카운트할 수  있다:
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue()]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue()]]></programlisting>
 
         <para>
                         콜렉션의 크기에 따라 결과를 순서(ordering)지우려면, 다음 질의를 사용하라:
@@ -1099,7 +1099,7 @@
                         당신은 콜렉션을 초기화 하지 않고서 그것(콜렉션)의 크기를 찾을 수 있다:
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue();]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue();]]></programlisting>
 
     </sect1>
 

Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/modules/performance.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/modules/performance.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/modules/performance.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -346,7 +346,7 @@
             </para>
 
             <programlisting><![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);
-Iterator iter = session.iterate("from CatImpl as cat where cat.name='fritz'");
+Iterator iter = session.createQuery("from CatImpl as cat where cat.name='fritz'").iterate();
 Cat fritz = (Cat) iter.next();]]></programlisting>
 
             <para>

Modified: core/trunk/documentation/manual/pt-BR/src/main/docbook/modules/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/pt-BR/src/main/docbook/modules/query_hql.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/pt-BR/src/main/docbook/modules/query_hql.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -1085,7 +1085,7 @@
             Pode-se contar o número de resultados da query, sem realmente retorna-los.
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue()]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue()]]></programlisting>
 
         <para>
             Para ordenar um resultado pelo tamanho de uma Collection, use a query a seguir.
@@ -1154,7 +1154,7 @@
             Pode-se achar o tamanho de uma Collection sem inicializa-la:
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue();]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue();]]></programlisting>
 
     </sect1>
 

Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/modules/performance.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/modules/performance.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/modules/performance.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -310,7 +310,7 @@
             </para>
 
             <programlisting><![CDATA[Cat cat = (Cat) session.load(CatImpl.class, catid);
-Iterator iter = session.iterate("from CatImpl as cat where cat.name='fritz'");
+Iterator iter = session.createQuery("from CatImpl as cat where cat.name='fritz'").iterate();
 Cat fritz = (Cat) iter.next();]]></programlisting>
 
             <para>

Modified: core/trunk/documentation/manual/zh-CN/src/main/docbook/modules/query_hql.xml
===================================================================
--- core/trunk/documentation/manual/zh-CN/src/main/docbook/modules/query_hql.xml	2007-07-08 09:16:48 UTC (rev 12747)
+++ core/trunk/documentation/manual/zh-CN/src/main/docbook/modules/query_hql.xml	2007-07-08 09:24:38 UTC (rev 12748)
@@ -1014,7 +1014,7 @@
             你可以统计查询结果的数目而不必实际的返回他们:
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue()]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue()]]></programlisting>
 
         <para>
             若想根据一个集合的大小来进行排序,可以使用如下的语句:
@@ -1081,7 +1081,7 @@
             不用通过初始化,你就可以知道一个集合(Collection)的大小:
         </para>
 
-        <programlisting><![CDATA[( (Integer) session.iterate("select count(*) from ....").next() ).intValue();]]></programlisting>
+        <programlisting><![CDATA[( (Integer) session.createQuery("select count(*) from ....").iterate().next() ).intValue();]]></programlisting>
 
     </sect1>
 




More information about the hibernate-commits mailing list