User: kvvinaymenon
Date: 01/07/11 08:27:01
Modified: src/resources/org/jboss/metadata Tag: Branch_2_4
jaws_2_4.dtd
Log:
Support for stable row id based updates.
Revision Changes Path
No revision
No revision
1.1.2.3 +14 -2 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.2
retrieving revision 1.1.2.3
diff -u -r1.1.2.2 -r1.1.2.3
--- jaws_2_4.dtd 2001/07/03 20:50:21 1.1.2.2
+++ jaws_2_4.dtd 2001/07/11 15:27:01 1.1.2.3
@@ -28,7 +28,7 @@
<!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)>
@@ -59,7 +59,7 @@
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?,create-table?,remove-table?,select-for-update?,time-out?,pk-constraint?)>
+
table-name?,tuned-updates?,stable-rowid-column?,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. -->
@@ -67,6 +67,18 @@
<!-- The datasource at bean level. If specified the bean will use this datasource
instead of the global one.
Else the global one is used -->
<!ELEMENT datasource (#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 stable-rowid-column (#PCDATA)>
<!ELEMENT cmp-field (field-name, column-name)>
<!ELEMENT field-name (#PCDATA)>
<!ELEMENT column-name (#PCDATA)>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development