[jboss-cvs] JBossAS SVN: r73251 - projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon May 12 00:16:33 EDT 2008


Author: xhuang at jboss.com
Date: 2008-05-12 00:16:33 -0400 (Mon, 12 May 2008)
New Revision: 73251

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-12 02:29:53 UTC (rev 73250)
+++ projects/docs/trunk/AS_4/Server_Configuration_Guide/zh-CN/The_CMP_Engine.po	2008-05-12 04:16:33 UTC (rev 73251)
@@ -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-12 12:08+1000\n"
+"PO-Revision-Date: 2008-05-12 14:15+1000\n"
 "Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -3245,17 +3245,15 @@
 "database connections are obtained from the datasource. Having different "
 "datasources for entities is not recommended, as it vastly constrains the "
 "domain over which finders and <literal>ejbSelect</literal>s can query."
-msgstr ""
+msgstr "<emphasis role=\"bold\">datasource</emphasis>:这个可选元素指定用来查找数据源的 <literal>jndi-name</literal>。所有的数据库连接都从数据源获得。我们不推荐 entity 拥有多个数据源,因为这会极大地限制 finders 和 <literal>ejbSelect</literal> 可以查找的范围。"
 
 #. Tag: para
 #: The_CMP_Engine.xml:791
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<emphasis role=\"bold\">datasourcemapping</emphasis>: This optional element "
 "allows one to specify the name of the <literal>type-mapping</literal> to use."
-msgstr ""
-"<emphasis role=\"bold\">PartitionName</emphasis> 是用来指定节点名称的可选属"
-"性。它的缺省值是 <literal>DefaultPartition</literal>。"
+msgstr "<emphasis role=\"bold\">datasourcemapping</emphasis>:这是一个可选元素,它允许你指定所使用的 <literal>type-mapping</literal> 的名字。"
 
 #. Tag: para
 #: The_CMP_Engine.xml:796
@@ -3267,7 +3265,7 @@
 "before creating the table. If a table is found, it is logged, and the table "
 "is not created. This option is very useful during the early stages of "
 "development when the table structure changes often."
-msgstr ""
+msgstr "<emphasis role=\"bold\">create-table</emphasis>:这个可选元素如果为 true,表示 JBoss 应该试图为这个关系创建一个表。当应用程序被部署时,JBoss 会在创建表之前检查它是否已经存在。如果已经存在,JBoss 将登记日志并不再创建。这个选项在部署早期表结构经常改变时很有用处。"
 
 #. Tag: para
 #: The_CMP_Engine.xml:806
@@ -3279,6 +3277,8 @@
 "during the early stages of development when the table structure changes "
 "often."
 msgstr ""
+"<emphasis role=\"bold\">remove-table</emphasis>:这个可选元素如果为 true,表示在卸载应用程序时 JBoss 应该试图删除 <literal>relation-table</"
+"literal>。这个选项在部署早期表结构经常改变时很有用处。"
 
 #. Tag: para
 #: The_CMP_Engine.xml:811
@@ -3291,23 +3291,23 @@
 "<literal>row-locking-template</literal> in the <literal>datasource-mapping</"
 "literal> used by this entity."
 msgstr ""
+"<emphasis role=\"bold\">row-locking</emphasis>:这个可选元素如果为 true,表示 JBoss 应该锁定在事务里加载的所有记录。在载入 entity 时,大多数数据库都用 <literal>SELECT FOR UPDATE</literal> 语法来实现这一点,但实际的语法由 entity 使用的 <literal>datasource-mapping</"
+"literal> 里的 <literal>row-locking-template</literal> 所决定。"
 
 #. Tag: para
 #: The_CMP_Engine.xml:816
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<emphasis role=\"bold\">pk-constraint</emphasis>: This optional element if "
 "true indicates JBoss should add a primary key constraint when creating "
 "tables."
-msgstr ""
-"<emphasis role=\"bold\">description</emphasis>:这个元素指定操作的易读的描"
-"述。"
+msgstr "<emphasis role=\"bold\">pk-constraint</emphasis>:这个可选元素如果为 true,表示在创建表时 JBoss 应该添加一个主键约束。"
 
 #. Tag: title
 #: The_CMP_Engine.xml:828
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Queries"
-msgstr "子查询"
+msgstr "查询"
 
 #. Tag: para
 #: The_CMP_Engine.xml:829
@@ -3321,13 +3321,13 @@
 "return any entity type or just one field of the entity. EJB-QL is the query "
 "language used to specify finders and select methods in a platform "
 "independent way."
-msgstr ""
+msgstr "Entity bean 允许两种类型的查询:finder 和 select。finder 提供对 bean 的客户的查询。select 方法则提供对 entity 实现的查询语句。不象 finder 只能返回和所定义的 home 接口相同类型的 entity,select 方法可以返回任何类型的 entity 或者仅是 entity 的一个字段。EJB-QL 是用来以独立于平台的方式指定 finder 和 select 的查询语言。"
 
 #. Tag: title
 #: The_CMP_Engine.xml:833
 #, no-c-format
 msgid "Finder and select Declaration"
