[jboss-cvs] JBossAS SVN: r91486 - 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
Tue Jul 21 03:04:30 EDT 2009


Author: ldelima at redhat.com
Date: 2009-07-21 03:04:29 -0400 (Tue, 21 Jul 2009)
New Revision: 91486

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-21 06:50:13 UTC (rev 91485)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/The_CMP_Engine.po	2009-07-21 07:04:29 UTC (rev 91486)
@@ -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-21 09:34+1000\n"
+"PO-Revision-Date: 2009-07-21 17:04+1000\n"
 "Last-Translator: \n"
 "Language-Team:  <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -1657,16 +1657,14 @@
 "State factory classes must implement the <literal>CMPFieldStateFactory</"
 "literal> interface."
 msgstr ""
-"<emphasis role=\"bold\">state-factory</emphasis>: This specifies class name "
-"of a state factory object which can perform dirty checking for this field. "
-"State factory classes must implement the <literal>CMPFieldStateFactory</"
-"literal> interface."
+"<emphasis role=\"bold\">state-factory</emphasis>: Isto especifica o nome da classe do objeto de criação do estado pelo qual pode executar a checagem dirty para este campo. As classes de criação do estado devem implementar a interface <literal>CMPFieldStateFactory</"
+"literal>."
 
 #. Tag: title
 #: The_CMP_Engine.xml:437
 #, no-c-format
 msgid "Read-only Fields"
-msgstr "Read-only Fields"
+msgstr "Campos read-only"
 
 #. Tag: para
 #: The_CMP_Engine.xml:438
@@ -1683,16 +1681,10 @@
 "fields are useful for fields that are filled in by database triggers, such "
 "as last update. A read-only CMP field declaration example follows:"
 msgstr ""
-"JBoss allows for read-only CMP fields by setting the <literal>read-only</"
-"literal> and <literal>read-time-out</literal> elements in the <literal>cmp-"
-"field</literal> declaration. These elements work the same way as they do at "
-"the entity level. If a field is read-only, it will never be used in an "
-"<literal>INSERT</literal> or <literal>UPDATE</literal> statement. If a "
-"primary key field is <literal>read-only</literal>, the create method will "
-"throw a <literal>CreateException</literal>. If a set accessor is called for "
-"a read-only field, it throws an <literal>EJBException</literal>. Read-only "
-"fields are useful for fields that are filled in by database triggers, such "
-"as last update. A read-only CMP field declaration example follows:"
+"O JBoss permite para os campos read-only CMP pela configuração dos elementos <literal>read-only</"
+"literal> e <literal>read-time-out</literal> na declaração <literal>cmp-"
+"field</literal>. Estes elementos trabalham da mesma maneira do que o nível de entidade. Caso um campo seja read-only, ele nunca será usado numa declaração "
+"<literal>INSERT</literal> ou <literal>UPDATE</literal>. Caso o campo de chave primária <literal>read-only</literal>, o método de criação irá lançar um <literal>CreateException</literal>. Caso um conjunto acessador for chamado para um campo read-only, ele lançará um <literal>EJBException</literal>. Os campos read-only são úteis para os campos que são preenchidos pelos triggers de banco de dados, tal como a última atualização. Segue abaixo uma amostra da declaração do campo read-only CMP:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:441
@@ -1728,7 +1720,7 @@
 #: The_CMP_Engine.xml:445
 #, no-c-format
 msgid "Auditing Entity Access"
-msgstr "Auditing Entity Access"
+msgstr "Auditoria do Acesso de Entidade"
 
 #. Tag: para
 #: The_CMP_Engine.xml:446
@@ -1741,10 +1733,7 @@
 "linkend=\"Auditing_Entity_Access-The_jbosscmp_jdbc."
 "xml_audit_element_content_model\"/>."
 msgstr ""
-"The <literal>audit</literal> element of the entity section allows one to "
-"specify how access to and entity bean is audited. This is only allowed when "
-"an entity bean is accessed under a security domain so that this is a caller "
-"identity established. The content model of the audit element is given <xref "
+"O elemento <literal>audit</literal> da seção entidade permite especificar como acessar e como a entidade bean ser auditada. Isto é apenas permitido quando um bean de entidade é acessado sob o domínio de segurança de forma que isto é uma identidade estabelecida do chamador. O modelo do conteúdo do elemento de auditoria é dado em <xref "
 "linkend=\"Auditing_Entity_Access-The_jbosscmp_jdbc."
 "xml_audit_element_content_model\"/>."
 
@@ -1752,7 +1741,7 @@
 #: The_CMP_Engine.xml:450
 #, no-c-format
 msgid "The jbosscmp-jdbc.xml audit element content model"
-msgstr "The jbosscmp-jdbc.xml audit element content model"
+msgstr "O modelo do conteúdo do elemento de auditoria jbosscmp-jdbc.xml "
 
 #. Tag: para
 #: The_CMP_Engine.xml:459
@@ -1763,10 +1752,8 @@
 "the indicated <literal>column-name</literal> or cmp <literal>field-name</"
 "literal>."
 msgstr ""
-"<emphasis role=\"bold\">created-by</emphasis>: This optional element "
-"indicates that the caller who created the entity should be saved to either "
-"the indicated <literal>column-name</literal> or cmp <literal>field-name</"
-"literal>."
+"<emphasis role=\"bold\">created-by</emphasis>: Este elemento opcional indica que o chamador que criou a entidade deve ser salvo para tanto o <literal>column-name</literal> ou cmp <literal>field-name</"
+"literal> indicado."
 
 #. Tag: para
 #: The_CMP_Engine.xml:464
