User: d_jencks
Date: 02/03/10 11:59:01
Modified: core/resources/xdoclet/ejb/vendor jbosscmp-jdbc_3_0.dtd
Log:
updated to current jboss version, has a slight xdoclet-friendly fix
Revision Changes Path
1.4 +58 -7 xdoclet/core/resources/xdoclet/ejb/vendor/jbosscmp-jdbc_3_0.dtd
Index: jbosscmp-jdbc_3_0.dtd
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/core/resources/xdoclet/ejb/vendor/jbosscmp-jdbc_3_0.dtd,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- jbosscmp-jdbc_3_0.dtd 7 Feb 2002 00:59:03 -0000 1.3
+++ jbosscmp-jdbc_3_0.dtd 10 Mar 2002 19:59:01 -0000 1.4
@@ -183,7 +183,7 @@
The cmp-field element contains the configuration of a cmp-field.
-->
<!ELEMENT cmp-field (field-name, read-only?, time-out?,
- column-name?, ((jdbc-type, sql-type) | (property+))? )>
+ column-name?, not-null?, ((jdbc-type, sql-type) | (property+))? )>
<!--
@@ -200,6 +200,12 @@
<!--
+If present the field will not allow a field value.
+-->
+<!ELEMENT not-null EMPTY>
+
+
+<!--
This is the JDBC type that is used when setting parameters in a JDBC
PreparedStatement or loading data from a JDBC ResultSet for this
cmp-field. The valid types are defined in java.sql.Types.
@@ -219,7 +225,7 @@
value class property of a cmp-field that is the type of a dependent
value class.
-->
-<!ELEMENT property (property-name, column-name?,
+<!ELEMENT property (property-name, column-name?, not-null?,
(jdbc-type, sql-type)?)>
@@ -269,7 +275,8 @@
<!--
The query element contains the configuration of a query.
-->
-<!ELEMENT query (description, query-method, declared-sql?, read-ahead?)>
+<!ELEMENT query (description?, query-method,
+ (jboss-ql | dynamic-ql | declared-sql)?, read-ahead?)>
<!--
@@ -303,14 +310,28 @@
<!--
+JBossQL query. JBossQL is a superset of EJB-QL.
+-->
+<!ELEMENT jboss-ql (#PCDATA)>
+
+
+<!--
+Dynamic JBossQL query. The JBossQL is passed to the query and compiled
+on the fly.
+-->
+<!ELEMENT dynamic-ql EMPTY>
+
+
+<!--
Explicitly declared sql fragments.
-->
<!ELEMENT declared-sql (select?, from?, where?, order?)>
+
<!--
Delcares what is to be selected. A finder may only have the distinct element.
-->
-<!ELEMENT select (distinct?, (ejb-name, field-name?)?)>
+<!ELEMENT select (distinct?, (ejb-name, field-name?)?, alias?)>
<!--
@@ -345,6 +366,14 @@
<!--
+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.
-->
@@ -414,9 +443,9 @@
<!--
-Contains the known dependene value classes.
+Contains the known dependent value classes.
-->
-<!ELEMENT dependent-value-classes (dependent-value-class+)>
+<!ELEMENT dependent-value-classes (dependent-value-class*)>
<!--
@@ -443,7 +472,8 @@
This includes both type mapping and function mapping.
-->
<!ELEMENT type-mapping (name, row-locking-template, pk-constraint-template,
- fk-constraint-template, function-mapping*, mapping+)>
+ fk-constraint-template, alias-header-prefix, alias-header-suffix,
+ alias-max-length, subquery-supported, function-mapping*, mapping+)>
<!--
Name of the type-mapping.
@@ -497,6 +527,27 @@
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 compiler
+to 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 a
+left 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)>
<!--
Specifies the mapping from a java type to a jdbc and a sql type.
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel