[jboss-cvs] JBossAS SVN: r75255 - projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jul 1 07:32:57 EDT 2008
Author: xhuang at jboss.com
Date: 2008-07-01 07:32:57 -0400 (Tue, 01 Jul 2008)
New Revision: 75255
Modified:
projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Chapter_02.po
Log:
update
Modified: projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Chapter_02.po
===================================================================
--- projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Chapter_02.po 2008-07-01 09:31:56 UTC (rev 75254)
+++ projects/docs/enterprise/4.3/Transactions/Programmers_Guide/zh-CN/Chapter_02.po 2008-07-01 11:32:57 UTC (rev 75255)
@@ -1,29 +1,32 @@
# Language zh-CN translations for JBoss_TS_Programmers_Guide package.
+#
# Automatically generated, 2008.
-#
+# Xi HUANG <xhuang at redhat.com>, 2008.
msgid ""
msgstr ""
"Project-Id-Version: JBoss_TS_Programmers_Guide 1.0\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-06-05 22:51+0000\n"
-"PO-Revision-Date: 2008-06-05 22:51+0000\n"
-"Last-Translator: Automatically generated\n"
-"Language-Team: none\n"
+"PO-Revision-Date: 2008-07-01 21:32+1000\n"
+"Last-Translator: Xi HUANG <xhuang at redhat.com>\n"
+"Language-Team: Chinese Simplified <kde-i18n-doc at lists.kde.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KAider 0.1\n"
+"Plural-Forms: nplurals=2; plural=n != 1;\n"
#. Tag: title
#: Chapter_02.xml:6
#, no-c-format
msgid "Using TxCore"
-msgstr ""
+msgstr "使用 TxCore"
#. Tag: title
#: Chapter_02.xml:9
#, no-c-format
msgid "Introduction"
-msgstr ""
+msgstr "简介"
#. Tag: para
#: Chapter_02.xml:11
@@ -33,18 +36,20 @@
"<emphasis>Transactional Objects for Java</emphasis> in more detail, and show "
"how it can be used to construct transactional applications."
msgstr ""
+"本节我们将描述 <emphasis>TxCore</emphasis> 和 <emphasis>Transactional Objects for "
+"Java</emphasis> 的更多细节,并展示如何用它们来构建事务性应用程序。"
#. Tag: title
#: Chapter_02.xml:15
#, no-c-format
msgid "State management"
-msgstr ""
+msgstr "状态管理"
#. Tag: title
#: Chapter_02.xml:18
#, no-c-format
msgid "Object States"
-msgstr ""
+msgstr "对象的状态"
#. Tag: para
#: Chapter_02.xml:20
@@ -58,12 +63,16 @@
"same mechanism - the classes <classname>Input/OutputObjectState</classname> "
"and <classname>Input/OutputBuffer</classname>."
msgstr ""
+"出于几种考虑,<classname>TxCore</classname> 需要记住对象的状态,如恢复(状态表>"
+"示对象过去的某种状态)和持久性(状态代表应用程序终止时对象的最终状态)。这些要求"
+"都具有用相同机制实现的共同功能:<classname>InputObjectState</classname> 和 <classname>"
+"OutputObjectState</classname> 类。"
#. Tag: title
#: Chapter_02.xml:22
#, no-c-format
msgid "OutputBuffer"
-msgstr ""
+msgstr "OutputBuffer"
#. Tag: programlisting
#: Chapter_02.xml:24
@@ -91,12 +100,33 @@
"public synchronized void packString (String s) throws IOException;\n"
"};"
msgstr ""
+"public class OutputBuffer\n"
+"{\n"
+"public OutputBuffer ();\n"
+"\n"
+"public final synchronized boolean valid ();\n"
+"public synchronized byte[] buffer();\n"
+"public synchronized int length ();\n"
+"\n"
+" /* pack operations for standard Java types */\n"
+"\n"
+"public synchronized void packByte (byte b) throws IOException;\n"
+"public synchronized void packBytes (byte[] b) throws IOException;\n"
+"public synchronized void packBoolean (boolean b) throws IOException;\n"
+"public synchronized void packChar (char c) throws IOException;\n"
+"public synchronized void packShort (short s) throws IOException;\n"
+"public synchronized void packInt (int i) throws IOException;\n"
+"public synchronized void packLong (long l) throws IOException;\n"
+"public synchronized void packFloat (float f) throws IOException;\n"
+"public synchronized void packDouble (double d) throws IOException;\n"
+"public synchronized void packString (String s) throws IOException;\n"
+"};"
#. Tag: title
#: Chapter_02.xml:26
#, no-c-format
msgid "InputBuffer"
-msgstr ""
+msgstr "InputBuffer"
#. Tag: programlisting
#: Chapter_02.xml:26
@@ -124,6 +154,27 @@
"public synchronized String unpackString () throws IOException;\n"
"};"
msgstr ""
+"public class InputBuffer\n"
+"{\n"
+"public InputBuffer ();\n"
+"\n"
+"public final synchronized boolean valid ();\n"
+"public synchronized byte[] buffer();\n"
+"public synchronized int length ();\n"
+"\n"
+"/* unpack operations for standard Java types */\n"
+"\n"
+"public synchronized byte unpackByte () throws IOException;\n"
+"public synchronized byte[] unpackBytes () throws IOException;\n"
+"public synchronized boolean unpackBoolean () throws IOException;\n"
+"public synchronized char unpackChar () throws IOException;\n"
+"public synchronized short unpackShort () throws IOException;\n"
+"public synchronized int unpackInt () throws IOException;\n"
+"public synchronized long unpackLong () throws IOException;\n"
+"public synchronized float unpackFloat () throws IOException;\n"
+"public synchronized double unpackDouble () throws IOException;\n"
+"public synchronized String unpackString () throws IOException;\n"
+"};"
#. Tag: para
#: Chapter_02.xml:28 Chapter_02.xml:34
@@ -136,12 +187,16 @@
"instances are all stored in the buffer in a standard form (so-called network "
"byte order) to make them machine independent."
msgstr ""
+"<classname>Input/OutputBuffer</classname> 类维护维护一个内部的数组,其中的标准类型"
+"的实例可以持续地用合适的 "
+"pack(unpack)操作进行处理。如果空间不够的话,缓冲会自动地根据需要调整大小。实例都以标准形式(所谓网络字节顺序)存储在缓冲里,这使得它们可以独立"
+"于主机类型。"
#. Tag: title
#: Chapter_02.xml:30 Chapter_02.xml:37
#, no-c-format
msgid "OutputObjectState"
-msgstr ""
+msgstr "OutputObjectState"
#. Tag: programlisting
#: Chapter_02.xml:32
@@ -175,6 +230,33 @@
"public synchronized String unpackString () throws IOException;\n"
"};"
msgstr ""
+"class OutputObjectState extends OutputBuffer\n"
+"{\n"
+"public OutputObjectState (Uid newUid, String typeName);\n"
+"\n"
+"public boolean notempty ();\n"
+"public int size ();\n"
+"public Uidpublic class InputBuffer\n"
+"{\n"
+"public InputBuffer ();\n"
+"\n"
+"public final synchronized boolean valid ();\n"
+"public synchronized byte[] buffer();\n"
+"public synchronized int length ();\n"
+"\n"
+"/* unpack operations for standard Java types */\n"
+"\n"
+"public synchronized byte unpackByte () throws IOException;\n"
+"public synchronized byte[] unpackBytes () throws IOException;\n"
+"public synchronized boolean unpackBoolean () throws IOException;\n"
+"public synchronized char unpackChar () throws IOException;\n"
+"public synchronized short unpackShort () throws IOException;\n"
+"public synchronized int unpackInt () throws IOException;\n"
+"public synchronized long unpackLong () throws IOException;\n"
+"public synchronized float unpackFloat () throws IOException;\n"
+"public synchronized double unpackDouble () throws IOException;\n"
+"public synchronized String unpackString () throws IOException;\n"
+"};"
#. Tag: programlisting
#: Chapter_02.xml:42
@@ -190,12 +272,21 @@
" public String type ();\n"
"};"
msgstr ""
+"class OutputObjectState extends OutputBuffer\n"
+"{\n"
+" public OutputObjectState (Uid newUid, String typeName);\n"
+" \n"
+" public boolean notempty ();\n"
+" public int size ();\n"
+" public Uid stateUid ();\n"
+" public String type ();\n"
+"};"
#. Tag: title
#: Chapter_02.xml:49
#, no-c-format
msgid "InputObjectState"
-msgstr ""
+msgstr "InputObjectState"
#. Tag: programlisting
#: Chapter_02.xml:51
@@ -211,6 +302,15 @@
" public String type ();\n"
"};"
msgstr ""
+"class InputObjectState extends InputBuffer\n"
+"{\n"
+" public OutputObjectState (Uid newUid, String typeName, byte[] b);\n"
+" \n"
+" public boolean notempty ();\n"
+" public int size ();\n"
+" public Uid stateUid ();\n"
+" public String type ();\n"
+"};"
#. Tag: para
#: Chapter_02.xml:56
@@ -223,12 +323,16 @@
"classname> instance is a compressed image. These are used when accessing the "
"object store during storage and retrieval of the object state."
msgstr ""
+"<classname>Input/OutputObjectState</classname> 类提供 <classname>"
+"Input/OutputBuffer</classname> 的所有功能(通过继承),但添加了两个额外的实例变量来指定 UID 和代表 <"
+"classname>Input/OutputObjectState</classname> 实例的压缩映像的对象的类型。在存储和读取 Object "
+"Store 时要用到它们。"
#. Tag: title
#: Chapter_02.xml:60
#, no-c-format
msgid "The object store"
-msgstr ""
+msgstr "对象库(Object Store)"
#. Tag: para
#: Chapter_02.xml:62
@@ -241,6 +345,10 @@
"store. More complete information about the object stores available in "
"<emphasis>TxCore</emphasis> can be found in the Appendix."
msgstr ""
+"<classname>Input/OutputObjectState</classname> 提供的 Object Store "
+"故意具有一个相当受限的接口,这样就可以以不同的方式来实施。例如,Object Store 可以实施在共享内存里、在 Unix "
+"文件系统里(以不同的形式)以及作为可远程访问的库。关于 <emphasis>TxCore</emphasis> 的可用 Object Store "
+"的完整信息,你可以参考附录。"
#. Tag: para
#: Chapter_02.xml:64
@@ -1302,7 +1410,7 @@
#: Chapter_02.xml:301
#, no-c-format
msgid "LockManager(Uid objUid)"
-msgstr ""
+msgstr "LockManager(Uid objUid)"
#. Tag: para
#: Chapter_02.xml:302
@@ -1314,6 +1422,8 @@
"(identified by <literal>objUid</literal>) loaded from an object store "
"automatically by the system."
msgstr ""
+"这个构造函数允许对现有的持久性对象的访问,其内部名称由参数 <literal>objUid</literal> 给定。系统通常为使用这个操作构建的对象从 "
+"Object Store 里自动地加载其优先状态(由 <literal>objUid</literal> 标识)。"
#. Tag: command
#: Chapter_02.xml:306
@@ -1353,3 +1463,4 @@
"classname> class. As such, it is possible to set the "
"<classname>StateManager</classname> object model as described earlier."
msgstr ""
+
More information about the jboss-cvs-commits
mailing list