db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r428065 - /db/derby/code/trunk/java/client/org/apache/derby/client/net/NetConnection40.java
Date Wed, 02 Aug 2006 17:42:09 GMT
Author: fuzzylogic
Date: Wed Aug  2 10:42:08 2006
New Revision: 428065

URL: http://svn.apache.org/viewvc?rev=428065&view=rev
Log:
DERBY-1630: Remove reference to engine class in NetConnection40. Generate
client exception using client.am.SqlException.

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/net/NetConnection40.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/net/NetConnection40.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/net/NetConnection40.java?rev=428065&r1=428064&r2=428065&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/net/NetConnection40.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/net/NetConnection40.java Wed Aug
 2 10:42:08 2006
@@ -26,12 +26,12 @@
 import org.apache.derby.client.am.SQLExceptionFactory;
 import org.apache.derby.client.am.SqlException;
 import java.sql.Blob;
-import java.sql.SQLClientInfoException;
 import java.sql.Clob;
 import java.sql.Connection;
 import java.sql.NClob;
 import java.sql.PreparedStatement;
 import java.sql.ResultSet;
+import java.sql.SQLClientInfoException;
 import java.sql.SQLException;
 import java.sql.SQLXML;
 import java.sql.Struct;
@@ -39,7 +39,6 @@
 import java.util.Map;
 import java.util.Properties;
 import java.util.Enumeration;
-import org.apache.derby.impl.jdbc.Util;
 import org.apache.derby.client.ClientPooledConnection;
 import org.apache.derby.client.am.ClientMessageId;
 import org.apache.derby.client.am.FailedProperties40;
@@ -210,9 +209,10 @@
     public boolean isValid(int timeout) throws SQLException {
         // Validate that the timeout has a legal value
         if (timeout < 0) {
-            throw Util.generateCsSQLException(SQLState.INVALID_API_PARAMETER,
-                                              new Integer(timeout), "timeout",
-                                              "java.sql.Connection.isValid");
+            throw new SqlException(agent_.logWriter_,
+                               new ClientMessageId(SQLState.INVALID_API_PARAMETER),
+                               new Integer(timeout), "timeout",
+                               "java.sql.Connection.isValid" ).getSQLException();
         }
 
         // Check if the connection is closed



Mime
View raw message