[jboss-cvs] JBossAS SVN: r91338 - 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
Thu Jul 16 02:36:27 EDT 2009


Author: ldelima at redhat.com
Date: 2009-07-16 02:36:27 -0400 (Thu, 16 Jul 2009)
New Revision: 91338

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-16 06:34:23 UTC (rev 91337)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/The_CMP_Engine.po	2009-07-16 06:36:27 UTC (rev 91338)
@@ -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-16 16:34+1000\n"
+"PO-Revision-Date: 2009-07-16 16:35+1000\n"
 "Last-Translator: \n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -495,12 +495,14 @@
 "The top level elements are shown in <xref linkend="
 "\"The_jbosscmp_jdbc_Structure-The_jbosscmp_jdbc_content_model.\"/>."
 msgstr ""
+"The top level elements are shown in <xref linkend="
+"\"The_jbosscmp_jdbc_Structure-The_jbosscmp_jdbc_content_model.\"/>."
 
 #. Tag: title
 #: The_CMP_Engine.xml:88
 #, no-c-format
 msgid "The jbosscmp-jdbc content model."
-msgstr ""
+msgstr "The jbosscmp-jdbc content model."
 
 #. Tag: para
 #: The_CMP_Engine.xml:97
@@ -513,6 +515,12 @@
 "linkend=\"The_CMP_Engine-Defaults\"/> for the details of the defaults "
 "content."
 msgstr ""
+"<emphasis role=\"bold\">defaults</emphasis>: The defaults section allows for "
+"the specification of default behavior/settings for behavior that controls "
+"entity beans. Use of this section simplifies the amount of information "
+"needed for the common behaviors found in the entity beans section. See <xref "
+"linkend=\"The_CMP_Engine-Defaults\"/> for the details of the defaults "
+"content."
 
 #. Tag: para
 #: The_CMP_Engine.xml:102
@@ -524,6 +532,11 @@
 "descriptor. This is described in detail in <xref linkend=\"The_CMP_Engine-"
 "Entity_Beans\"/>."
 msgstr ""
+"<emphasis role=\"bold\">enterprise-beans</emphasis>: The <literal>enterprise-"
+"beans</literal> element allows for customization of entity beans defined in "
+"the <literal>ejb-jar.xml</literal><literal>enterprise-beans</literal> "
+"descriptor. This is described in detail in <xref linkend=\"The_CMP_Engine-"
+"Entity_Beans\"/>."
 
 #. Tag: para
 #: The_CMP_Engine.xml:107
@@ -535,6 +548,11 @@
 "in detail in <xref linkend=\"The_CMP_Engine-Container_Managed_Relationships"
 "\"/>."
 msgstr ""
+"<emphasis role=\"bold\">relationships</emphasis>: The "
+"<literal>relationships</literal> element allows for the customization of "
+"tables and the loading behavior of entity relationships. This is described "
+"in detail in <xref linkend=\"The_CMP_Engine-Container_Managed_Relationships"
+"\"/>."
 
 #. Tag: para
 #: The_CMP_Engine.xml:112
@@ -546,6 +564,11 @@
 "value classes are described in detail in <xref linkend=\"CMP_Fields-"
 "Dependent_Value_Classes_DVCs\"/> (DVCs)."
 msgstr ""
+"<emphasis role=\"bold\">dependent-value-classes</emphasis>: The "
+"<literal>dependent-value-classes</literal> element allows for the "
+"customization of the mapping of dependent value classes to tables. Dependent "
+"value classes are described in detail in <xref linkend=\"CMP_Fields-"
+"Dependent_Value_Classes_DVCs\"/> (DVCs)."
 
 #. Tag: para
 #: The_CMP_Engine.xml:117
@@ -556,6 +579,10 @@
 "database, along with SQL templates, and function mappings. This is described "
 "in detail in <xref linkend=\"The_CMP_Engine-Datasource_Customization\"/>."
 msgstr ""
+"<emphasis role=\"bold\">type-mappings</emphasis>: The <literal>type-"
+"mappings</literal> element defines the Java to SQL type mappings for a "
+"database, along with SQL templates, and function mappings. This is described "
+"in detail in <xref linkend=\"The_CMP_Engine-Datasource_Customization\"/>."
 
 #. Tag: para
 #: The_CMP_Engine.xml:122
@@ -567,6 +594,11 @@
 "store. This is described in detail in <xref linkend=\"The_CMP_Engine-"
 "Entity_Commands_and_Primary_Key_Generation\"/>."
 msgstr ""
+"<emphasis role=\"bold\">entity-commands</emphasis>: The <literal>entity-"
+"commands</literal> element allows for the definition of the entity creation "
+"command instances that know how to create an entity instance in a persistent "
+"store. This is described in detail in <xref linkend=\"The_CMP_Engine-"
+"Entity_Commands_and_Primary_Key_Generation\"/>."
 
 #. Tag: para
 #: The_CMP_Engine.xml:127
