openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fa...@apache.org
Subject svn commit: r689649 - in /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc: kernel/ConstraintUpdateManager.java sql/DBDictionary.java
Date Wed, 27 Aug 2008 22:53:29 GMT
Author: fancy
Date: Wed Aug 27 15:53:28 2008
New Revision: 689649

URL: http://svn.apache.org/viewvc?rev=689649&view=rev
Log:
OPENJPA-706 Changes for supporting DB generated version

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ConstraintUpdateManager.java
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ConstraintUpdateManager.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ConstraintUpdateManager.java?rev=689649&r1=689648&r2=689649&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ConstraintUpdateManager.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/ConstraintUpdateManager.java
Wed Aug 27 15:53:28 2008
@@ -344,11 +344,16 @@
 
         // flush delete updates to null fks, then all rows in order, then
         // the insert updates to set circular fk values
-        flush(deleteUpdates, psMgr);
         Collection nodes = dfa.getSortedNodes();
+        flush(deleteUpdates, nodes, psMgr);
+        flush(insertUpdates, psMgr);
+    }
+
+    protected void flush(Collection deleteUpdates, Collection nodes,
+    	PreparedStatementManager psMgr) {
+        flush(deleteUpdates, psMgr);
         for (Iterator itr = nodes.iterator(); itr.hasNext();)
             psMgr.flush((RowImpl) itr.next());
-        flush(insertUpdates, psMgr);
     }
 
     /**

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java?rev=689649&r1=689648&r2=689649&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
Wed Aug 27 15:53:28 2008
@@ -237,6 +237,7 @@
     public boolean supportsModOperator = false;
     public boolean supportsXMLColumn = false;
     public boolean reportsSuccessNoInfoOnBatchUpdates = false;
+    public boolean supportsSelectFromFinalTable = false;
     
     /**
      * Some Databases append whitespace after the schema name 



Mime
View raw message