db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r510595 - in /db/derby/code/trunk/java/engine/org/apache/derby: impl/jdbc/EmbedConnection.java jdbc/Driver20.java
Date Thu, 22 Feb 2007 17:21:39 GMT
Author: djd
Date: Thu Feb 22 09:21:38 2007
New Revision: 510595

URL: http://svn.apache.org/viewvc?view=rev&rev=510595
Log:
DERBY-1983 (partial) Changes to make some of the JDBC 2.0 classes/methods abstract in preparation
for switching the base compile level to JDK 1.4. Note DERBY-1984 is entered to cleanup the
JDBC
objects to remove JDBC 2.0 split.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java
    db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java?view=diff&rev=510595&r1=510594&r2=510595
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedConnection.java Thu Feb
22 09:21:38 2007
@@ -86,12 +86,11 @@
   <LI> JDBC 2.0
    </UL>
  * 
- *	@author djd
  *
  * @see TransactionResourceImpl
  *
  */
-public class EmbedConnection implements EngineConnection
+public abstract class EmbedConnection implements EngineConnection
 {
 
 	private static final StandardException exceptionClose = StandardException.closeException();

Modified: db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java?view=diff&rev=510595&r1=510594&r2=510595
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java Thu Feb 22 09:21:38
2007
@@ -91,21 +91,15 @@
 	 * @return A nested connection object.
 	 *
 	 */
-	public Connection getNewNestedConnection(EmbedConnection conn)
-	{
-		return new EmbedConnection(conn);
-	}
+	public abstract Connection getNewNestedConnection(EmbedConnection conn);
+
 
 	/*
 		Methods to be overloaded in sub-implementations such as
 		a tracing driver.
 	 */
-	public EmbedConnection getNewEmbedConnection(String url, Properties info)
-		 throws SQLException 
-	{
-		// make a new local connection with a new transaction resource
-		return new EmbedConnection(this, url, info);
-	}
+	public abstract EmbedConnection getNewEmbedConnection(String url, Properties info)
+		 throws SQLException;
 
 	/**
 	 	@exception SQLException if fails to create statement



Mime
View raw message