Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 2920 invoked from network); 21 Feb 2008 10:46:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2008 10:46:22 -0000 Received: (qmail 18831 invoked by uid 500); 21 Feb 2008 10:46:17 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 18809 invoked by uid 500); 21 Feb 2008 10:46:17 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 18798 invoked by uid 99); 21 Feb 2008 10:46:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 02:46:17 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 10:45:53 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 24D251A9832; Thu, 21 Feb 2008 02:46:02 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: derby-commits@db.apache.org From: kristwaa@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080221104602.24D251A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 ------------------------