@@ -580,6 +612,13 @@
 "user type. Details of the user type mappings are described in <xref linkend="
 "\"Datasource_Customization-User_Type_Mappings\"/>."
 msgstr ""
+"<emphasis role=\"bold\">user-type-mappings</emphasis>: The <literal>user-"
+"type-mappings</literal> elements defines a mapping of a user types to a "
+"column using a mapper class. A mapper is like a mediator. When storing, it "
+"takes an instance of the user type and translates it to a column value. When "
+"loading, it takes a column value and translates it to an instance of the "
+"user type. Details of the user type mappings are described in <xref linkend="
+"\"Datasource_Customization-User_Type_Mappings\"/>."
 
 #. Tag: para
 #: The_CMP_Engine.xml:132
@@ -590,12 +629,16 @@
 "escaped when generating tables. Each reserved word is specified as the "
 "content of a <literal>word</literal> element."
 msgstr ""
+"<emphasis role=\"bold\">reserved-words</emphasis>: The <literal>reserved-"
+"words</literal> element defines one or more reserved words that should be "
+"escaped when generating tables. Each reserved word is specified as the "
+"content of a <literal>word</literal> element."
 
 #. Tag: title
 #: The_CMP_Engine.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Entity Beans"
-msgstr "Bean de Entidade em EJB 2.x"
+msgstr "Entity Beans"
 
 #. Tag: para
 #: The_CMP_Engine.xml:141
@@ -608,6 +651,12 @@
 "VM to get the performance benefit as from local entity beans, the use of "
 "local entity beans is strongly encouraged."
 msgstr ""
+"We&#39;ll start our look at entity beans in JBoss by examining one of the "
+"CMP entity beans in the crime portal. We&#39;ll look at the gangster bean, "
+"which is implemented as local CMP entity bean. Although JBoss can provide "
+"remote entity beans with pass-by-reference semantics for calls in the same "
+"VM to get the performance benefit as from local entity beans, the use of "
+"local entity beans is strongly encouraged."
 
 #. Tag: para
 #: The_CMP_Engine.xml:144
@@ -617,6 +666,9 @@
 "concerned with the CMP fields at this point, we&#39;ll show only the methods "
 "dealing with the CMP fields."
 msgstr ""
+"We&#39;ll start with the required home interface. Since we&#39;re only "
+"concerned with the CMP fields at this point, we&#39;ll show only the methods "
+"dealing with the CMP fields."
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:147
@@ -632,6 +684,15 @@
 "        throws FinderException; \n"
 "}"
 msgstr ""
+"// Gangster Local Home Interface\n"
+"public interface GangsterHome \n"
+"    extends EJBLocalHome \n"
+"{   \n"
+"    Gangster create(Integer id, String name, String nickName)\n"
+"        throws CreateException;\n"
+"    Gangster findByPrimaryKey(Integer id) \n"
+"        throws FinderException; \n"
+"}"
 
 #. Tag: para
 #: The_CMP_Engine.xml:148
@@ -640,6 +701,8 @@
 "The local interface is what clients will use to talk. Again, it contains "
 "only the CMP field accessors."
 msgstr ""
+"The local interface is what clients will use to talk. Again, it contains "
+"only the CMP field accessors."
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:151
@@ -660,6 +723,20 @@
 "    void setBadness(int badness);\n"
 "}"
 msgstr ""
+"// Gangster Local Interface \n"
+"public interface Gangster\n"
+"    extends EJBLocalObject\n"
+"{\n"
+"    Integer getGangsterId();\n"
+"\n"
+"    String getName();\n"
+"\n"
+"    String getNickName();\n"
+"    void setNickName(String nickName);\n"
+"\n"
+"    int getBadness();\n"
+"    void setBadness(int badness);\n"
+"}"
 
 #. Tag: para
 #: The_CMP_Engine.xml:152
@@ -668,6 +745,8 @@
 "Finally, we have the actual gangster bean. Despite it&#39;s size, very "
 "little code is actually required. The bulk of the class is the create method."
 msgstr ""
+"Finally, we have the actual gangster bean. Despite it&#39;s size, very "
+"little code is actually required. The bulk of the class is the create method."
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:155
@@ -716,6 +795,48 @@
 "     public void ejbLoad() { }\n"
 "}"
 msgstr ""
