gdamour 2005/02/20 10:44:51
Modified: modules/openejb-builder/src/schema openejb-jar.xsd
Log:
o Add a db-syntax-factory optional element. It corresponds to a database
syntax factory.
This is used to support discrepencies between various DB and JDBC providers.
For instance, the CONCAT and SUBSTRING functions need to be escaped in the
case of Derby and not in the case of Oracle.
The default syntax is set to Derby.
o Add a ejb-ql-compiler-factory optional element. It corresponds to the
strategy used to compile EJB QL queries.
This is used to support discrepencies between the operations supported by
various DB providers.
For instance, a SELECT OBJECT(A) FROM AASN AS A, IN(A.toB) B may produce
two SQL queries: one with an INNER JOIN if supported by the DB or a CROSS JOIN
with the relevant conditions appended to the WHERE clause.
The default compiler strategy is set to Derby.
o PrimaryKeyGenerator.getNextPrimaryKey() throws now a
DuplicateIdentityException; update accordingly the code.
Revision Changes Path
1.7 +2 -0
openejb/modules/openejb-builder/src/schema/openejb-jar.xsd
Index: openejb-jar.xsd
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/schema/openejb-jar.xsd,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- openejb-jar.xsd 15 Feb 2005 03:24:06 -0000 1.6
+++ openejb-jar.xsd 20 Feb 2005 15:44:51 -0000 1.7
@@ -92,6 +92,8 @@
<xs:element ref="sys:dependency" minOccurs="0"
maxOccurs="unbounded"/>
<!-- use a ref to put this element in the naming namespace
rather than openejb namespace-->
<xs:element ref="naming:cmp-connection-factory" minOccurs="0"/>
+ <xs:element name="ejb-ql-compiler-factory" minOccurs="0"/>
+ <xs:element name="db-syntax-factory" minOccurs="0"/>
<xs:element name="enforce-foreign-key-constraints"
minOccurs="0"/>
<xs:element name="enterprise-beans">