⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jbosscmp-jdbc_3_0.dtd

📁 《J2EE企业级应用开发》一书的配套源代码
💻 DTD
📖 第 1 页 / 共 2 页
字号:
method and have the same type.--><!ELEMENT method-params (method-param*)><!--The java class of one parameter for a query.An example follows:   <method-param>java.lang.String</method-param>--><!ELEMENT method-param (#PCDATA)><!--JBossQL query.  JBossQL is a superset of EJB-QL.--><!ELEMENT jboss-ql (#PCDATA)><!--Dynamic JBossQL query.  The JBossQL is passed to the query and compiledon the fly.--><!ELEMENT dynamic-ql EMPTY><!--Explicitly declared sql fragments.--><!ELEMENT declared-sql (select?, from?, where?, order?, other?)><!--Delcares what is to be selected.  A finder may only have the distinct element.--><!ELEMENT select (distinct?, (ejb-name, field-name?)?, alias?)><!--Delared additional SQl to append to the generated from clause.Example:  <from>, FullAddressEJB as a</from>--><!ELEMENT from (#PCDATA)><!-- If the empty distinct element is present, the SELECT DISTINCT syntax will be used. This syntax is used by default for ejbSelectmethods that return a java.util.Set.--><!ELEMENT distinct EMPTY><!--Declares the where clause for the query.Example: <where>TITLE={0} OR ARTIST={0} OR TYPE={0} OR NOTES={0}</where>--><!ELEMENT where (#PCDATA)><!--Declares the order clause for the query.Example: <order>TITLE</order>--><!ELEMENT order (#PCDATA)><!--Declares the other sql that is appended to the end of a query.Example: <other>LIMIT 100 OFFSET 200</other>--><!ELEMENT other (#PCDATA)><!--Declare the alias to use for the main select table.Example: <alias>my_table</alias>--><!ELEMENT alias (#PCDATA)><!--The relationships element contains the ejb-relation elements that will be configured.--><!ELEMENT relationships (ejb-relation+)><!--The ejb-relation element contains the configuration of anejb-relation.--><!ELEMENT ejb-relation (ejb-relation-name, read-only?, read-time-out?,         (foreign-key-mapping | relation-table-mapping)?,         (ejb-relationship-role, ejb-relationship-role)?)><!--Name of the ejb-relation being configured.  This must match an ejb-relation declared in the ejb-jar.xml file.--><!ELEMENT ejb-relation-name (#PCDATA)><!--Specifies that the ejb-relation should be mapped with foreign-keys.This mapping is not available for many-to-many relationships.--><!ELEMENT foreign-key-mapping EMPTY><!--Specifies that the ejb-relation should be mapped with a relation-table.--><!ELEMENT relation-table-mapping (table-name?,          (datasource, datasource-mapping)?, create-table?, remove-table?,         row-locking?, pk-constraint?)><!--The ejb-rejationship-role element contains the configuration of anejb-relationship-role.--><!ELEMENT ejb-relationship-role (ejb-relationship-role-name,         fk-constraint?, key-fields?, read-ahead?)><!--Name of the ejb-relationship-role being configured.  This must matchan ejb-relationship-role declared for this ejb-relation in the ejb-jar.xml file.--><!ELEMENT ejb-relationship-role-name (#PCDATA)><!--Contains the key fields. The interperation of the key fields dependson the mapping style of the relationship.--><!ELEMENT key-fields (key-field*)><!--The key-field element declared the configuration of a key field.The field-name element must match the field-name of one of the primary key fields of the this entity.--><!ELEMENT key-field (field-name,          ((column-name, (jdbc-type, sql-type)?) | (property*))         )><!--Contains the known dependent value classes.--><!ELEMENT dependent-value-classes (dependent-value-class*)><!--The dependent-value-class element contains the configuration of adependent value class.--><!ELEMENT dependent-value-class (description?, class, property+)><!--Name of the java class to which the dependent value class configuration applies.--><!ELEMENT class (#PCDATA)><!--The type-mappings element contains the java to sql mappings.--><!ELEMENT type-mappings (type-mapping+)><!--The type-mapping element contains a named java to sql mapping.This includes both type mapping and function mapping.--><!ELEMENT type-mapping (name, row-locking-template, pk-constraint-template,       fk-constraint-template, alias-header-prefix, alias-header-suffix,      alias-max-length, subquery-supported, true-mapping, false-mapping,      function-mapping*, mapping+)><!--Name of the type-mapping.--><!ELEMENT name (#PCDATA)><!-- This is the template used to create a row lock on the selected rows. The arguments supplied are as follows:1. Select clause2. From clasue; the order of the tables is currently not guarenteed3. Where clauseIf row locking is not supported in select statement this element should be empty. The most common form of row locking is select for update as in the example that follows:SELECT ?1 FROM ?2 WHERE ?3 FOR UPDATE--><!ELEMENT row-locking-template (#PCDATA)><!-- This is the template used to create a primary key constraint in the create table statement. The arguments supplied are as follows:1. Primary key constraint name; which is always pk_{table-name}2. Comma sepperated list of primary key column namesIf a primary key constraint clause is not supported in a create table statementthis element should be empty. The most common form of a primary key constraint follows:CONSTRAINT ?1 PRIMARY KEY (?2)--><!ELEMENT pk-constraint-template (#PCDATA)><!-- This is the template used to create a foreign key constraint in sepperate statement. The arguments supplied are as follows:1. Table name2. Foreign key constraint name; which is always fk_{table-name}_{cmr-field-name}3. Comma sepperated list of foreign key column names4. References table name5. Comma sepperated list of the referenced primary key column namesIf the datasource does not support foreign key constraints this element shouldbe empty. The most common form of a foreign key constraint follows:ALTER TABLE ?1 ADD CONSTRAINT ?2 FOREIGN KEY (?3) REFERENCES ?4 (?5)--><!ELEMENT fk-constraint-template (#PCDATA)><!--An alias header is prepended to a generated table alias by the EJB-QL compilerto prevent name collisions. An alias header is constructed as folows:alias-header-prefix + int_counter + alias-header-suffix--><!ELEMENT alias-header-prefix (#PCDATA)><!ELEMENT alias-header-suffix (#PCDATA)><!ELEMENT alias-max-length (#PCDATA)><!--Does this type-mapping support subqueries. Some EJB-QL opperators are mapped to exists subqueries.  If subquery is false the EJB-QL compiler will use aleft join and is null.The subquery-supported element must be one of the two following:         <create-table>true</create-table>         <create-table>false</create-table>--><!ELEMENT subquery-supported (#PCDATA)><!--The true and false mappings are the mappings for true and false in EJB-QLqueries.--><!ELEMENT true-mapping (#PCDATA)><!ELEMENT false-mapping (#PCDATA)><!--Specifies the mapping from a java type to a jdbc and a sql type.--><!ELEMENT mapping (java-type, jdbc-type, sql-type)><!-- Specifies the java class type to be mapped.--><!ELEMENT java-type (#PCDATA)><!--Specifies the mapping from an EJB-QL function to a sql function.--><!ELEMENT function-mapping (function-name, function-sql)><!--The name of the function to be mapped.--><!ELEMENT function-name (#PCDATA)><!--The sql to which the function is mapped.  The sql can containparameters specified with a question mark followed by the base oneparameter number.  For example, function mapping for concat in Oraclefollows:<function-mapping>   <function-name>concat</function-name>   <function-sql>(?1 || ?2)</function-sql></function-mapping>--><!ELEMENT function-sql (#PCDATA)>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -