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/04/12 15:32:29 UTC
svn commit: r527937 - in /harmony/enhanced/classlib/trunk/modules/sql/src:
main/java/javax/sql/rowset/serial/
test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/
Author: hindessm
Date: Thu Apr 12 06:32:27 2007
New Revision: 527937
URL: http://svn.apache.org/viewvc?view=rev&rev=527937
Log:
Applying patch from "[#HARMONY-3562] [classlib][sql] stubs for
javax.sql.rowset.serial.SerialArray, SerialInputImpl, SerialOutputImpl".
Added:
harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java (with props)
harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java (with props)
harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java (with props)
harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SQLInputImplTest.java (with props)
harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SQLOutputImplTest.java (with props)
harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java (with props)
Added: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java?view=auto&rev=527937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java (added)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java Thu Apr 12 06:32:27 2007
@@ -0,0 +1,135 @@
+/*
+ * 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.Reader;
+import java.math.BigDecimal;
+import java.net.URL;
+import java.sql.Array;
+import java.sql.Blob;
+import java.sql.Clob;
+import java.sql.Date;
+import java.sql.Ref;
+import java.sql.SQLException;
+import java.sql.SQLInput;
+import java.sql.Time;
+import java.sql.Timestamp;
+
+import org.apache.harmony.luni.util.NotImplementedException;
+
+public class SQLInputImpl implements SQLInput {
+
+ public Array readArray() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public InputStream readAsciiStream() throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public BigDecimal readBigDecimal() throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public InputStream readBinaryStream() throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Blob readBlob() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public boolean readBoolean() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public byte readByte() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public byte[] readBytes() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Reader readCharacterStream() throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Clob readClob() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Date readDate() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public double readDouble() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public float readFloat() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public int readInt() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public long readLong() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Object readObject() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Ref readRef() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public short readShort() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public String readString() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Time readTime() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Timestamp readTimestamp() throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public URL readURL() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public boolean wasNull() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+}
Propchange: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLInputImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java?view=auto&rev=527937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java (added)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java Thu Apr 12 06:32:27 2007
@@ -0,0 +1,178 @@
+/*
+ * 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.Reader;
+import java.math.BigDecimal;
+import java.net.URL;
+import java.sql.Array;
+import java.sql.Blob;
+import java.sql.Clob;
+import java.sql.Date;
+import java.sql.Ref;
+import java.sql.SQLData;
+import java.sql.SQLException;
+import java.sql.SQLOutput;
+import java.sql.Struct;
+import java.sql.Time;
+import java.sql.Timestamp;
+
+import org.apache.harmony.luni.util.NotImplementedException;
+
+public class SQLOutputImpl implements SQLOutput {
+
+ public void writeArray(Array theArray) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeAsciiStream(InputStream theStream) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeBigDecimal(BigDecimal theBigDecimal) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeBinaryStream(InputStream theStream) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeBlob(Blob theBlob) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeBoolean(boolean theFlag) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeByte(byte theByte) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeBytes(byte[] theBytes) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeCharacterStream(Reader theStream) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeClob(Clob theClob) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeDate(Date theDate) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeDouble(double theDouble) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeFloat(float theFloat) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeInt(int theInt) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeLong(long theLong) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeObject(SQLData theObject) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeRef(Ref theRef) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeShort(short theShort) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeString(String theString) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeStruct(Struct theStruct) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeTime(Time theTime) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeTimestamp(Timestamp theTimestamp) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+ public void writeURL(URL theURL) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+
+ }
+
+}
Propchange: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SQLOutputImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java?view=auto&rev=527937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java (added)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java Thu Apr 12 06:32:27 2007
@@ -0,0 +1,79 @@
+/*
+ * 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.Serializable;
+import java.sql.Array;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Map;
+
+import org.apache.harmony.luni.util.NotImplementedException;
+
+public class SerialArray implements Array, Serializable, Cloneable {
+
+ public Object getArray() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Object getArray(long index, int count) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Object getArray(long index, int count, Map<String, Class<?>> map)
+ throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public Object getArray(Map<String, Class<?>> map) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public int getBaseType() throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public String getBaseTypeName() throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public ResultSet getResultSet() throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public ResultSet getResultSet(long index, int count) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public ResultSet getResultSet(long index, int count,
+ Map<String, Class<?>> map) throws SQLException,
+ NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+ public ResultSet getResultSet(Map<String, Class<?>> map)
+ throws SQLException, NotImplementedException {
+ throw new NotImplementedException();
+ }
+
+}
Propchange: harmony/enhanced/classlib/trunk/modules/sql/src/main/java/javax/sql/rowset/serial/SerialArray.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SQLInputImplTest.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/SQLInputImplTest.java?view=auto&rev=527937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SQLInputImplTest.java (added)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SQLInputImplTest.java Thu Apr 12 06:32:27 2007
@@ -0,0 +1,116 @@
+/*
+ * 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 SQLInputImplTest extends TestCase {
+
+ public void testReadArray() {
+
+ }
+
+ public void testReadAsciiStream() {
+
+ }
+
+ public void testReadBigDecimal() {
+
+ }
+
+ public void testReadBinaryStream() {
+
+ }
+
+ public void testReadBlob() {
+
+ }
+
+ public void testReadBoolean() {
+
+ }
+
+ public void testReadByte() {
+
+ }
+
+ public void testReadBytes() {
+
+ }
+
+ public void testReadCharacterStream() {
+
+ }
+
+ public void testReadClob() {
+
+ }
+
+ public void testReadDate() {
+
+ }
+
+ public void testReadDouble() {
+
+ }
+
+ public void testReadFloat() {
+
+ }
+
+ public void testReadInt() {
+
+ }
+
+ public void testReadLong() {
+
+ }
+
+ public void testReadObject() {
+
+ }
+
+ public void testReadRef() {
+
+ }
+
+ public void testReadShort() {
+
+ }
+
+ public void testReadString() {
+
+ }
+
+ public void testReadTime() {
+
+ }
+
+ public void testReadTimestamp() {
+
+ }
+
+ public void testReadURL() {
+
+ }
+
+ public void testWasNull() {
+
+ }
+
+}
Propchange: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SQLInputImplTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SQLOutputImplTest.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/SQLOutputImplTest.java?view=auto&rev=527937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SQLOutputImplTest.java (added)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SQLOutputImplTest.java Thu Apr 12 06:32:27 2007
@@ -0,0 +1,116 @@
+/*
+ * 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 SQLOutputImplTest extends TestCase {
+
+ public void testWriteArray() {
+
+ }
+
+ public void testWriteAsciiStream() {
+
+ }
+
+ public void testWriteBigDecimal() {
+
+ }
+
+ public void testWriteBinaryStream() {
+
+ }
+
+ public void testWriteBlob() {
+
+ }
+
+ public void testWriteBoolean() {
+
+ }
+
+ public void testWriteByte() {
+
+ }
+
+ public void testWriteBytes() {
+
+ }
+
+ public void testWriteCharacterStream() {
+
+ }
+
+ public void testWriteClob() {
+
+ }
+
+ public void testWriteDate() {
+
+ }
+
+ public void testWriteDouble() {
+
+ }
+
+ public void testWriteFloat() {
+
+ }
+
+ public void testWriteInt() {
+
+ }
+
+ public void testWriteLong() {
+
+ }
+
+ public void testWriteObject() {
+
+ }
+
+ public void testWriteRef() {
+
+ }
+
+ public void testWriteShort() {
+
+ }
+
+ public void testWriteString() {
+
+ }
+
+ public void testWriteStruct() {
+
+ }
+
+ public void testWriteTime() {
+
+ }
+
+ public void testWriteTimestamp() {
+
+ }
+
+ public void testWriteURL() {
+
+ }
+
+}
Propchange: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SQLOutputImplTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: harmony/enhanced/classlib/trunk/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/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java?view=auto&rev=527937
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java (added)
+++ harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java Thu Apr 12 06:32:27 2007
@@ -0,0 +1,63 @@
+/*
+ * 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 SerialArrayTest extends TestCase {
+
+ public void testGetArray() {
+
+ }
+
+ public void testGetArrayLongInt() {
+
+ }
+
+ public void testGetArrayLongIntMapOfStringClassOfQ() {
+
+ }
+
+ public void testGetArrayMapOfStringClassOfQ() {
+
+ }
+
+ public void testGetBaseType() {
+
+ }
+
+ public void testGetBaseTypeName() {
+
+ }
+
+ public void testGetResultSet() {
+
+ }
+
+ public void testGetResultSetLongInt() {
+
+ }
+
+ public void testGetResultSetLongIntMapOfStringClassOfQ() {
+
+ }
+
+ public void testGetResultSetMapOfStringClassOfQ() {
+
+ }
+
+}
Propchange: harmony/enhanced/classlib/trunk/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialArrayTest.java
------------------------------------------------------------------------------
svn:eol-style = native