You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by py...@apache.org on 2007/07/18 10:05:36 UTC
svn commit: r557189 - in
/harmony/enhanced/classlib/branches/java6/modules/sql/src:
main/java/java/sql/ main/java/javax/sql/rowset/serial/
test/java/org/apache/harmony/sql/tests/java/sql/
test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/
Author: pyang
Date: Wed Jul 18 01:05:33 2007
New Revision: 557189
URL: http://svn.apache.org/viewvc?view=rev&rev=557189
Log:
Add Java 6 new API for interfaces in java.sql package, also add implementation of SerialClob which needs to implement the new methods
Modified:
harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/CallableStatement.java
harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Clob.java
harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Connection.java
harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/DatabaseMetaData.java
harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/PreparedStatement.java
harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/ResultSet.java
harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Statement.java
harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java
harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java
harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java
Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/CallableStatement.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/CallableStatement.java?view=diff&rev=557189&r1=557188&r2=557189
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/CallableStatement.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/CallableStatement.java Wed Jul 18 01:05:33 2007
@@ -1299,4 +1299,85 @@
* if a database error happens
*/
public boolean wasNull() throws SQLException;
+
+ // TODO add javadoc
+ public RowId getRowId(int parameterIndex) throws SQLException;
+
+ public RowId getRowId(String parameterName) throws SQLException;
+
+ public void setRowId(String parameterName, RowId x) throws SQLException;
+
+ public void setNString(String parameterName, String value)
+ throws SQLException;
+
+ public void setNCharacterStream(String parameterName, Reader value,
+ long length) throws SQLException;
+
+ public void setNClob(String parameterName, NClob value) throws SQLException;
+
+ public void setClob(String parameterName, Reader reader, long length)
+ throws SQLException;
+
+ public void setBlob(String parameterName, InputStream inputStream,
+ long length) throws SQLException;
+
+ public void setNClob(String parameterName, Reader reader, long length)
+ throws SQLException;
+
+ public NClob getNClob(int parameterIndex) throws SQLException;
+
+ public NClob getNClob(String parameterName) throws SQLException;
+
+ public void setSQLXML(String parameterName, SQLXML xmlObject)
+ throws SQLException;
+
+ public SQLXML getSQLXML(int parameterIndex) throws SQLException;
+
+ public SQLXML getSQLXML(String parameterName) throws SQLException;
+
+ public String getNString(int parameterIndex) throws SQLException;
+
+ public String getNString(String parameterName) throws SQLException;
+
+ public Reader getNCharacterStream(int parameterIndex) throws SQLException;
+
+ public Reader getNCharacterStream(String parameterName) throws SQLException;
+
+ public Reader getCharacterStream(int parameterIndex) throws SQLException;
+
+ public Reader getCharacterStream(String parameterName) throws SQLException;
+
+ public void setBlob(String parameterName, Blob x) throws SQLException;
+
+ public void setClob(String parameterName, Clob x) throws SQLException;
+
+ public void setAsciiStream(String parameterName, InputStream x, long length)
+ throws SQLException;
+
+ public void setBinaryStream(String parameterName, InputStream x, long length)
+ throws SQLException;
+
+ public void setCharacterStream(String parameterName, Reader reader,
+ long length) throws SQLException;
+
+ public void setAsciiStream(String parameterName, InputStream x)
+ throws SQLException;
+
+ public void setBinaryStream(String parameterName, InputStream x)
+ throws SQLException;
+
+ public void setCharacterStream(String parameterName, Reader reader)
+ throws SQLException;
+
+ public void setNCharacterStream(String parameterName, Reader value)
+ throws SQLException;
+
+ public void setClob(String parameterName, Reader reader)
+ throws SQLException;
+
+ public void setBlob(String parameterName, InputStream inputStream)
+ throws SQLException;
+
+ public void setNClob(String parameterName, Reader reader)
+ throws SQLException;
}
Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Clob.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Clob.java?view=diff&rev=557189&r1=557188&r2=557189
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Clob.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Clob.java Wed Jul 18 01:05:33 2007
@@ -18,8 +18,8 @@
package java.sql;
import java.io.InputStream;
-import java.io.Reader;
import java.io.OutputStream;
+import java.io.Reader;
import java.io.Writer;
/**
@@ -171,4 +171,13 @@
* if an error occurs accessing the Clob
*/
public void truncate(long len) throws SQLException;
+
+ /**
+ * TODO Javadoc
+ *
+ * @throws SQLException
+ */
+ public void free() throws SQLException;
+
+ public Reader getCharacterStream(long pos, long length) throws SQLException;
}
Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Connection.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Connection.java?view=diff&rev=557189&r1=557188&r2=557189
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Connection.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Connection.java Wed Jul 18 01:05:33 2007
@@ -18,6 +18,7 @@
package java.sql;
import java.util.Map;
+import java.util.Properties;
/**
* A Connection represents a link from a Java application to a database. All SQL
@@ -756,4 +757,35 @@
* <code>map</code> is not an instance of {@link Map}.
*/
public void setTypeMap(Map<String, Class<?>> map) throws SQLException;
+
+ /**
+ * TODO Javadoc
+ *
+ * @return
+ */
+ public Clob createClob() throws SQLException;
+
+ public Blob createBlob() throws SQLException;
+
+ public NClob createNClob() throws SQLException;
+
+ public SQLXML createSQLXML() throws SQLException;
+
+ public boolean isValid(int timeout) throws SQLException;
+
+ public void setClientInfo(String name, String value)
+ throws SQLClientInfoException;
+
+ public void setClientInfo(Properties properties)
+ throws SQLClientInfoException;
+
+ public String getClientInfo(String name) throws SQLException;
+
+ public Properties getClientInfo() throws SQLException;
+
+ public Array createArrayOf(String typeName, Object[] elements)
+ throws SQLException;
+
+ public Struct createStruct(String typeName, Object[] attributes)
+ throws SQLException;
}
Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/DatabaseMetaData.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/DatabaseMetaData.java?view=diff&rev=557189&r1=557188&r2=557189
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/DatabaseMetaData.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/DatabaseMetaData.java Wed Jul 18 01:05:33 2007
@@ -3145,4 +3145,95 @@
* a database error occurred
*/
public boolean usesLocalFiles() throws SQLException;
+
+ /**
+ * Answers the lifetime for which a RowId object remains valid if this data
+ * source supports the SQL ROWID type
+ *
+ * @return the time of a RowId object that remains valid.
+ * @throws SQLException
+ * if any error occurs
+ */
+ RowIdLifetime getRowIdLifetime() throws SQLException;
+
+ /**
+ * Answers the schema names ordered by TABLE_CATALOG and TABLE_SCHEM.
+ *
+ * @param catalog
+ * the catalog
+ * @param schemaPattern
+ * the schema pattern
+ * @return the schema names
+ * @throws SQLException
+ * if any error occurs
+ */
+ ResultSet getSchemas(String catalog, String schemaPattern)
+ throws SQLException;
+
+ /**
+ * Determin if this database supports invoking user-defined or vendor
+ * functions using the stored procedure escape syntax.
+ *
+ * @return true if this database supports invoking user-defined or vendor
+ * functions using the stored procedure escape syntax.
+ * @throws SQLException
+ * if any error occurs
+ */
+ boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException;
+
+ /**
+ * Determin if a SQLException while autoCommit is true inidcates that all
+ * open ResultSets are closed, even ones that are holdable
+ *
+ * @return true if all open ResultSets are closed
+ * @throws SQLException
+ * if any error occurs
+ */
+ boolean autoCommitFailureClosesAllResultSets() throws SQLException;
+
+ /**
+ * Answers a list of the client info properties of the driver.
+ *
+ * @return a list of the client info
+ * @throws SQLException
+ * if any error occurs
+ */
+ ResultSet getClientInfoProperties() throws SQLException;
+
+ /**
+ * Answers a description of the system and user functions available
+ * according to the given catalog.
+ *
+ * @param catalog
+ * the given catalong
+ * @param schemaPattern
+ * the schema pattern
+ * @param functionNamePattern
+ * the function name pattern
+ * @return user functions
+ * @throws SQLException
+ * if any error occurs
+ */
+ ResultSet getFunctions(String catalog, String schemaPattern,
+ String functionNamePattern) throws SQLException;
+
+ /**
+ * Answers a description according to the given catalog's system or user
+ * function parameters and return type.
+ *
+ * @param catalog
+ * the given catalong
+ * @param schemaPattern
+ * the schema pattern
+ * @param functionNamePattern
+ * the function name pattern
+ * @param columnNamePattern
+ * the column name pattern
+ * @return a description of user functions
+ * @throws SQLException
+ * if any error occurs
+ */
+ ResultSet getFunctionColumns(String catalog, String schemaPattern,
+ String functionNamePattern, String columnNamePattern)
+ throws SQLException;
}
Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/PreparedStatement.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/PreparedStatement.java?view=diff&rev=557189&r1=557188&r2=557189
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/PreparedStatement.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/PreparedStatement.java Wed Jul 18 01:05:33 2007
@@ -622,4 +622,57 @@
* if a database error happens
*/
public void setURL(int parameterIndex, URL theURL) throws SQLException;
+
+ /**
+ * TODO Javadoc
+ */
+ public void setRowId(int parameterIndex, RowId x) throws SQLException;
+
+ public void setNString(int parameterIndex, String value)
+ throws SQLException;
+
+ public void setNCharacterStream(int parameterIndex, Reader value,
+ long length) throws SQLException;
+
+ public void setNClob(int parameterIndex, NClob value) throws SQLException;
+
+ public void setClob(int parameterIndex, Reader reader, long length)
+ throws SQLException;
+
+ public void setBlob(int parameterIndex, InputStream inputStream, long length)
+ throws SQLException;
+
+ public void setNClob(int parameterIndex, Reader reader, long length)
+ throws SQLException;
+
+ public void setSQLXML(int parameterIndex, SQLXML xmlObject)
+ throws SQLException;
+
+ public void setAsciiStream(int parameterIndex, InputStream x, long length)
+ throws SQLException;
+
+ public void setBinaryStream(int parameterIndex, InputStream x, long length)
+ throws SQLException;
+
+ public void setCharacterStream(int parameterIndex, Reader reader,
+ long length) throws SQLException;
+
+ public void setAsciiStream(int parameterIndex, InputStream x)
+ throws SQLException;
+
+ public void setBinaryStream(int parameterIndex, InputStream x)
+ throws SQLException;
+
+ public void setCharacterStream(int parameterIndex, Reader reader)
+ throws SQLException;
+
+ public void setNCharacterStream(int parameterIndex, Reader value)
+ throws SQLException;
+
+ public void setClob(int parameterIndex, Reader reader) throws SQLException;
+
+ public void setBlob(int parameterIndex, InputStream inputStream)
+ throws SQLException;
+
+ public void setNClob(int parameterIndex, Reader reader) throws SQLException;
}
Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/ResultSet.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/ResultSet.java?view=diff&rev=557189&r1=557188&r2=557189
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/ResultSet.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/ResultSet.java Wed Jul 18 01:05:33 2007
@@ -1863,4 +1863,138 @@
* if a database error happens
*/
public boolean wasNull() throws SQLException;
+
+ /**
+ * TODO
+ *
+ * @param columnIndex
+ * @return
+ * @throws SQLException
+ */
+ public RowId getRowId(int columnIndex) throws SQLException;
+
+ public RowId getRowId(String columnLabel) throws SQLException;
+
+ public void updateRowId(int columnIndex, RowId x) throws SQLException;
+
+ public void updateRowId(String columnLabel, RowId x) throws SQLException;
+
+ public int getHoldability() throws SQLException;
+
+ public boolean isClosed() throws SQLException;
+
+ public void updateNString(int columnIndex, String nString)
+ throws SQLException;
+
+ public void updateNString(String columnLabel, String nString)
+ throws SQLException;
+
+ public void updateNClob(int columnIndex, NClob nClob) throws SQLException;
+
+ public void updateNClob(String columnLabel, NClob nClob)
+ throws SQLException;
+
+ public NClob getNClob(int columnIndex) throws SQLException;
+
+ public NClob getNClob(String columnLabel) throws SQLException;
+
+ public SQLXML getSQLXML(int columnIndex) throws SQLException;
+
+ public SQLXML getSQLXML(String columnLabel) throws SQLException;
+
+ public void updateSQLXML(int columnIndex, SQLXML xmlObject)
+ throws SQLException;
+
+ public void updateSQLXML(String columnLabel, SQLXML xmlObject)
+ throws SQLException;
+
+ public String getNString(int columnIndex) throws SQLException;
+
+ public String getNString(String columnLabel) throws SQLException;
+
+ public Reader getNCharacterStream(int columnIndex) throws SQLException;
+
+ public Reader getNCharacterStream(String columnLabel) throws SQLException;
+
+ public void updateNCharacterStream(int columnIndex, Reader x, long length)
+ throws SQLException;
+
+ public void updateNCharacterStream(String columnLabel, Reader reader,
+ long length) throws SQLException;
+
+ public void updateAsciiStream(int columnIndex, InputStream x, long length)
+ throws SQLException;
+
+ public void updateBinaryStream(int columnIndex, InputStream x, long length)
+ throws SQLException;
+
+ public void updateCharacterStream(int columnIndex, Reader x, long length)
+ throws SQLException;
+
+ public void updateAsciiStream(String columnLabel, InputStream x, long length)
+ throws SQLException;
+
+ public void updateBinaryStream(String columnLabel, InputStream x,
+ long length) throws SQLException;
+
+ public void updateCharacterStream(String columnLabel, Reader reader,
+ long length) throws SQLException;
+
+ public void updateBlob(int columnIndex, InputStream inputStream, long length)
+ throws SQLException;
+
+ public void updateBlob(String columnLabel, InputStream inputStream,
+ long length) throws SQLException;
+
+ public void updateClob(int columnIndex, Reader reader, long length)
+ throws SQLException;
+
+ public void updateClob(String columnLabel, Reader reader, long length)
+ throws SQLException;
+
+ public void updateNClob(int columnIndex, Reader reader, long length)
+ throws SQLException;
+
+ public void updateNClob(String columnLabel, Reader reader, long length)
+ throws SQLException;
+
+ public void updateNCharacterStream(int columnIndex, Reader x)
+ throws SQLException;
+
+ public void updateNCharacterStream(String columnLabel, Reader reader)
+ throws SQLException;
+
+ public void updateAsciiStream(int columnIndex, InputStream x)
+ throws SQLException;
+
+ public void updateBinaryStream(int columnIndex, InputStream x)
+ throws SQLException;
+
+ public void updateCharacterStream(int columnIndex, Reader x)
+ throws SQLException;
+
+ public void updateAsciiStream(String columnLabel, InputStream x)
+ throws SQLException;
+
+ public void updateBinaryStream(String columnLabel, InputStream x)
+ throws SQLException;
+
+ public void updateCharacterStream(String columnLabel, Reader reader)
+ throws SQLException;
+
+ public void updateBlob(int columnIndex, InputStream inputStream)
+ throws SQLException;
+
+ public void updateBlob(String columnLabel, InputStream inputStream)
+ throws SQLException;
+
+ public void updateClob(int columnIndex, Reader reader) throws SQLException;
+
+ public void updateClob(String columnLabel, Reader reader)
+ throws SQLException;
+
+ public void updateNClob(int columnIndex, Reader reader) throws SQLException;
+
+ public void updateNClob(String columnLabel, Reader reader)
+ throws SQLException;
}
Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Statement.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Statement.java?view=diff&rev=557189&r1=557188&r2=557189
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Statement.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/java/sql/Statement.java Wed Jul 18 01:05:33 2007
@@ -617,4 +617,15 @@
* if an error occurs accessing the database or if seconds <0.
*/
public void setQueryTimeout(int seconds) throws SQLException;
+
+ /**
+ * TODO Javadoc
+ *
+ * @return
+ */
+ public boolean isClosed() throws SQLException;
+
+ public void setPoolable(boolean poolable) throws SQLException;
+
+ public boolean isPoolable() throws SQLException;
}
Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java?view=diff&rev=557189&r1=557188&r2=557189
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/main/java/javax/sql/rowset/serial/SerialClob.java Wed Jul 18 01:05:33 2007
@@ -207,6 +207,19 @@
len = length;
}
+ public void free() throws SQLException {
+ if (this.len != -1) {
+ this.len = -1;
+ this.clob = null;
+ this.buf = null;
+ }
+ }
+
+ public Reader getCharacterStream(long pos, long length) throws SQLException {
+ checkValidation();
+ return new CharArrayReader(buf, (int) pos, (int) length);
+ }
+
private void checkValidation() throws SerialException {
if (len == -1) {
throw new SerialException(Messages.getString("sql.38")); //$NON-NLS-1$
Modified: harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java?view=diff&rev=557189&r1=557188&r2=557189
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/TestHelper_Connection1.java Wed Jul 18 01:05:33 2007
@@ -17,15 +17,23 @@
package org.apache.harmony.sql.tests.java.sql;
+import java.sql.Array;
+import java.sql.Blob;
import java.sql.CallableStatement;
+import java.sql.Clob;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
+import java.sql.NClob;
import java.sql.PreparedStatement;
+import java.sql.SQLClientInfoException;
import java.sql.SQLException;
import java.sql.SQLWarning;
+import java.sql.SQLXML;
import java.sql.Savepoint;
import java.sql.Statement;
+import java.sql.Struct;
import java.util.Map;
+import java.util.Properties;
/**
* Helper class for the java.sql tests - a skeleton class which implements the
@@ -183,5 +191,53 @@
public <T> T unwrap(Class<T> iface) throws SQLException {
return null;
+ }
+
+ public Array createArrayOf(String typeName, Object[] elements)
+ throws SQLException {
+ return null;
+ }
+
+ public Blob createBlob() throws SQLException {
+ return null;
+ }
+
+ public Clob createClob() throws SQLException {
+ return null;
+ }
+
+ public NClob createNClob() throws SQLException {
+ return null;
+ }
+
+ public SQLXML createSQLXML() throws SQLException {
+ return null;
+ }
+
+ public Struct createStruct(String typeName, Object[] attributes)
+ throws SQLException {
+ return null;
+ }
+
+ public String getClientInfo(String name) throws SQLException {
+ return null;
+ }
+
+ public Properties getClientInfo() throws SQLException {
+ return null;
+ }
+
+ public boolean isValid(int timeout) throws SQLException {
+ return false;
+ }
+
+ public void setClientInfo(String name, String value)
+ throws SQLClientInfoException {
+
+ }
+
+ public void setClientInfo(Properties properties)
+ throws SQLClientInfoException {
+
}
}
Modified: harmony/enhanced/classlib/branches/java6/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/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java?view=diff&rev=557189&r1=557188&r2=557189
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java (original)
+++ harmony/enhanced/classlib/branches/java6/modules/sql/src/test/java/org/apache/harmony/sql/tests/javax/sql/rowset/serial/SerialClobTest.java Wed Jul 18 01:05:33 2007
@@ -480,6 +480,23 @@
public void truncate(long len) throws SQLException {
}
+
+ public void free() throws SQLException {
+ // TODO Auto-generated method stub
+
+ }
+
+ public Reader getBinaryStream(long pos, long length)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ public Reader getCharacterStream(long pos, long length)
+ throws SQLException {
+ // TODO Auto-generated method stub
+ return null;
+ }
}
static class MockAbnormalReader extends java.io.Reader {