openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r1159902 - /openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMFTestCase.java
Date Sat, 20 Aug 2011 19:02:23 GMT
Author: mikedd
Date: Sat Aug 20 19:02:23 2011
New Revision: 1159902

URL: http://svn.apache.org/viewvc?rev=1159902&view=rev
Log:
Add getDBDictionary() method to SingleEMFTestCase. Partial merge from revision 1005883

Modified:
    openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMFTestCase.java

Modified: openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMFTestCase.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMFTestCase.java?rev=1159902&r1=1159901&r2=1159902&view=diff
==============================================================================
--- openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMFTestCase.java
(original)
+++ openjpa/branches/2.0.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMFTestCase.java
Sat Aug 20 19:02:23 2011
@@ -203,7 +203,7 @@ public abstract class SingleEMFTestCase
     }
     
     protected String getForUpdateClause() {
-        DBDictionary dict = ((JDBCConfiguration) emf.getConfiguration()).getDBDictionaryInstance();
+        DBDictionary dict = getDBDictionary();
         if (dict.forUpdateClause != null) {
             return dict.forUpdateClause;
         }
@@ -212,5 +212,9 @@ public abstract class SingleEMFTestCase
         }
         return "";
     }
+
+    protected DBDictionary getDBDictionary() { 
+        return  ((JDBCConfiguration) emf.getConfiguration()).getDBDictionaryInstance();
+    }
 }
 



Mime
View raw message