db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r385352 - in /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager: DataStoreConnection.java DataStoreConnectionThrows.java
Date Sun, 12 Mar 2006 19:16:33 GMT
Author: clr
Date: Sun Mar 12 11:16:32 2006
New Revision: 385352

URL: http://svn.apache.org/viewcvs?rev=385352&view=rev
Log:
JDO-191 Fixed Connection to be cast of JDOConnection

Modified:
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnection.java
    db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnectionThrows.java

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnection.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnection.java?rev=385352&r1=385351&r2=385352&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnection.java
(original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnection.java
Sun Mar 12 11:16:32 2006
@@ -89,13 +89,12 @@
         String schema = getPMFProperty("javax.jdo.mapping.Schema");
         String sql = "SELECT X, Y FROM " + schema + ".PCPoint";
         JDOConnection jconn = pm.getDataStoreConnection();
+        Connection conn = (Connection)jconn;
         try {
             getPM().currentTransaction().begin();
-            jconn = pm.getDataStoreConnection();
-            Connection conn = (Connection)jconn.getNativeConnection();
             if (conn.getAutoCommit()) {
                 appendMessage(ASSERTION_FAILED + 
-                        "Autocommit must not be true in native connection.");
+                        "Autocommit must not be true in JDO connection.");
             };
             PreparedStatement ps = conn.prepareStatement(sql);
             ResultSet rs = ps.executeQuery();

Modified: db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnectionThrows.java
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnectionThrows.java?rev=385352&r1=385351&r2=385352&view=diff
==============================================================================
--- db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnectionThrows.java
(original)
+++ db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/persistencemanager/DataStoreConnectionThrows.java
Sun Mar 12 11:16:32 2006
@@ -97,7 +97,7 @@
             return;
         }
         JDOConnection jconn = getPM().getDataStoreConnection();
-        Connection conn = (Connection)jconn.getNativeConnection();
+        Connection conn = (Connection)jconn;
         check13Methods(conn);
         if (isJRE14orBetter()) {
             check14Methods(conn);



Mime
View raw message