[jboss-cvs] JBossAS SVN: r73338 - projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue May 13 05:18:40 EDT 2008
Author: xhuang at jboss.com
Date: 2008-05-13 05:18:40 -0400 (Tue, 13 May 2008)
New Revision: 73338
Modified:
projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/The_CMP_Engine.po
Log:
update
Modified: projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/The_CMP_Engine.po
===================================================================
--- projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/The_CMP_Engine.po 2008-05-13 08:19:05 UTC (rev 73337)
+++ projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/The_CMP_Engine.po 2008-05-13 09:18:40 UTC (rev 73338)
@@ -9,7 +9,7 @@
"Project-Id-Version: The_CMP_Engine\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2007-11-05 06:04+0000\n"
-"PO-Revision-Date: 2008-05-13 14:20+1000\n"
+"PO-Revision-Date: 2008-05-13 19:18+1000\n"
"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
"Language-Team: <en at li.org>\n"
"MIME-Version: 1.0\n"
@@ -3529,7 +3529,7 @@
#: The_CMP_Engine.xml:868
#, no-c-format
msgid "Parameters use a base 1 index like java.sql.PreparedStatement."
-msgstr "参数可以使用索引如 java.sql.PreparedStatement。"
+msgstr "参数可以使用基于 1 的索引如 java.sql.PreparedStatement。"
#. Tag: para
#: The_CMP_Engine.xml:873
@@ -4024,50 +4024,42 @@
#. Tag: para
#: The_CMP_Engine.xml:1006
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"bold\">from</emphasis>: The <literal>from</literal> element "
"declares additional SQL to append to the generated <literal>FROM</literal> "
"clause."
-msgstr ""
-"<emphasis role=\"bold\">display-name</emphasis>:<literal>display-name</"
-"literal>元素指定一个易于使用的名字。"
+msgstr "<emphasis role=\"bold\">from</emphasis>:<literal>from</literal> 元素声明附加在生成的 <literal>FROM</literal> 子句后面的额外的 SQL。"
#. Tag: para
#: The_CMP_Engine.xml:1011
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"bold\">where</emphasis>: The <literal>where</literal> "
"element declares the <literal>WHERE</literal> clause for the query."
-msgstr ""
-"<emphasis role=\"bold\">display-name</emphasis>:<literal>display-name</"
-"literal>元素指定一个易于使用的名字。"
+msgstr "<emphasis role=\"bold\">where</emphasis>:<literal>where</literal> 元素声明用于查询的 <literal>WHERE</literal> 子句。"
#. Tag: para
#: The_CMP_Engine.xml:1016
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"bold\">order</emphasis>: The <literal>order</literal> "
"element declares the <literal>ORDER</literal> clause for the query."
-msgstr ""
-"<emphasis role=\"bold\">display-name</emphasis>:<literal>display-name</"
-"literal>元素指定一个易于使用的名字。"
+msgstr "<emphasis role=\"bold\">order</emphasis>:<literal>order</literal> 元素声明查询语句的 <literal>ORDER</literal> 子句。"
#. Tag: para
#: The_CMP_Engine.xml:1021
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<emphasis role=\"bold\">other</emphasis>: The <literal>other</literal> "
"element declares additional SQL that is appended to the end of the query."
-msgstr ""
-"<emphasis role=\"bold\">display-name</emphasis>:<literal>display-name</"
-"literal>元素指定一个易于使用的名字。"
+msgstr "<emphasis role=\"bold\">other</emphasis>:<literal>other</literal> 元素声明附加在查询语句后面的额外 SQL。"
#. Tag: para
#: The_CMP_Engine.xml:1026
-#, fuzzy, no-c-format
+#, no-c-format
msgid "The following is an example DeclaredSQL declaration."
-msgstr "下面的形式可以解决字段名重复:"
+msgstr "下面是一个 DeclaredSQL 声明的例子。"
#. Tag: programlisting
#: The_CMP_Engine.xml:1029
@@ -4253,6 +4245,10 @@
"literal> declaration. The DeclaredSQL declaration can also be used in select "
"methods to select a CMP field."
msgstr ""
+"请注意 <literal>FROM</literal> 子句由逗号开始。这是因为容器把声明的 <literal>FROM</literal> 子句附加在生成的 <literal>FROM</literal> 子句后面。<literal>FROM</literal> 子句也可能以 SQL <literal>JOIN</"
+"literal> 语句开始。既然这是一个 select 方法,它必须用 <literal>select</literal> 元素来声明要选择的 entity。请注意,查询也会声明一个别名。如果没有声明别名,<literal>table-name</literal> 将作为别名使用,这会生成带有 <literal>table_name."
+"field_name</literal> 风格的列声明的 <literal>SELECT</literal> 子句。但不是所有的数据库厂商都支持这种语法,所以最好是声明别名。可选的空的 <literal>distinct</literal> 元素使 <literal>SELECT</literal> 子句使用 <literal>SELECT DISTINCT</"
+"literal> 声明。select 方法也可以用 DeclaredSQL 声明来查询 CMP 字段。"
#. Tag: para
#: The_CMP_Engine.xml:1045
@@ -4264,7 +4260,7 @@
#. Tag: programlisting
#: The_CMP_Engine.xml:1048
-#, fuzzy, no-c-format
+#, no-c-format
msgid ""
"<jbosscmp-jdbc>\n"
" <enterprise-beans>\n"
@@ -4292,31 +4288,31 @@
" </enterprise-beans>\n"
"</jbosscmp-jdbc>"
msgstr ""
-"<jboss> \n"
+"<jbosscmp-jdbc>\n"
" <enterprise-beans>\n"
-" <session> \n"
-" <ejb-name>nextgen.StatefulSession</ejb-"
-"name> \n"
-" <jndi-name>nextgen.StatefulSession</jndi-"
-"name> \n"
-" <clustered>True</clustered> \n"
-" <cluster-config> \n"
-" <partition-name>DefaultPartition</partition-"
-"name>\n"
-" <home-load-balance-policy> \n"
-" org.jboss.ha.framework.interfaces.RoundRobin \n"
-" </home-load-balance-policy> \n"
-" <bean-load-balance-policy> \n"
-" org.jboss.ha.framework.interfaces."
-"FirstAvailable \n"
-" </bean-load-balance-policy> \n"
-" <session-state-manager-jndi-name> \n"
-" /HASessionState/Default \n"
-" </session-state-manager-jndi-name> \n"
-" </cluster-config> \n"
-" </session> \n"
+" <entity>\n"
+" <ejb-name>OrganizationEJB</ejb-name>\n"
+" <query>\n"
+" <query-method>\n"
+" <method-name>"
+"ejbSelectOperatingZipCodes_declaredsql</method-name>\n"
+" <method-params>\n"
+" <method-param>java.lang.String</method-"
+"param>\n"
+" </method-params>\n"
+" </query-method>\n"
+" <emphasis role=\"bold\"><declared-sql> <select> "
+"<distinct/> <ejb-name>LocationEJB</ejb-name> <field-"
+"name>zipCode</field-name> <alias>hangout</alias> </"
+"select> <from><![CDATA[ , organization o, gangster g ]]></"
+"from> <where><![CDATA[ LCASE(o.name) = {0} AND o.name = g."
+"organization AND g.hangout = hangout.id ]]></where> <order>"
+"<![CDATA[ hangout.zip ]]></order> </declared-sql></"
+"emphasis>\n"
+" </query>\n"
+" </entity>\n"
" </enterprise-beans>\n"
-"</jboss>"
+"</jbosscmp-jdbc>"
#. Tag: para
#: The_CMP_Engine.xml:1049
@@ -4354,7 +4350,7 @@
"entity and DVC parameters. Parameters are enclosed in curly brackets and use "
"a zero-based index, which is different from the one-based EJB-QL parameters. "
"There are three categories of parameters: simple, DVC, and entity."
-msgstr ""
+msgstr "DeclaredSQL 使用一个全新的参数处理系统,它支持 entity 和 DVC 参数。参数括在花括号里且使用基于 0 的索引,这和基于 1 的 EJB-QL 的参数不同。它有 3 中参数类别:simple、DVC 和 entity。"
#. Tag: para
#: The_CMP_Engine.xml:1060
More information about the jboss-cvs-commits
mailing list