You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2007/01/16 15:30:53 UTC

svn commit: r496707 - in /harmony/enhanced/classlib/trunk/modules/sql/src: main/java/javax/sql/rowset/serial/SerialClob.java test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java

Author: hindessm
Date: Tue Jan 16 06:30:52 2007
New Revision: 496707

URL: http://svn.apache.org/viewvc?view=rev&rev=496707
Log:
Applying patches from "[#HARMONY-3007] [classlib][sql] Stubs for
javax.sql.rowset.serial.SerialClob".

Added:
    harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java   (with props)
    harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java   (with props)

Added: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java?view=auto&rev=496707
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java (added)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java Tue Jan 16 06:30:52 2007
@@ -0,0 +1,115 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package javax.sql.rowset.serial;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.io.Reader;
+import java.io.Serializable;
+import java.io.Writer;
+import java.sql.Clob;
+import java.sql.SQLException;
+
+import org.apache.harmony.luni.util.NotImplementedException;
+
+public class SerialClob implements Clob, Serializable, Cloneable {
+
+    // required by serialized form
+    @SuppressWarnings("unused")
+    private static final long serialVersionUID = -1662519690087375313L;
+
+    // required by serialized form
+    @SuppressWarnings("unused")
+    private char[] buf;
+
+    // required by serialized form
+    @SuppressWarnings("unused")
+    private Clob clob;
+
+    // required by serialized form
+    @SuppressWarnings("unused")
+    private long len;
+
+    // required by serialized form
+    @SuppressWarnings("unused")
+    private long origLen;
+
+    public SerialClob(char[] ch) throws SerialException, SQLException,
+            NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public SerialClob(Clob clob) throws SerialException, SQLException,
+            NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public long length() throws SerialException, NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public InputStream getAsciiStream() throws SerialException,
+            NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public Reader getCharacterStream() throws SerialException,
+            NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public String getSubString(long pos, int length) throws SerialException,
+            NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public long position(Clob searchstr, long start) throws SerialException,
+            SQLException, NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public long position(String searchstr, long start) throws SerialException,
+            SQLException, NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public OutputStream setAsciiStream(long pos) throws SerialException,
+            SQLException, NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public Writer setCharacterStream(long pos) throws SerialException,
+            SQLException, NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public int setString(long pos, String str) throws SerialException,
+            NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public int setString(long pos, String str, int offset, int len)
+            throws SerialException, NotImplementedException {
+        throw new NotImplementedException();
+    }
+
+    public void truncate(long len) throws SerialException,
+            NotImplementedException {
+        throw new NotImplementedException();
+    }
+}

Propchange: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java?view=auto&rev=496707
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java (added)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java Tue Jan 16 06:30:52 2007
@@ -0,0 +1,76 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+
+package org.apache.harmony.sql.tests.javax.sql.rowset.serial;
+
+import junit.framework.TestCase;
+
+public class SerialClobTest extends TestCase {
+
+    public void testSerialClob$C() {
+        // TODO: Not yet implemented
+    }
+
+    public void testSerialClobLClob() {
+        // TODO: Not yet implemented
+    }
+
+    public void testLength() {
+        // TODO: Not yet implemented
+    }
+
+    public void testGetAsciiStream() {
+        // TODO: Not yet implemented
+    }
+
+    public void testGetCharacterStream() {
+        // TODO: Not yet implemented
+    }
+
+    public void testGetSubString() {
+        // TODO: Not yet implemented
+    }
+
+    public void testPositionLClobJ() {
+        // TODO: Not yet implemented
+    }
+
+    public void testPositionLStringJ() {
+        // TODO: Not yet implemented
+    }
+
+    public void testSetAsciiStream() {
+        // TODO: Not yet implemented
+    }
+
+    public void testSetCharacterStream() {
+        // TODO: Not yet implemented
+    }
+
+    public void testSetStringJLString() {
+        // TODO: Not yet implemented
+    }
+
+    public void testSetStringJLStringII() {
+        // TODO: Not yet implemented
+    }
+
+    public void testTruncate() {
+        // TODO: Not yet implemented
+    }
+
+}

Propchange: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java
------------------------------------------------------------------------------
    svn:eol-style = native