User: starksm
Date: 01/10/19 16:54:47
Modified: src/resources/org/jboss/metadata Tag: Branch_2_4
jaws_2_4.dtd
Log:
Update to correspond to what is actually parsed by the metadata classes
Revision Changes Path
No revision
No revision
1.1.2.5 +36 -20 jboss/src/resources/org/jboss/metadata/jaws_2_4.dtd
Index: jaws_2_4.dtd
===================================================================
RCS file: /cvsroot/jboss/jboss/src/resources/org/jboss/metadata/jaws_2_4.dtd,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -r1.1.2.4 -r1.1.2.5
--- jaws_2_4.dtd 2001/07/12 17:45:15 1.1.2.4
+++ jaws_2_4.dtd 2001/10/19 23:54:47 1.1.2.5
@@ -1,15 +1,16 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
<!--
This is the XML DTD for the JAWS deployment descriptor.
<!DOCTYPE jaws PUBLIC
"-//JBoss//DTD JAWS 2.4//EN"
"http://www.jboss.org/j2ee/dtd/jaws_2_4.dtd">
-->
-
<!-- The jaws element is always the root (document) node of the jaws.xml
deployment descriptor or the standardjaws.xml defaults document. All elements
- are declared as optional - if not given in jaws.xml, defaults will be read
+ are declared as optional - if not given in jaws.xml, defaults will be read
from standardjaws.xml -->
-<!ELEMENT jaws
(datasource?,type-mapping?,debug?,default-entity?,enterprise-beans?,type-mappings?)>
+<!ELEMENT jaws (datasource? , type-mapping? , debug? , default-entity? ,
enterprise-beans? , type-mappings?)>
<!-- the datasource element is used to indicate to JAWS which datasource
should be used for persistence of the CMP entities in this ejb-jar. It
@@ -29,14 +30,21 @@
<!ELEMENT type-mapping (#PCDATA)>
<!ELEMENT debug (#PCDATA)>
+
+<!ELEMENT default-entity (create-table , remove-table , tuned-updates , read-only ,
pk-constraint? , select-for-update? , time-out)>
-<!ELEMENT default-entity (create-table, remove-table,
tuned-updates,stable-rowid-column?, read-only, pk-constraint?, select-for-update?,
time-out)>
<!ELEMENT create-table (#PCDATA)>
+
<!ELEMENT remove-table (#PCDATA)>
+
<!ELEMENT tuned-updates (#PCDATA)>
+
<!ELEMENT read-only (#PCDATA)>
+
<!ELEMENT pk-constraint (#PCDATA)>
+
<!ELEMENT select-for-update (#PCDATA)>
+
<!ELEMENT time-out (#PCDATA)>
<!-- the enterpris-beans tag contains overridden attribute mappings for any
@@ -60,26 +68,16 @@
pk-constraint: If create-table is on, create it with a primary key.
time-out: For read-only only, re-load entity after time-out
-->
-<!ELEMENT entity (ejb-name,datasource?,cmp-field*,finder*,read-ahead?,read-only?,
-
table-name?,tuned-updates?,stable-rowid-column?,create-table?,remove-table?,select-for-update?,time-out?,pk-constraint?)>
+<!ELEMENT entity (ejb-name , datasource? , cmp-field* , finder* , read-ahead? ,
read-only? , table-name? , tuned-updates? , create-table? , remove-table? ,
select-for-update? , time-out? , pk-constraint?)>
<!-- ejb-name within an entity element must contain the ejb-name as specified
in ejb-jar.xml. -->
<!ELEMENT ejb-name (#PCDATA)>
-
-<!--
-To use rowid based updates for Oracle
-
-a) In your bean class delcare a field 'rowid' of type String and declare it
-in your ejb-jar.xml and jaws.xml as you would with other CMP fields
-b) In your jaws.xml define an element stable-rowid-column with value = rowid
-It should default to the primary key in case the row id is null - insert-update or
insert-delete or combinations
--->
+<!ELEMENT cmp-field (field-name , column-name , (jdbc-type , sql-type)?)>
-<!ELEMENT stable-rowid-column (#PCDATA)>
-<!ELEMENT cmp-field (field-name, column-name)>
<!ELEMENT field-name (#PCDATA)>
+
<!ELEMENT column-name (#PCDATA)>
<!-- the finder element overrides JAWS default behavior for a finder, or
@@ -90,7 +88,7 @@
or not all data for the entities selected should be loaded immediatly. Note
that JAWS/JBoss cannot guarentee serializable transactions with the read-ahead
option!-->
-<!ELEMENT finder (name,query,order?,read-ahead?)>
+<!ELEMENT finder (name , query , order? , read-ahead?)>
<!-- the name within a finder element must contain the name of the finder
method from the bean's home interface -->
@@ -105,13 +103,31 @@
initial 'order by' verb!) that should be used to order the results of the
query for the finder -->
<!ELEMENT order (#PCDATA)>
+
<!ELEMENT read-ahead (#PCDATA)>
<!ELEMENT table-name (#PCDATA)>
<!ELEMENT type-mappings (type-mapping-definition*)>
-<!ELEMENT type-mapping-definition (name, mapping*)>
-<!ELEMENT mapping (java-type, jdbc-type, sql-type)>
+
+<!ELEMENT type-mapping-definition (name , mapping*)>
+
+<!ELEMENT mapping (java-type , jdbc-type , sql-type)>
+
+<!-- The java-type element specifies the fully qualified name of a Java class.
+This is the Java type of an entity bean cmp-field.
+-->
<!ELEMENT java-type (#PCDATA)>
+
+<!-- The jdbc-type element specifies Java class name to JDBC type mapping. The value
+of the jdbc-type element is the string name of the java.sql.Types constant to which
the
+Java class should map. This is used to determine what JDBC type to use when encoding
+an entity bean field value into a JDBC java.sql.PreparedStatement.
+-->
<!ELEMENT jdbc-type (#PCDATA)>
+
+<!-- The sql-type element specifies the database SQL declaration for the jdbc-type.
+This is used when JAWS creates a table for an entity bean.
+-->
<!ELEMENT sql-type (#PCDATA)>
+
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development