@@ -1777,10 +1764,8 @@
 "indicated <literal>column-name</literal> or cmp <literal>field-name</"
 "literal>."
 msgstr ""
-"<emphasis role=\"bold\">created-time</emphasis>: This optional element "
-"indicates that the time of entity creation should be saved to either the "
-"indicated <literal>column-name</literal> or cmp <literal>field-name</"
-"literal>."
+"<emphasis role=\"bold\">created-time</emphasis>: Este elemento opcional indica que o tempo da criação da entidade deve ser salvo para tanto o <literal>column-name</literal> ou cmp <literal>field-name</"
+"literal> indicado."
 
 #. Tag: para
 #: The_CMP_Engine.xml:469
@@ -1791,10 +1776,8 @@
 "either the indicated <literal>column-name</literal> or CMP <literal>field-"
 "name</literal>."
 msgstr ""
-"<emphasis role=\"bold\">updated-by</emphasis>: This optional element "
-"indicates that the caller who last modified the entity should be saved to "
-"either the indicated <literal>column-name</literal> or CMP <literal>field-"
-"name</literal>."
+"<emphasis role=\"bold\">updated-by</emphasis>: Este elemento opicional indica o chamador que realizou a modificação por último, deve ser salvo para tanto o <literal>column-name</literal> ou CMP <literal>field-"
+"name</literal> indicado."
 
 #. Tag: para
 #: The_CMP_Engine.xml:474
@@ -1805,9 +1788,7 @@
 "either the indicated <literal>column-name</literal> or CMP <literal>field-"
 "name</literal>."
 msgstr ""
-"<emphasis role=\"bold\">updated-time</emphasis>: This optional element "
-"indicates that the last time of entity modification should be saved to "
-"either the indicated <literal>column-name</literal> or CMP <literal>field-"
+"<emphasis role=\"bold\">updated-time</emphasis>: Este elemento opcional indica que a última vez da modificação da entidade deve ser salva para tanto o <literal>column-name</literal> ou CMP <literal>field-"
 "name</literal>."
 
 #. Tag: para
@@ -1823,16 +1804,7 @@
 "the audit fields will be created and added to the entity internally. You "
 "will be able to access audit information in EJB-QL queries using the audit "
 "field names, but not directly through the entity accessors."
-msgstr ""
-"For each element, if a <literal>field-name</literal> is given, the "
-"corresponding audit information should be stored in the specified CMP field "
-"of the entity bean being accessed. Note that there does not have to be an "
-"corresponding CMP field declared on the entity. In case there are matching "
-"field names, you will be able to access audit fields in the application "
-"using the corresponding CMP field abstract getters and setters. Otherwise, "
-"the audit fields will be created and added to the entity internally. You "
-"will be able to access audit information in EJB-QL queries using the audit "
-"field names, but not directly through the entity accessors."
+msgstr "Para cada elemento, caso um <literal>field-name</literal> seja fornecido, a informação de auditoria correspondente deve ser armazenada no campo CMP especificado do bean de entidade sendo acessado. Perceba que isto não precisa ser um campo CMP declarado na entidade. No caso de existir combinação de nomes de campo, você estará apto a acessar os campos de auditoria no aplicativo usando os correspondentes getters e setters abstratos de campo CMP. Do contrário, os campos de auditoria serão criados e adicionados à entidade internamente. Você estará apto a acessar a informação de auditoria nas questões EJB-QL usando os nomes de campo de auditoria, mas não diretamente através dos assessores de entidade."
 
 #. Tag: para
 #: The_CMP_Engine.xml:482
@@ -1844,17 +1816,14 @@
 "literal> and <literal>sql-type</literal> element can then be used to define "
 "the storage type."
 msgstr ""
-"If, on the other hand, a <literal>column-name</literal> is specified, the "
-"corresponding audit information should be stored in the indicated column of "
-"the entity table. If JBoss is creating the table the <literal>jdbc-type</"
-"literal> and <literal>sql-type</literal> element can then be used to define "
-"the storage type."
+"Caso, por outro lado, um <literal>column-name</literal> for especificado, a informação de auditoria correspondente deve ser armazenada na coluna indicada de uma tabela de entidade. Caso o JBoss estiver criando uma tabela, elemento <literal>jdbc-type</"
+"literal> e <literal>sql-type</literal> poderão ser usados para definir o tipo de armazenamento."
 
 #. Tag: para
 #: The_CMP_Engine.xml:485
 #, no-c-format
 msgid "The declaration of audit information with given column names is shown below."
-msgstr "The declaration of audit information with given column names is shown below."
+msgstr "A declaração da informação de auditoria com os nomes de coluna gerada é fornecida abaixo:"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:488
@@ -1910,7 +1879,7 @@
 #: The_CMP_Engine.xml:492
 #, no-c-format
 msgid "Dependent Value Classes (DVCs)"
-msgstr "Dependent Value Classes (DVCs)"
+msgstr "Dependent Value Classes (DVCs) - Classes de Valor Dependente"
 
 #. Tag: para
 #: The_CMP_Engine.xml:493
@@ -1922,13 +1891,7 @@
 "By default, a DVC is serialized, and the serialized form is stored in a "
 "single database column. Although not discussed here, there are several known "
 "issues with the long-term storage of classes in serialized form."
-msgstr ""
-"A dependent value class (DVC) is a fancy term used to identity any Java "
-"class that is the type of a <literal>cmp-field</literal> other than the "
-"automatically recognized types core types such as strings and number values. "
-"By default, a DVC is serialized, and the serialized form is stored in a "
-"single database column. Although not discussed here, there are several known "
-"issues with the long-term storage of classes in serialized form."
+msgstr "Uma classe de valor dependente (DVC) é um termo moderno usado para identificar qualquer classe Java que é um tipo de <literal>cmp-field</literal>, ao invés de tipos principais de tipos automaticamente reconhecidos tais como seqüências e valores de número. Por padrão, um DVC é serializado e a forma serializada é armazenada numa coluna de banco de dados única. Embora não sejam discutido aqui, existem diversos problemas conhecidos com o armazenamento de longa-duração das classes em forma serializada."
 
 #. Tag: para
 #: The_CMP_Engine.xml:496
@@ -1945,16 +1908,8 @@
 "s name spread across several fields. With a DVC, multiple columns can be "
 "mapped to one logical field."
 msgstr ""
-"JBoss also supports the storage of the internal data of a DVC into one or "
-"more columns. This is useful for supporting legacy JavaBeans and database "
-"structures. It is not uncommon to find a database with a highly flattened "
-"structure (e.g., a <literal>PURCHASE_ORDER</literal> table with the fields "
-"<literal>SHIP_LINE1</literal>, <literal>SHIP_LINE2</literal>, "
-"<literal>SHIP_CITY</literal>, etc. and an additional set of fields for the "
-"billing address). Other common database structures include telephone numbers "
-"with separate fields for area code, exchange, and extension, or a person&#39;"
-"s name spread across several fields. With a DVC, multiple columns can be "
-"mapped to one logical field."
+"O JBoss também suporta o armazenamento dos dados internos de um DVC into ou mais colunas. Isto é útil para suportar as estruturas do banco de dados e os JavaBeans legados. Não é incomum encontrar um banco de dados com uma estrutura plana (por exemplo: uma tabela <literal>PURCHASE_ORDER</literal> com os campos <literal>SHIP_LINE1</literal>, <literal>SHIP_LINE2</literal>, "
+"<literal>SHIP_CITY</literal>, etc, além do conjunto adicional para o endereço de pagamento). Outras estruturas de banco de dados comuns incluem os números de telefone com campos separados para o código de área, alteração, extensão ou um nome separado espalhado por diversos campos. Com um DVD, as colunas múltiplas podem ser mapeadas a um campo lógico."
 
 #. Tag: para
 #: The_CMP_Engine.xml:499
@@ -1969,26 +1924,20 @@
 "literal> element within the <literal>dependent-value-classes</literal> "
 "element."
 msgstr ""
-"JBoss requires that a DVC to be mapped must follow the JavaBeans naming "
-"specification for simple properties, and that each property to be stored in "
-"the database must have both a getter and a setter method. Furthermore, the "
-"bean must be serializable and must have a no argument constructor. A "
-"property can be any simple type, an unmapped DVC or a mapped DVC, but cannot "
-"be an EJB. A DVC mapping is specified in a <literal>dependent-value-class</"
-"literal> element within the <literal>dependent-value-classes</literal> "
-"element."
+"O JBoss solicita que para um DVC ser mapeado ele deve seguir a especificação de nomeação JavaBeans para as propriedades simples, e que cada para propriedade ser armazenada no banco de dados ela deve possuir ambos os métodos getter e setter. Além disso, o bean deve ser serializado e não deve possuir um construtor de argumento. Uma propriedade pode ser qualquer tipo simples, um DVC não-mapeado ou um DVC mapeado, porém não pode ser um EJB. O mapeamento DVC é especificado num elemento <literal>dependent-value-class</"
+"literal>com um elemento <literal>dependent-value-classes</literal>."
 
 #. Tag: title
 #: The_CMP_Engine.xml:503
 #, no-c-format
 msgid "The jbosscmp-jdbc dependent-value-class element model."
-msgstr "The jbosscmp-jdbc dependent-value-class element model."
+msgstr "O modelo do elemento jbosscmp-jdbc dependent-value-class."
 
 #. Tag: para
 #: The_CMP_Engine.xml:510
 #, no-c-format
 msgid "Here is an example of a simple <literal>ContactInfo</literal> DVC class."
-msgstr "Here is an example of a simple <literal>ContactInfo</literal> DVC class."
+msgstr "Uma amostra da classe DVC <literal>ContactInfo</literal> simples."
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:513
@@ -2093,8 +2042,8 @@
 "The contact info includes a phone number, which is represented by another "
 "DVC class."
 msgstr ""
-"The contact info includes a phone number, which is represented by another "
-"DVC class."
+"O contact info inclui um número de telefone, que é representado por outra classe "
+"DVC."
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:517
@@ -2138,7 +2087,7 @@
 #: The_CMP_Engine.xml:518
 #, no-c-format
 msgid "The DVC mappings for these two classes are relatively straight forward."
-msgstr "The DVC mappings for these two classes are relatively straight forward."
+msgstr "Os mapeamentos DVC para estas duas classes são relativamente simples."
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:521
@@ -2232,15 +2181,7 @@
 "future release. The current proposal involves storing the primary key fields "
 "in the case of a local entity and the entity handle in the case of a remote "
 "entity."
-msgstr ""
-"Each DVC is declared with a <literal>dependent-value-class</literal> "
-"element. A DVC is identified by the Java class type declared in the class "
-"element. Each property to be persisted is declared with a property element. "
-"This specification is based on the <literal>cmp-field</literal> element, so "
-"it should be self-explanatory. This restriction will also be removed in a "
-"future release. The current proposal involves storing the primary key fields "
-"in the case of a local entity and the entity handle in the case of a remote "
-"entity."
+msgstr "Cada DVC é declarado com um elemento <literal>dependent-value-class</literal>. Um DVC é identificado pelo tipo de classe Java declarado no elemento da classe. Com o objetivo de cada propriedade seja persistida, ela é declarada com um elemento da propriedade. Esta especificação é baseada no elemento <literal>cmp-field</literal>, de forma que isto deve ser auto explicativo. Esta restrição será removida numa liberação futura. O propósito atual envolve o armazenamento dos campos de chaves primárias no caso de uma entidade local e o manuseio da entidade no caso de uma entidade remota. "
 
 #. Tag: para
 #: The_CMP_Engine.xml:525
@@ -2262,19 +2203,8 @@
 "named <literal>info</literal> that uses the <literal>ContactInfo</literal> "
 "DVC would have the following columns:"
 msgstr ""
-"The <literal>dependent-value-classes</literal> section defines the internal "
-"structure and default mapping of the classes. When JBoss encounters a field "
-"that has an unknown type, it searches the list of registered DVCs, and if a "
-"DVC is found, it persists this field into a set of columns, otherwise the "
-"field is stored in serialized form in a single column. JBoss does not "
-"support inheritance of DVCs; therefore, this search is only based on the "
-"declared type of the field. A DVC can be constructed from other DVCs, so "
-"when JBoss runs into a DVC, it flattens the DVC tree structure into a set of "
-"columns. If JBoss finds a DVC circuit during startup, it will throw an "
-"<literal>EJBException</literal>. The default column name of a property is "
-"the column name of the base <literal>cmp-field</literal> followed by an "
-"underscore and then the column name of the property. If the property is a "
-"DVC, the process is repeated. For example, a <literal>cmp-field</literal> "
+"A seção <literal>dependent-value-classes</literal> define uma estrutura interba e o mapeamento padrão das classes. Quando o JBoss encontra um campo que possui um tipo desconhecido, ele procura pela lista dos DVCs registrados e caso um DVC seja encontrado, ele persiste este campo num conjunto de colunas. Do contrário, o campo é armazenado numa forma serializada numa coluna única. O Jboss não suporta a herança dos DVCs, portanto esta busca é apenas baseada no tipo declarado do campo. Um DVC pode ser construído a partir de outros DVCs, de forma que quando o JBoss roda um DVC, ele planílha a estrutura do DVC tree num conjunto de colunas. Caso o JBoss encontre um circuito DVC durante a inicialização, ele lançará um "
+"<literal>EJBException</literal>. O nome da coluna padrão de uma propriedade é o nome da coluna do <literal>cmp-field</literal> base seguido por  <literal>cmp-field</literal> "
 "named <literal>info</literal> that uses the <literal>ContactInfo</literal> "
 "DVC would have the following columns:"
 
@@ -3247,6 +3177,37 @@
 "    &lt;/relationships&gt;\n"
 "&lt;/jbosscmp-jdbc&gt;"
 msgstr ""
+"&lt;jbosscmp-jdbc&gt;\n"
+"    &lt;relationships&gt;\n"
+"        &lt;ejb-relation&gt;\n"
+"            &lt;ejb-relation-name&gt;Gangster-Jobs&lt;/ejb-relation-"
+"name&gt;\n"
+"            &lt;relation-table-mapping&gt;\n"
+"                &lt;table-name&gt;gangster_job&lt;/table-name&gt;\n"
+"            &lt;/relation-table-mapping&gt;\n"
+"            &lt;ejb-relationship-role&gt;\n"
+"                &lt;ejb-relationship-role-name&gt;gangster-has-jobs&lt;/ejb-"
+"relationship-role-name&gt;\n"
+"                &lt;key-fields&gt;\n"
+"                    &lt;key-field&gt;\n"
+"                        &lt;field-name&gt;gangsterId&lt;/field-name&gt;\n"
+"                        &lt;column-name&gt;gangster&lt;/column-name&gt;\n"
+"                    &lt;/key-field&gt;\n"
+"                &lt;/key-fields&gt;\n"
+"            &lt;/ejb-relationship-role&gt;   \n"
+"            &lt;ejb-relationship-role&gt;\n"
+"                &lt;ejb-relationship-role-name&gt;job-has-gangsters&lt;/ejb-"
+"relationship-role-name&gt;\n"
+"                &lt;key-fields&gt;\n"
+"                    &lt;key-field&gt;\n"
+"                        &lt;field-name&gt;name&lt;/field-name&gt;\n"
+"                        &lt;column-name&gt;job&lt;/column-name&gt;\n"
+"                    &lt;/key-field&gt;\n"
+"                &lt;/key-fields&gt;\n"
+"            &lt;/ejb-relationship-role&gt;\n"
+"        &lt;/ejb-relation&gt;\n"
+"    &lt;/relationships&gt;\n"
+"&lt;/jbosscmp-jdbc&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:776
@@ -3385,6 +3346,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
@@ -3407,6 +3373,12 @@
 "        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
@@ -3467,6 +3439,42 @@
 "    &lt;/enterprise-beans&gt;\n"
 "&lt;/ejb-jar&gt;"
 msgstr ""
+"&lt;ejb-jar&gt;\n"
+"    &lt;enterprise-beans&gt;\n"
+"        &lt;entity&gt;\n"
+"            &lt;ejb-name&gt;GangsterEJB&lt;/ejb-name&gt; \n"
+"            &lt;!-- ... --&gt;\n"
+"            &lt;query&gt;\n"
+"                &lt;query-method&gt;\n"
+"                    &lt;method-name&gt;<emphasis role=\"bold"
+"\">findBadDudes_ejbql</emphasis>&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"
+"                 <emphasis role=\"bold\">SELECT OBJECT(g) FROM gangster g "
+"WHERE g.badness &gt; ?1</emphasis>\n"
+"                 ]]&gt;&lt;/ejb-ql&gt;\n"
+"            &lt;/query&gt;\n"
+"            &lt;query&gt;\n"
+"                &lt;query-method&gt;\n"
+"                    &lt;method-name&gt;<emphasis role=\"bold"
+"\">ejbSelectBoss_ejbql</emphasis>&lt;/method-name&gt;\n"
+"                    &lt;method-params&gt;\n"
+"                        &lt;method-param&gt;java.lang.String&lt;/method-"
+"param&gt;\n"
+"                    &lt;/method-params&gt;\n"
+"                &lt;/query-method&gt;\n"
+"                &lt;ejb-ql&gt;&lt;![CDATA[\n"
+"                 <emphasis role=\"bold\">SELECT DISTINCT underling."
+"organization.theBoss FROM gangster underling WHERE underling.name = ?1 OR "
+"underling.nickName = ?1</emphasis>\n"
+"                 ]]&gt;&lt;/ejb-ql&gt;\n"
+"            &lt;/query&gt;\n"
+"        &lt;/entity&gt;\n"
+"    &lt;/enterprise-beans&gt;\n"
+"&lt;/ejb-jar&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:850
@@ -3502,6 +3510,11 @@
 "(r.amountPaid * .01) &gt; 300 <emphasis>NOT Legal</emphasis>\n"
 "r.amountPaid &gt; (300 / .01) <emphasis>Legal</emphasis>"
 msgstr ""
+"g.hangout.state = &#39;CA&#39; Legal\n"
+"&#39;CA&#39; = g.shippingAddress.state <emphasis>NOT Legal</emphasis>\n"
+"&#39;CA&#39; = &#39;CA&#39; <emphasis>NOT Legal</emphasis>\n"
+"(r.amountPaid * .01) &gt; 300 <emphasis>NOT Legal</emphasis>\n"
+"r.amountPaid &gt; (300 / .01) <emphasis>Legal</emphasis>"
 
 #. Tag: para
 #: The_CMP_Engine.xml:868
@@ -3524,6 +3537,8 @@
 "gangster.hangout.state = ?1 <emphasis>Legal</emphasis>\n"
 "?1 = gangster.hangout.state <emphasis>NOT Legal</emphasis>"
 msgstr ""
+"gangster.hangout.state = ?1 <emphasis>Legal</emphasis>\n"
+"?1 = gangster.hangout.state <emphasis>NOT Legal</emphasis>"
 
 #. Tag: title
 #: The_CMP_Engine.xml:882
@@ -3670,6 +3685,25 @@
 "    &lt;/enterprise-beans&gt;\n"
 "&lt;/jbosscmp-jdbc&gt;"
 msgstr ""
+"&lt;jbosscmp-jdbc&gt;\n"
+"    &lt;enterprise-beans&gt;\n"
+"        &lt;entity&gt;\n"
+"            &lt;ejb-name&gt;GangsterEJB&lt;/ejb-name&gt;\n"
+"            &lt;query&gt;\n"
+"                &lt;query-method&gt;\n"
+"                    &lt;method-name&gt;findBadDudes_jbossql&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"
+"                <emphasis role=\"bold\">&lt;jboss-ql&gt;&lt;![CDATA[ SELECT "
+"OBJECT(g) FROM gangster g WHERE g.badness &gt; ?1 ORDER BY g.badness DESC ]]"
+"&gt;&lt;/jboss-ql&gt;</emphasis>\n"
+"            &lt;/query&gt;\n"
+"        &lt;/entity&gt;\n"
+"    &lt;/enterprise-beans&gt;\n"
+"&lt;/jbosscmp-jdbc&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:937
@@ -3686,6 +3720,10 @@
 "    WHERE t0_g.badness &gt; ?\n"
 "    ORDER BY t0_g.badness DESC"
 msgstr ""
+"SELECT t0_g.id\n"
+"    FROM gangster t0_g\n"
+"    WHERE t0_g.badness &gt; ?\n"
+"    ORDER BY t0_g.badness DESC"
 
 #. Tag: para
 #: The_CMP_Engine.xml:941
@@ -3700,7 +3738,7 @@
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:944
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "&lt;jbosscmp-jdbc&gt;\n"
 "    &lt;enterprise-beans&gt;\n"
@@ -3724,27 +3762,27 @@
 "    &lt;/enterprise-beans&gt;\n"
 "&lt;/jbosscmp-jdbc&gt;"
 msgstr ""
-"&lt;jboss&gt;    \n"
-"    &lt;enterprise-beans&gt;      \n"
-"        &lt;session&gt;        \n"
-"            &lt;ejb-name&gt;nextgen.StatelessSession&lt;/ejb-"
-"name&gt;        \n"
-"            &lt;jndi-name&gt;nextgen.StatelessSession&lt;/jndi-"
-"name&gt;        \n"
-"            &lt;clustered&gt;True&lt;/clustered&gt;        \n"
-"            &lt;cluster-config&gt;          \n"
-"                &lt;partition-name&gt;DefaultPartition&lt;/partition-"
-"name&gt;          \n"
-"                &lt;home-load-balance-policy&gt;                 \n"
-"                    org.jboss.ha.framework.interfaces.RoundRobin          \n"
-"                &lt;/home-load-balance-policy&gt;          \n"
-"                &lt;bean-load-balance-policy&gt;  \n"
-"                    org.jboss.ha.framework.interfaces.RoundRobin\n"
-"                &lt;/bean-load-balance-policy&gt;\n"
-"            &lt;/cluster-config&gt;\n"
-"        &lt;/session&gt;\n"
+"&lt;jbosscmp-jdbc&gt;\n"
+"    &lt;enterprise-beans&gt;\n"
+"        &lt;entity&gt;\n"
+"            &lt;ejb-name&gt;GangsterEJB&lt;/ejb-name&gt;\n"
+"            &lt;query&gt;\n"
+"                &lt;query-method&gt;\n"
+"                    &lt;method-name&gt;findManyJobs_jbossql&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;method-params&gt;\n"
+"                        &lt;method-param&gt;int&lt;/method-param&gt;\n"
+"                    &lt;/method-params&gt;\n"
+"                &lt;/query-method&gt;\n"
+"                <emphasis role=\"bold\">&lt;jboss-ql&gt;&lt;![CDATA[ SELECT "
+"OBJECT(j) FROM jobs j OFFSET ?1 LIMIT ?2 ]]&gt;&lt;/jboss-ql&gt;</emphasis>\n"
+"            &lt;/query&gt;\n"
+"        &lt;/entity&gt;\n"
 "    &lt;/enterprise-beans&gt;\n"
-"&lt;/jboss&gt;"
+"&lt;/jbosscmp-jdbc&gt;"
 
 #. Tag: title
 #: The_CMP_Engine.xml:948
@@ -3797,6 +3835,35 @@
 "    }\n"
 "}"
 msgstr ""
+"public abstract class GangsterBean \n"
+"    implements EntityBean \n"
+"{\n"
+"    public Set ejbHomeSelectInStates(Set states)\n"
+"        throws FinderException\n"
+"    {\n"
+"        // generate JBossQL query\n"
+"        StringBuffer jbossQl = new StringBuffer();\n"
+"        jbossQl.append(\"SELECT OBJECT(g) \");\n"
+"        jbossQl.append(\"FROM gangster g \");\n"
+"        jbossQl.append(\"WHERE g.hangout.state IN (\");\n"
+"\n"
+"        for (int i = 0; i &lt; states.size(); i++) {\n"
+"            if (i &gt; 0) {\n"
+"                jbossQl.append(\", \");\n"
+"            }\n"
+"\n"
+"            jbossQl.append(\"?\").append(i+1);\n"
+"        }\n"
+"\n"
+"            jbossQl.append(\") ORDER BY g.name\");\n"
+"\n"
+"        // pack arguments into an Object[]\n"
+"        Object[] args = states.toArray(new Object[states.size()]);\n"
+" \n"
+"        // call dynamic-ql query\n"
+"        return ejbSelectGeneric(jbossQl.toString(), args);\n"
+"    }\n"
+"}"
 
 #. Tag: para
 #: The_CMP_Engine.xml:953
@@ -3811,7 +3878,7 @@
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:956
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "&lt;jbosscmp-jdbc&gt;\n"
 "    &lt;enterprise-beans&gt;\n"
@@ -3833,27 +3900,25 @@
 "    &lt;/enterprise-beans&gt;\n"
 "&lt;/jbosscmp-jdbc&gt;"
 msgstr ""
-"&lt;jboss&gt;    \n"
-"    &lt;enterprise-beans&gt;      \n"
-"        &lt;session&gt;        \n"
-"            &lt;ejb-name&gt;nextgen.StatelessSession&lt;/ejb-"
-"name&gt;        \n"
-"            &lt;jndi-name&gt;nextgen.StatelessSession&lt;/jndi-"
-"name&gt;        \n"
-"            &lt;clustered&gt;True&lt;/clustered&gt;        \n"
-"            &lt;cluster-config&gt;          \n"
-"                &lt;partition-name&gt;DefaultPartition&lt;/partition-"
-"name&gt;          \n"
-"                &lt;home-load-balance-policy&gt;                 \n"
-"                    org.jboss.ha.framework.interfaces.RoundRobin          \n"
-"                &lt;/home-load-balance-policy&gt;          \n"
-"                &lt;bean-load-balance-policy&gt;  \n"
-"                    org.jboss.ha.framework.interfaces.RoundRobin\n"
-"                &lt;/bean-load-balance-policy&gt;\n"
-"            &lt;/cluster-config&gt;\n"
-"        &lt;/session&gt;\n"
+"&lt;jbosscmp-jdbc&gt;\n"
+"    &lt;enterprise-beans&gt;\n"
+"        &lt;entity&gt;\n"
+"            &lt;ejb-name&gt;GangsterEJB&lt;/ejb-name&gt;\n"
+"            &lt;query&gt;\n"
+"                &lt;query-method&gt;\n"
+"                    &lt;method-name&gt;ejbSelectGeneric&lt;/method-name&gt;\n"
+"                    &lt;method-params&gt;\n"
+"                        &lt;method-param&gt;java.lang.String&lt;/method-"
+"param&gt;\n"
+"                        &lt;method-param&gt;java.lang.Object[]&lt;/method-"
+"param&gt;\n"
+"                    &lt;/method-params&gt;\n"
+"                &lt;/query-method&gt;\n"
+"                <emphasis role=\"bold\">&lt;dynamic-ql/&gt;</emphasis>\n"
+"            &lt;/query&gt;\n"
+"        &lt;/entity&gt;\n"
 "    &lt;/enterprise-beans&gt;\n"
-"&lt;/jboss&gt;"
+"&lt;/jbosscmp-jdbc&gt;"
 
 #. Tag: title
 #: The_CMP_Engine.xml:960
@@ -3988,7 +4053,7 @@
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1029
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "&lt;jbosscmp-jdbc&gt;\n"
 "    &lt;enterprise-beans&gt;\n"
@@ -4013,27 +4078,28 @@
 "    &lt;/enterprise-beans&gt;\n"
 "&lt;/jbosscmp-jdbc&gt;"
 msgstr ""
-"&lt;jboss&gt;    \n"
-"    &lt;enterprise-beans&gt;      \n"
-"        &lt;session&gt;        \n"
-"            &lt;ejb-name&gt;nextgen.StatelessSession&lt;/ejb-"
-"name&gt;        \n"
-"            &lt;jndi-name&gt;nextgen.StatelessSession&lt;/jndi-"
-"name&gt;        \n"
-"            &lt;clustered&gt;True&lt;/clustered&gt;        \n"
-"            &lt;cluster-config&gt;          \n"
-"                &lt;partition-name&gt;DefaultPartition&lt;/partition-"
-"name&gt;          \n"
-"                &lt;home-load-balance-policy&gt;                 \n"
-"                    org.jboss.ha.framework.interfaces.RoundRobin          \n"
-"                &lt;/home-load-balance-policy&gt;          \n"
-"                &lt;bean-load-balance-policy&gt;  \n"
-"                    org.jboss.ha.framework.interfaces.RoundRobin\n"
-"                &lt;/bean-load-balance-policy&gt;\n"
-"            &lt;/cluster-config&gt;\n"
-"        &lt;/session&gt;\n"
+"&lt;jbosscmp-jdbc&gt;\n"
+"    &lt;enterprise-beans&gt;\n"
+"        &lt;entity&gt;\n"
+"            &lt;ejb-name&gt;GangsterEJB&lt;/ejb-name&gt;\n"
+"            &lt;query&gt;\n"
+"                &lt;query-method&gt;\n"
+"                    &lt;method-name&gt;findBadDudes_declaredsql&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;declared-sql&gt;\n"
+"                    &lt;where&gt;&lt;![CDATA[ badness &gt; {0} ]]&gt;&lt;/"
+"where&gt;\n"
+"                    &lt;order&gt;&lt;![CDATA[ badness DESC ]]&gt;&lt;/"
+"order&gt;\n"
+"                &lt;/declared-sql&gt;\n"
+"            &lt;/query&gt;\n"
+"        &lt;/entity&gt;\n"
 "    &lt;/enterprise-beans&gt;\n"
-"&lt;/jboss&gt;"
+"&lt;/jbosscmp-jdbc&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1030 The_CMP_Engine.xml:1038 The_CMP_Engine.xml:1641
@@ -4050,6 +4116,10 @@
 "WHERE badness &gt; ?\n"
 "ORDER BY badness DESC"
 msgstr ""
+"SELECT id\n"
+"FROM gangster\n"
+"WHERE badness &gt; ?\n"
+"ORDER BY badness DESC"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1034
@@ -4065,7 +4135,7 @@
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1037
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "&lt;jbosscmp-jdbc&gt;\n"
 "    &lt;enterprise-beans&gt;\n"
@@ -4098,31 +4168,36 @@
 "    &lt;/enterprise-beans&gt;\n"
 "&lt;/jbosscmp-jdbc&gt;"
 msgstr ""
-"&lt;jboss&gt;    \n"
+"&lt;jbosscmp-jdbc&gt;\n"
 "    &lt;enterprise-beans&gt;\n"
-"        &lt;session&gt;        \n"
-"            &lt;ejb-name&gt;nextgen.StatefulSession&lt;/ejb-"
-"name&gt;        \n"
-"            &lt;jndi-name&gt;nextgen.StatefulSession&lt;/jndi-"
-"name&gt;        \n"
-"            &lt;clustered&gt;True&lt;/clustered&gt;        \n"
-"            &lt;cluster-config&gt;          \n"
-"                &lt;partition-name&gt;DefaultPartition&lt;/partition-"
+"        &lt;entity&gt;\n"
+"            &lt;ejb-name&gt;GangsterEJB&lt;/ejb-name&gt;\n"
+"            &lt;query&gt;\n"
+"                &lt;query-method&gt;\n"
+"                    &lt;method-name&gt;ejbSelectBoss_declaredsql&lt;/method-"
 "name&gt;\n"
-"                &lt;home-load-balance-policy&gt;               \n"
-"                    org.jboss.ha.framework.interfaces.RoundRobin          \n"
-"                &lt;/home-load-balance-policy&gt;          \n"
-"                &lt;bean-load-balance-policy&gt;               \n"
-"                    org.jboss.ha.framework.interfaces."
-"FirstAvailable          \n"
-"                &lt;/bean-load-balance-policy&gt;          \n"
-"                &lt;session-state-manager-jndi-name&gt;              \n"
-"                    /HASessionState/Default          \n"
-"                &lt;/session-state-manager-jndi-name&gt;        \n"
-"            &lt;/cluster-config&gt;      \n"
-"        &lt;/session&gt;    \n"
+"                    &lt;method-params&gt;\n"
+"                        &lt;method-param&gt;java.lang.String&lt;/method-"
+"param&gt;\n"
+"                    &lt;/method-params&gt;\n"
+"                &lt;/query-method&gt;\n"
+"                &lt;declared-sql&gt;\n"
+"                    &lt;select&gt;\n"
+"                        &lt;distinct/&gt;\n"
+"                        &lt;ejb-name&gt;GangsterEJB&lt;/ejb-name&gt;\n"
+"                        &lt;alias&gt;boss&lt;/alias&gt;\n"
+"                    &lt;/select&gt;\n"
+"                    &lt;from&gt;&lt;![CDATA[, gangster g, organization o]]"
+"&gt;&lt;/from&gt;\n"
+"                    &lt;where&gt;&lt;![CDATA[\n"
+"                     (LCASE(g.name) = {0} OR LCASE(g.nick_name) = {0}) AND\n"
+"                     g.organization = o.name AND o.the_boss = boss.id\n"
+"                     ]]&gt;&lt;/where&gt;\n"
+"                &lt;/declared-sql&gt;\n"
+"            &lt;/query&gt;\n"
+"        &lt;/entity&gt;\n"
 "    &lt;/enterprise-beans&gt;\n"
-"&lt;/jboss&gt;"
+"&lt;/jbosscmp-jdbc&gt;"
 
 #. Tag: programlisting
 #: The_CMP_Engine.xml:1041
@@ -4133,6 +4208,10 @@
 "    WHERE (LCASE(g.name) = ? OR LCASE(g.nick_name) = ?) AND\n"
 "          g.organization = o.name AND o.the_boss = boss.id"
 msgstr ""
+"SELECT DISTINCT boss.id\n"
+"    FROM gangster boss, gangster g, organization o\n"
+"    WHERE (LCASE(g.name) = ? OR LCASE(g.nick_name) = ?) AND\n"
+"          g.organization = o.name AND o.the_boss = boss.id"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1042
@@ -4193,6 +4272,31 @@
 "    &lt;/enterprise-beans&gt;\n"
 "&lt;/jbosscmp-jdbc&gt;"
 msgstr ""
+"&lt;jbosscmp-jdbc&gt;\n"
+"    &lt;enterprise-beans&gt;\n"
+"        &lt;entity&gt;\n"
+"            &lt;ejb-name&gt;OrganizationEJB&lt;/ejb-name&gt;\n"
+"            &lt;query&gt;\n"
+"                &lt;query-method&gt;\n"
+"                    &lt;method-name&gt;"
+"ejbSelectOperatingZipCodes_declaredsql&lt;/method-name&gt;\n"
+"                    &lt;method-params&gt;\n"
+"                        &lt;method-param&gt;java.lang.String&lt;/method-"
+"param&gt;\n"
+"                    &lt;/method-params&gt;\n"
+"                &lt;/query-method&gt;\n"
+"                <emphasis role=\"bold\">&lt;declared-sql&gt; &lt;select&gt; "
+"&lt;distinct/&gt; &lt;ejb-name&gt;LocationEJB&lt;/ejb-name&gt; &lt;field-"
+"name&gt;zipCode&lt;/field-name&gt; &lt;alias&gt;hangout&lt;/alias&gt; &lt;/"
+"select&gt; &lt;from&gt;&lt;![CDATA[ , organization o, gangster g ]]&gt;&lt;/"
+"from&gt; &lt;where&gt;&lt;![CDATA[ LCASE(o.name) = {0} AND o.name = g."
+"organization AND g.hangout = hangout.id ]]&gt;&lt;/where&gt; &lt;order&gt;"
+"&lt;![CDATA[ hangout.zip ]]&gt;&lt;/order&gt; &lt;/declared-sql&gt;</"
+"emphasis>\n"
+"            &lt;/query&gt;\n"
+"        &lt;/entity&gt;\n"
+"    &lt;/enterprise-beans&gt;\n"
+"&lt;/jbosscmp-jdbc&gt;"
 
 #. Tag: para
 #: The_CMP_Engine.xml:1049




More information about the jboss-cvs-commits mailing list