+"// Gangster Implementation Class\n"
+"public abstract class GangsterBean \n"
+"    implements EntityBean \n"
+"{\n"
+"     private EntityContext ctx; \n"
+"     private Category log = Category.getInstance(getClass());\n"
+"     public Integer ejbCreate(Integer id, String name, String nickName)\n"
+"         throws CreateException \n"
+"     {\n"
+"         log.info(\"Creating Gangster \" + id + \" &#39;\" + nickName + "
+"\"&#39; \"+ name);\n"
+"         setGangsterId(id);\n"
+"         setName(name);\n"
+"         setNickName(nickName);\n"
+"         return null;\n"
+"     }\n"
+"     \n"
+"     public void ejbPostCreate(Integer id, String name, String nickName) {\n"
+"     }\n"
+"     \n"
+"     // CMP field accessors ---------------------------------------------\n"
+"     public abstract Integer getGangsterId();\n"
+"     public abstract void setGangsterId(Integer gangsterId); \n"
+"     public abstract String getName();\n"
+"     public abstract void setName(String name);\n"
+"     public abstract String getNickName();\n"
+"     public abstract void setNickName(String nickName);\n"
+"     public abstract int getBadness();\n"
+"     public abstract void setBadness(int badness);\n"
+"     public abstract ContactInfo getContactInfo();\n"
+"     public abstract void setContactInfo(ContactInfo contactInfo);  \n"
+"     //... \n"
+"     \n"
+"     // EJB callbacks ---------------------------------------------------\n"
+"     public void setEntityContext(EntityContext context) { ctx = context; }\n"
+"     public void unsetEntityContext() { ctx = null; }\n"
+"     public void ejbActivate() { }    \n"
+"     public void ejbPassivate() { }   \n"
+"     public void ejbRemove() { log.info(\"Removing \" + getName()); }\n"
+"     public void ejbStore() { }\n"
+"     public void ejbLoad() { }\n"
+"}"
 
 #. Tag: para
 #: The_CMP_Engine.xml:156
@@ -725,6 +846,9 @@
 "descriptor. Although the actual bean class is named <literal>GangsterBean</"
 "literal>, we&#39;ve called the entity <literal>GangsterEJB</literal>."
 msgstr ""
+"The only thing missing now is the <literal>ejb-jar.xml</literal> deployment "
+"descriptor. Although the actual bean class is named <literal>GangsterBean</"
+"literal>, we&#39;ve called the entity <literal>GangsterEJB</literal>."
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:159
@@ -778,6 +902,53 @@
 "    &lt;/enterprise-beans&gt;\n"
 "&lt;/ejb-jar&gt;"
 msgstr ""
+"&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n"
+"&lt;ejb-jar xmlns=\"http://java.sun.com/xml/ns/\"Whats_new_in_JBoss_4-"
+"J2EE_Certification_and_Standards_Compliance\" version=\"2.1\"\n"
+"    xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+"    xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee \n"
+"                        http://java.sun.com/xml/ns/j2ee/ejb-jar_\\2_1.xsd"
+"\"&gt;\n"
+"   &lt;display-name&gt;Crime Portal&lt;/display-name&gt;\n"
+"\n"
+"    &lt;enterprise-beans&gt;\n"
+"        &lt;entity&gt;\n"
+"            &lt;display-name&gt;Gangster Entity Bean&lt;/display-name&gt;\n"
+"            &lt;ejb-name&gt;GangsterEJB&lt;/ejb-name&gt;\n"
+"            &lt;local-home&gt;org.jboss.cmp2.crimeportal.GangsterHome&lt;/"
+"local-home&gt;\n"
+"            &lt;local&gt;org.jboss.cmp2.crimeportal.Gangster&lt;/local&gt;\n"
+"\n"
+"            &lt;ejb-class&gt;org.jboss.cmp2.crimeportal.GangsterBean&lt;/ejb-"
+"class&gt;\n"
+"            &lt;persistence-type&gt;Container&lt;/persistence-type&gt;\n"
+"            &lt;prim-key-class&gt;java.lang.Integer&lt;/prim-key-class&gt;\n"
+"            &lt;reentrant&gt;False&lt;/reentrant&gt;\n"
+"            &lt;cmp-version&gt;2.x&lt;/cmp-version&gt;\n"
+"            &lt;abstract-schema-name&gt;gangster&lt;/abstract-schema-"
+"name&gt;\n"
+"\n"
+"            &lt;cmp-field&gt;\n"
+"                &lt;field-name&gt;gangsterId&lt;/field-name&gt;\n"
+"            &lt;/cmp-field&gt;\n"
+"            &lt;cmp-field&gt;\n"
+"                &lt;field-name&gt;name&lt;/field-name&gt;\n"
+"            &lt;/cmp-field&gt;\n"
+"            &lt;cmp-field&gt;\n"
+"                &lt;field-name&gt;nickName&lt;/field-name&gt;\n"
+"            &lt;/cmp-field&gt;\n"
+"            &lt;cmp-field&gt;\n"
+"                &lt;field-name&gt;badness&lt;/field-name&gt;\n"
+"            &lt;/cmp-field&gt;\n"
+"            &lt;cmp-field&gt;\n"
+"                &lt;field-name&gt;contactInfo&lt;/field-name&gt;\n"
+"            &lt;/cmp-field&gt;\n"
+"            &lt;primkey-field&gt;gangsterId&lt;/primkey-field&gt;\n"
+"\n"
+"            &lt;!-- ... --&gt;\n"
+"        &lt;/entity&gt;\n"
+"    &lt;/enterprise-beans&gt;\n"
+"&lt;/ejb-jar&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:160




More information about the jboss-cvs-commits mailing list