Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 28419 invoked from network); 24 Jul 2007 07:32:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 07:32:16 -0000 Received: (qmail 61910 invoked by uid 500); 24 Jul 2007 07:31:56 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 61880 invoked by uid 500); 24 Jul 2007 07:31:55 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 61853 invoked by uid 99); 24 Jul 2007 07:31:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 00:31:55 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME 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; Tue, 24 Jul 2007 00:31:53 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id C72151A981D; Tue, 24 Jul 2007 00:31:33 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r558947 - in /harmony/enhanced/classlib/branches/java6/modules/sql/src: main/java/javax/sql/PooledConnection.java test/java/org/apache/harmony/sql/tests/javax/sql/Impl_PooledConnection.java Date: Tue, 24 Jul 2007 07:31:33 -0000 To: commits@harmony.apache.org From: tonywu@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070724073133.C72151A981D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tonywu Date: Tue Jul 24 00:31:32 2007 New Revision: 558947 URL: http://svn.apache.org/viewvc?view=rev&rev=558947 Log: Apply patch HARMONY-4519 with minor modification([classlib][sql][java6] 2 new method in javax.sql.PooledConnection interface) Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/PooledConnection.java harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/Impl_PooledConnection.java Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/PooledConnection.java URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/PooledConnection.java?view=diff&rev=558947&r1=558946&r2=558947 ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/PooledConnection.java (original) +++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/PooledConnection.java Tue Jul 24 00:31:32 2007 @@ -108,4 +108,24 @@ */ public void removeConnectionEventListener( ConnectionEventListener theListener); + + /** + * Add a StatementEventListener to this PooledConnection object. + * + * @param listener + * A StatementEventListener object which is to be added with this + * PooledConnection object + * @since 1.6 + */ + public void addStatementEventListener(StatementEventListener listener); + + /** + * Remove a StatementEventListener from this PooledConnection object. + * + * @param listener + * A StatementEventListener object which is to be removed form + * this PooledConnection object + * @since 1.6 + */ + public void removeStatementEventListener(StatementEventListener listener); } Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/Impl_PooledConnection.java URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/Impl_PooledConnection.java?view=diff&rev=558947&r1=558946&r2=558947 ============================================================================== --- harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/Impl_PooledConnection.java (original) +++ harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/Impl_PooledConnection.java Tue Jul 24 00:31:32 2007 @@ -21,6 +21,7 @@ import java.sql.SQLException; import javax.sql.ConnectionEventListener; import javax.sql.PooledConnection; +import javax.sql.StatementEventListener; class Impl_PooledConnection implements PooledConnection { public void addConnectionEventListener(ConnectionEventListener theListener) { @@ -35,5 +36,11 @@ public void removeConnectionEventListener( ConnectionEventListener theListener) { + } + + public void addStatementEventListener(StatementEventListener listener) { + } + + public void removeStatementEventListener(StatementEventListener listener) { } }