OPENJPA-706 Changes for supporting DB generated version

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@689649 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Catalina Wei 2008-08-27 22:53:28 +00:00
parent 8fc909c19c
commit 15f6ece819
2 changed files with 8 additions and 2 deletions

View File

@ -344,11 +344,16 @@ public class ConstraintUpdateManager
// 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);
}
/**

View File

@ -237,6 +237,7 @@ public class DBDictionary
public boolean supportsModOperator = false;
public boolean supportsXMLColumn = false;
public boolean reportsSuccessNoInfoOnBatchUpdates = false;
public boolean supportsSelectFromFinalTable = false;
/**
* Some Databases append whitespace after the schema name