[jboss-cvs] JBossAS SVN: r91630 - projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Jul 24 01:44:53 EDT 2009


Author: ldelima at redhat.com
Date: 2009-07-24 01:44:53 -0400 (Fri, 24 Jul 2009)
New Revision: 91630

Modified:
   projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/The_CMP_Engine.po
Log:
translation ongoing

Modified: projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/The_CMP_Engine.po
===================================================================
--- projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/The_CMP_Engine.po	2009-07-24 05:43:08 UTC (rev 91629)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/The_CMP_Engine.po	2009-07-24 05:44:53 UTC (rev 91630)
@@ -8,7 +8,7 @@
 "Project-Id-Version: The_CMP_Engine\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2009-01-20 02:37+0000\n"
-"PO-Revision-Date: 2009-07-24 15:42+1000\n"
+"PO-Revision-Date: 2009-07-24 15:44+1000\n"
 "Last-Translator: \n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -4514,7 +4514,7 @@
 #: The_CMP_Engine.xml:1080
 #, no-c-format
 msgid "EJBQL 2.1 and SQL92 queries"
-msgstr ""
+msgstr "EJBQL 2.1 and SQL92 queries"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1081
@@ -4525,6 +4525,10 @@
 "compiler. The default compiler is specified in <literal>standardjbosscmp-"
 "jdbc.xml</literal>."
 msgstr ""
+"The default query compiler doesn&#39;t fully support EJB-QL 2.1 or the SQL92 "
+"standard. If you need either of these functions, you can replace the query "
+"compiler. The default compiler is specified in <literal>standardjbosscmp-"
+"jdbc.xml</literal>."
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1084
@@ -4537,6 +4541,12 @@
 "    ...\n"
 "&lt;/defaults&gt;"
 msgstr ""
+"&lt;defaults&gt;\n"
+"    ...\n"
+"    &lt;ql-compiler&gt;org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLCompiler&lt;/"
+"ql-compiler&gt;\n"
+"    ...\n"
+"&lt;/defaults&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1085
@@ -4545,6 +4555,8 @@
 "To use the SQL92 compiler, simply specify the SQL92 compiler in <literal>ql-"
 "compiler</literal> element."
 msgstr ""
+"To use the SQL92 compiler, simply specify the SQL92 compiler in <literal>ql-"
+"compiler</literal> element."
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1088
@@ -4557,6 +4569,12 @@
 "    ...\n"
 "&lt;/defaults&gt;"
 msgstr ""
+"&lt;defaults&gt;\n"
+"    ...\n"
+"    &lt;ql-compiler&gt;org.jboss.ejb.plugins.cmp.jdbc."
+"EJBQLToSQL92Compiler&lt;/ql-compiler&gt;\n"
+"    ...\n"
+"&lt;/defaults&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1089
@@ -4566,6 +4584,9 @@
 "also specify the ql-compiler for each element in <literal>jbosscmp-jdbc.xml</"
 "literal>. Here is an example using one of our earlier queries."
 msgstr ""
+"This changes the query compiler for all beans in the entire system. You can "
+"also specify the ql-compiler for each element in <literal>jbosscmp-jdbc.xml</"
+"literal>. Here is an example using one of our earlier queries."
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1092
@@ -4587,6 +4608,21 @@
 "jdbc.EJBQLToSQL92Compiler&lt;/ql-compiler&gt;</emphasis>\n"
 "&lt;/query&gt;"
 msgstr ""
