harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r549717 - in /harmony/enhanced/classlib/branches/java6/modules/sql/src: main/java/java/sql/Array.java main/java/javax/sql/rowset/serial/SerialArray.java test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java
Date Fri, 22 Jun 2007 05:39:14 GMT
Author: tonywu
Date: Thu Jun 21 22:39:14 2007
New Revision: 549717

URL: http://svn.apache.org/viewvc?view=rev&rev=549717
Log:
new method in interface java.sql.Array: public free()V

Modified:
    harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Array.java
    harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java
    harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java

Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Array.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Array.java?view=diff&rev=549717&r1=549716&r2=549717
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Array.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Array.java
Thu Jun 21 22:39:14 2007
@@ -130,4 +130,10 @@
     public ResultSet getResultSet(Map<String, Class<?>> map)
             throws SQLException;
 
+    /**
+     * TODO Javadoc
+     * 
+     * @throws SQLException
+     */
+    public void free() throws SQLException;
 }

Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java?view=diff&rev=549717&r1=549716&r2=549717
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java
Thu Jun 21 22:39:14 2007
@@ -21,6 +21,7 @@
 import java.sql.Array;
 import java.sql.ResultSet;
 import java.sql.SQLException;
+import java.sql.SQLFeatureNotSupportedException;
 import java.sql.Types;
 import java.util.Map;
 
@@ -282,5 +283,13 @@
     public ResultSet getResultSet(Map<String, Class<?>> map)
             throws SerialException {
         throw new UnsupportedOperationException();
+    }
+
+    /**
+     * free the resource related to this object. Always throw
+     * UnsupportedOperationException here.
+     */
+    public void free() throws SQLException {
+        throw new SQLFeatureNotSupportedException();
     }
 }

Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java?view=diff&rev=549717&r1=549716&r2=549717
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java
Thu Jun 21 22:39:14 2007
@@ -302,6 +302,10 @@
                 throws SQLException {
             return null;
         }
+
+        public void free() throws SQLException {
+            
+        }
     }
 
     class MockNullArray implements Array {
@@ -350,6 +354,11 @@
                 throws SQLException {
             return null;
         }
+
+        public void free() throws SQLException {
+            
+        }
+
     }
 
     class MockStringSQLData implements SQLData {
@@ -443,6 +452,10 @@
         public ResultSet getResultSet(long index, int count,
                 Map<String, Class<?>> map) {
             return null;
+        }
+        
+        public void free() throws SQLException {
+
         }
     }
 }



Mime
View raw message