harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
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 GMT
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) {
     }
 }



Mime
View raw message