+"&lt;query&gt;\n"
+"    &lt;query-method&gt;\n"
+"        &lt;method-name&gt;findBadDudes_ejbql&lt;/method-name&gt;\n"
+"        &lt;method-params&gt;\n"
+"            lt;method-param&gt;int&lt;/method-param&gt;\n"
+"        &lt;/method-params&gt;\n"
+"    &lt;/query-method&gt;\n"
+"    &lt;ejb-ql&gt;&lt;![CDATA[\n"
+"        SELECT OBJECT(g)\n"
+"        FROM gangster g\n"
+"        WHERE g.badness &gt; ?1]]&gt;\n"
+"    &lt;/ejb-ql&gt;\n"
+"    <emphasis role=\"bold\">&lt;ql-compiler&gt;org.jboss.ejb.plugins.cmp."
+"jdbc.EJBQLToSQL92Compiler&lt;/ql-compiler&gt;</emphasis>\n"
+"&lt;/query&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1093
@@ -4602,12 +4638,21 @@
 "<literal>on-find</literal><literal>read-ahead</literal> with the default "
 "load group <literal>*</literal> works as expected."
 msgstr ""
+"One important limitation of SQL92 query compiler is that it always selects "
+"all the fields of an entity regardless the <literal>read-ahead</literal> "
+"strategy in use. For example, if a query is configured with the <literal>on-"
+"load</literal><literal>read-ahead</literal> strategy, the first query will "
+"include all the fields, not just primary key fields but only the primary key "
+"fields will be read from the <literal>ResultSet</literal>. Then, on load, "
+"other fields will be actually loaded into the read-ahead cache. The "
+"<literal>on-find</literal><literal>read-ahead</literal> with the default "
+"load group <literal>*</literal> works as expected."
 
 #. Tag: title
 #: The_CMP_Engine.xml:1099
 #, no-c-format
 msgid "BMP Custom Finders"
-msgstr ""
+msgstr "BMP Custom Finders"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1100
@@ -4620,6 +4665,12 @@
 "xml</literal> files. The following simple example finds the entities by a "
 "collection of primary keys:"
 msgstr ""
+"JBoss also supports bean managed persistence custom finders. If a custom "
+"finder method matches a finder declared in the home or local home interface, "
+"JBoss will always call the custom finder over any other implementation "
+"declared in the <literal>ejb-jar.xml</literal> or <literal>jbosscmp-jdbc."
+"xml</literal> files. The following simple example finds the entities by a "
+"collection of primary keys:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1103
@@ -4634,6 +4685,14 @@
 "    }\n"
 "}"
 msgstr ""
+"public abstract class GangsterBean\n"
+"    implements EntityBean \n"
+"{\n"
+"    public Collection ejbFindByPrimaryKeys(Collection keys)\n"
+"    {\n"
+"        return keys;\n"
+"    }\n"
+"}"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1104
@@ -4648,12 +4707,20 @@
 "and the JBoss EJB verifier will fail the deployment of such an entity unless "
 "the StrictVerifier attribute is set to false."
 msgstr ""
+"This is a very useful finder because it quickly coverts primary keys into "
+"real Entity objects without contacting the database. One drawback is that it "
+"can create an Entity object with a primary key that does not exist in the "
+"database. If any method is invoked on the bad Entity, a "
+"NoSuchEntityException will be thrown. Another drawback is that the resulting "
+"entity bean violates the EJB specification in that it implements a finder, "
+"and the JBoss EJB verifier will fail the deployment of such an entity unless "
+"the StrictVerifier attribute is set to false."
 
 #. Tag: title
 #: The_CMP_Engine.xml:1112
 #, no-c-format
 msgid "Optimized Loading"
-msgstr ""
+msgstr "Optimized Loading"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1113
@@ -4667,12 +4734,19 @@
 "understanding of the loading system, so this chapter may have to be read "
 "more than once."
 msgstr ""
+"The goal of optimized loading is to load the smallest amount of data "
+"required to complete a transaction in the fewest number of queries. The "
+"tuning of JBoss depends on a detailed knowledge of the loading process. This "
+"section describes the internals of the JBoss loading process and its "
+"configuration. Tuning of the loading process really requires a holistic "
+"understanding of the loading system, so this chapter may have to be read "
+"more than once."
 
 #. Tag: title
 #: The_CMP_Engine.xml:1117
 #, no-c-format
 msgid "Loading Scenario"
