db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r629739 - in /db/derby/code/trunk/java/client/org/apache/derby/client: ClientPooledConnection.java am/LogicalConnection.java
Date Thu, 21 Feb 2008 10:46:01 GMT
Author: kristwaa
Date: Thu Feb 21 02:45:59 2008
New Revision: 629739

URL: http://svn.apache.org/viewvc?rev=629739&view=rev
Log:
DERBY-3328: Introduce a caching logical connection and logical prepared statement in the client
driver.
Renamed method ClientPooledConnection.trashConnection to informListeners.
Patch file: derby-3326-2a-method_rename.diff

Modified:
    db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java
    db/derby/code/trunk/java/client/org/apache/derby/client/am/LogicalConnection.java

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java?rev=629739&r1=629738&r2=629739&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/ClientPooledConnection.java Thu
Feb 21 02:45:59 2008
@@ -316,7 +316,7 @@
      * 
      * @param exception the exception that occurred on the connection
      */
-    public void trashConnection(SqlException exception) {
+    public void informListeners(SqlException exception) {
 		// only report fatal error  
 		if (exception.getErrorCode() < ExceptionSeverity.SESSION_SEVERITY)
 			return;

Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/LogicalConnection.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/LogicalConnection.java?rev=629739&r1=629738&r2=629739&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/LogicalConnection.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/LogicalConnection.java Thu
Feb 21 02:45:59 2008
@@ -73,7 +73,7 @@
 
             if (physicalConnection_.isClosed()) // connection is closed or has become stale
             {
-                pooledConnection_.trashConnection(new SqlException(null, 
+                pooledConnection_.informListeners(new SqlException(null, 
                     new ClientMessageId(
                         SQLState.PHYSICAL_CONNECTION_ALREADY_CLOSED)));
             } else {
@@ -100,7 +100,7 @@
             if (physicalConnection_.isClosed()) // connection is closed or has become stale
             {
                 throw new SqlException(null, 
-                    new ClientMessageId(SQLState.NO_CURRENT_CONNECTION)); // no call to trashConnection()
+                    new ClientMessageId(SQLState.NO_CURRENT_CONNECTION)); // no call to informListeners()
             } else {
                 ; // no call to recycleConnection()
             }
@@ -142,7 +142,7 @@
      */
 	final void notifyException(SQLException sqle) {
         if (physicalConnection_ != null) 
-        	pooledConnection_.trashConnection(new SqlException(sqle));
+        	pooledConnection_.informListeners(new SqlException(sqle));
 	}
 
     // ---------------------- wrapped public entry points ------------------------



Mime
View raw message