|
From: Jeremy B. <jb...@us...> - 2003-04-27 21:36:33
|
User: jboynes
Date: 03/04/27 14:36:31
Modified: src/etc/conf/default Tag: Branch_3_2
standardjbosscmp-jdbc.xml
Log:
Fix for 723908 CMP Performs Unnecessary Check - plus other related stuff :-)
Added a service MBean that can be used to classify SQLExceptions from the JDBC driver.
Implemented check based on standard SQLState for unique constraint violation
Modified JDBCCreate command to skip SELECT if an exception processor is defined
To avoid migration issues, this is <b>not</b> the default behaviour - exmaple configuration is contained in standardjbosscmp-jdbc.xml
Added test case for DuplicateKeyException
Cleaned up UUID and PkSql create commands
Added test cases for UUID and PkSql Key generation
Revision Changes Path
No revision
No revision
1.39.2.13 +7 -1 jboss/src/etc/conf/default/standardjbosscmp-jdbc.xml
Index: standardjbosscmp-jdbc.xml
===================================================================
RCS file: /cvsroot/jboss/jboss/src/etc/conf/default/standardjbosscmp-jdbc.xml,v
retrieving revision 1.39.2.12
retrieving revision 1.39.2.13
diff -u -r1.39.2.12 -r1.39.2.13
--- standardjbosscmp-jdbc.xml 2 Mar 2003 13:43:33 -0000 1.39.2.12
+++ standardjbosscmp-jdbc.xml 27 Apr 2003 21:36:31 -0000 1.39.2.13
@@ -7,7 +7,7 @@
<!-- -->
<!-- ===================================================================== -->
-<!-- $Id: standardjbosscmp-jdbc.xml,v 1.39.2.12 2003/03/02 13:43:33 cooperfbi Exp $ -->
+<!-- $Id: standardjbosscmp-jdbc.xml,v 1.39.2.13 2003/04/27 21:36:31 jboynes Exp $ -->
<jbosscmp-jdbc>
@@ -2110,6 +2110,12 @@
<!-- default command; doesn't support unknown-pk -->
<entity-command name="default"
class="org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand"/>
+
+ <!-- variation on default that skips select before insert -->
+ <entity-command name="no-select-before-insert"
+ class="org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateEntityCommand">
+ <attribute name="SQLExceptionProcessor">jboss.jdbc:service=SQLExceptionProcessor</attribute>
+ </entity-command>
<!-- fetches next key value with the specified sql statement -->
<entity-command name="pk-sql"
|