-msgstr ""
+msgstr "Loading Scenario"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1118
@@ -4683,6 +4757,10 @@
 "iterate over the results performing some operation. The following example "
 "generates an html table containing all of the gangsters:"
 msgstr ""
+"The easiest way to investigate the loading process is to look at a usage "
+"scenario. The most common scenario is to locate a collection of entities and "
+"iterate over the results performing some operation. The following example "
+"generates an html table containing all of the gangsters:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1121
@@ -4710,6 +4788,27 @@
 "    return table.toString();\n"
 "}"
 msgstr ""
+"public String createGangsterHtmlTable_none() \n"
+"    throws FinderException \n"
+"{\n"
+"    StringBuffer table = new StringBuffer();\n"
+"    table.append(\"&lt;table&gt;\");\n"
+"\n"
+"    Collection gangsters = gangsterHome.findAll_none();\n"
+"    for (Iterator iter = gangsters.iterator(); iter.hasNext();) {\n"
+"        Gangster gangster = (Gangster) iter.next();\n"
+"        table.append(\"&lt;tr&gt;\");\n"
+"        table.append(\"&lt;td&gt;\").append(gangster.getName());\n"
+"        table.append(\"&lt;/td&gt;\");\n"
+"        table.append(\"&lt;td&gt;\").append(gangster.getNickName());\n"
+"        table.append(\"&lt;/td&gt;\");\n"
+"        table.append(\"&lt;td&gt;\").append(gangster.getBadness());\n"
+"        table.append(\"&lt;/td&gt;\");\n"
+"        table.append(\"&lt;/tr&gt;\");\n"
+"    }\n"
+"\n"
+"    return table.toString();\n"
+"}"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1122
@@ -4719,6 +4818,9 @@
 "loading has been disabled. At the <literal>findAll_none</literal> call, "
 "JBoss will execute the following query:"
 msgstr ""
+"Assume this code is called within a single transaction and all optimized "
+"loading has been disabled. At the <literal>findAll_none</literal> call, "
+"JBoss will execute the following query:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1125
@@ -4728,6 +4830,9 @@
 "    FROM gangster t0_g\n"
 "    ORDER BY t0_g.id ASC"
 msgstr ""
+"SELECT t0_g.id\n"
+"    FROM gangster t0_g\n"
+"    ORDER BY t0_g.id ASC"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1126
@@ -4736,6 +4841,8 @@
 "Then as each of the eight gangster in the sample database is accessed, JBoss "
 "will execute the following eight queries:"
 msgstr ""
+"Then as each of the eight gangster in the sample database is accessed, JBoss "
+"will execute the following eight queries:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1129
@@ -4758,6 +4865,22 @@
 "SELECT name, nick_name, badness, hangout, organization\n"
 "  FROM gangster WHERE (id=7)"
 msgstr ""
+"SELECT name, nick_name, badness, hangout, organization\n"
+"  FROM gangster WHERE (id=0)\n"
+"SELECT name, nick_name, badness, hangout, organization\n"
+"  FROM gangster WHERE (id=1)\n"
+"SELECT name, nick_name, badness, hangout, organization\n"
+"  FROM gangster WHERE (id=2)\n"
+"SELECT name, nick_name, badness, hangout, organization\n"
+"  FROM gangster WHERE (id=3)\n"
+"SELECT name, nick_name, badness, hangout, organization\n"
+"  FROM gangster WHERE (id=4)\n"
+"SELECT name, nick_name, badness, hangout, organization\n"
+"  FROM gangster WHERE (id=5)\n"
+"SELECT name, nick_name, badness, hangout, organization\n"
+"  FROM gangster WHERE (id=6)\n"
+"SELECT name, nick_name, badness, hangout, organization\n"
+"  FROM gangster WHERE (id=7)"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1130




More information about the jboss-cvs-commits mailing list