db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r551180 - in /db/derby/code/trunk/java/engine/org/apache/derby/jdbc: AutoloadedDriver.java Driver20.java Driver30.java Driver40.java
Date Wed, 27 Jun 2007 14:40:14 GMT
Author: djd
Date: Wed Jun 27 07:40:12 2007
New Revision: 551180

URL: http://svn.apache.org/viewvc?view=rev&rev=551180
Log:
Cleanup some unrequired abstract methods in the JDBC drivers. Add a comment to AutoloadedDriver
to clarify some of its behaviour.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java
    db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver20.java
    db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver30.java
    db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver40.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java?view=diff&rev=551180&r1=551179&r2=551180
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/jdbc/AutoloadedDriver.java Wed Jun 27
07:40:12 2007
@@ -38,7 +38,9 @@
 
 /**
    This is the dummy driver which is registered with the DriverManager and
-   which is autoloaded by JDBC4. Loading this class will NOT automatically boot the Derby
engine.
+   which is autoloaded by JDBC4. Loading this class will NOT automatically
+   boot the Derby engine, but it will register this class as a valid
+   Driver with the DriverManager.
    Instead, the engine boots lazily when you ask for a
    Connection. Alternatively, you can force the engine to boot as follows:
 

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=551180&r1=551179&r2=551180
==============================================================================
--- 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 Wed Jun 27 07:40:12
2007
@@ -82,50 +82,6 @@
 
 		AutoloadedDriver.unregisterDriverModule();
 	}
-
-	/**
- 	 * Get a new nested connection.
-	 *
-	 * @param conn	The EmbedConnection.
-	 *
-	 * @return A nested connection object.
-	 *
-	 */
-	public abstract Connection getNewNestedConnection(EmbedConnection conn);
-
-
-	/*
-		Methods to be overloaded in sub-implementations such as
-		a tracing driver.
-	 */
-	public abstract EmbedConnection getNewEmbedConnection(String url, Properties info)
-		 throws SQLException;
-
-	/**
-	 	@exception SQLException if fails to create statement
-	 */
-	public abstract java.sql.PreparedStatement 
-	newEmbedPreparedStatement (EmbedConnection conn, 
-							   String stmt, 
-							   boolean forMetaData,
-							   int resultSetType,
-							   int resultSetConcurrency,
-							   int resultSetHoldability,
-							   int autoGeneratedKeys,
-							   int[] columnIndexes,
-							   String[] columnNames)
-		 throws SQLException;
-
-	/**
-	 	@exception SQLException if fails to create statement
-	 */
-	public abstract java.sql.CallableStatement newEmbedCallableStatement(
-				EmbedConnection conn,
-				String stmt, 
-				int resultSetType,
-				int resultSetConcurrency,
-				int resultSetHoldability)
-		throws SQLException;
   
 	public org.apache.derby.impl.jdbc.EmbedResultSet 
 	newEmbedResultSet(EmbedConnection conn, ResultSet results, boolean forMetaData, org.apache.derby.impl.jdbc.EmbedStatement
statement, boolean isAtomic)

Modified: db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver30.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver30.java?view=diff&rev=551180&r1=551179&r2=551180
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver30.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver30.java Wed Jun 27 07:40:12
2007
@@ -74,7 +74,7 @@
 		Methods to be overloaded in sub-implementations such as
 		a tracing driver.
   */
-	public EmbedConnection getNewEmbedConnection(String url, Properties info)
+	protected EmbedConnection getNewEmbedConnection(String url, Properties info)
 		 throws SQLException 
 	{
 		return new EmbedConnection30(this, url, info);

Modified: db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver40.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver40.java?view=diff&rev=551180&r1=551179&r2=551180
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver40.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/jdbc/Driver40.java Wed Jun 27 07:40:12
2007
@@ -63,7 +63,7 @@
     }
     
     
-    public EmbedConnection getNewEmbedConnection(String url, Properties info)
+    protected EmbedConnection getNewEmbedConnection(String url, Properties info)
     throws SQLException {
         return new EmbedConnection40(this, url, info);
     }



Mime
View raw message