-msgstr ""
+msgstr "Finder 和 select 的声明"
 
 #. Tag: para
 #: The_CMP_Engine.xml:834
@@ -3341,7 +3341,7 @@
 "suffix here is not required. It is simply a naming convention used here to "
 "differentiate the different types of query specifications we will be looking "
 "at."
-msgstr ""
+msgstr "Finder 的声明在 CMP 2.0 里没有变化。Finder 仍然在 entity 的 home 接口(local 或 remote)里进行声明。下面的代码声明了 <literal>GangsterHome</literal> 接口上的 <literal>findBadDudes_ejbql</literal> finder。这里所使用的命名规则用来区分不同的查询类型。"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:837
@@ -3353,6 +3353,11 @@
 "    Collection findBadDudes_ejbql(int badness) throws FinderException;\n"
 "}"
 msgstr ""
+"public interface GangsterHome \n"
+"    extends EJBLocalHome \n"
+"{\n"
+"    Collection findBadDudes_ejbql(int badness) throws FinderException;\n"
+"}"
 
 #. Tag: para
 #: The_CMP_Engine.xml:838
@@ -3362,7 +3367,7 @@
 "public and abstract just like CMP and CMR field abstract accessors and must "
 "throw a <literal>FinderException</literal>. The following code declares an "
 "select method:"
-msgstr ""
+msgstr "Select 方法在 entity 实现类进行声明,且必须为 public 和 abstract,就象 CMP 和 CMR 字段的 abstract accessor 一样,它也必须抛出 <literal>FinderException</literal>。下面的代码声明了一个 select 方法:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:841
@@ -3375,12 +3380,18 @@
 "        throws FinderException;\n"
 "}"
 msgstr ""
+"public abstract class GangsterBean \n"
+"    implements EntityBean \n"
+"{\n"
+"    public abstract Set ejbSelectBoss_ejbql(String name)\n"
+"        throws FinderException;\n"
+"}"
 
 #. Tag: title
 #: The_CMP_Engine.xml:845
 #, no-c-format
 msgid "EJB-QL Declaration"
-msgstr ""
+msgstr "EJB-QL 声明"
 
 #. Tag: para
 #: The_CMP_Engine.xml:846
@@ -3393,6 +3404,8 @@
 "<literal>findBadDudes_ejbql</literal> and <literal>ejbSelectBoss_ejbql</"
 "literal> queries:"
 msgstr ""
+"每个 select 或 finder 方法(除了 <literal>findByPrimaryKey</literal>)都必须在 <literal>ejb-jar.xml</literal> 文件里定义一个 EJB-QL 查询。EJB-QL 查询在 entity 元素的 query 元素里进行定义。下面是对 <literal>findBadDudes_ejbql</literal> 和 <literal>ejbSelectBoss_ejbql</"
+"literal> 查询的声明:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:849
@@ -3478,7 +3491,7 @@
 msgid ""
 "EJB-QL is similar to SQL but has some surprising differences. The following "
 "are some important things to note about EJB-QL:"
-msgstr ""
+msgstr "EJB-QL 和 SQL 类似,但它有一些令人惊讶的区别。下面是 EJB-QL 一些值得注意的东西:"
 
 #. Tag: para
 #: The_CMP_Engine.xml:855
@@ -3486,7 +3499,7 @@
 msgid ""
 "EJB-QL is a typed language, meaning that it only allows comparison of like "
 "types (i.e., strings can only be compared with strings)."
-msgstr ""
+msgstr "EJB-QL 是一个强类型的语言,这意味着它只允许同类型间的比较(也就是说,字符串只能和字符串比较)。"
 
 #. Tag: para
 #: The_CMP_Engine.xml:860
@@ -3494,7 +3507,7 @@
 msgid ""
 "In an equals comparison a variable (single valued path) must be on the left "
 "hand side. Some examples follow:"
-msgstr ""
+msgstr "在等式里,变量必须在左侧。下面是一些例子:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:865
@@ -3524,7 +3537,7 @@
 msgid ""
 "Parameters are only allowed on the right hand side of a comparison. For "
 "example:"
-msgstr ""
+msgstr "参数只被允许在等式的右边。例如:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:878
@@ -3533,6 +3546,8 @@
 "gangster.hangout.state = ?1 <emphasis>Legal</emphasis>\n"
 "?1 = gangster.hangout.state <emphasis>NOT Legal</emphasis>"
 msgstr ""
+"gangster.hangout.state = ?1 <emphasis>正确</emphasis>\n"
+"?1 = gangster.hangout.state <emphasis>错误</emphasis>"
 
 #. Tag: title
 #: The_CMP_Engine.xml:882




More information about the jboss-cvs-commits mailing list