You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2006/04/21 15:01:35 UTC
svn commit: r395872 - in /db/derby/code/trunk/java/engine/org/apache/derby:
iapi/jdbc/BrokeredConnection40.java iapi/jdbc/BrokeredStatement.java
impl/jdbc/EmbedBlob.java impl/jdbc/EmbedClob.java
impl/jdbc/EmbedResultSet40.java
Author: kahatlen
Date: Fri Apr 21 06:01:32 2006
New Revision: 395872
URL: http://svn.apache.org/viewcvs?rev=395872&view=rev
Log:
DERBY-1180 (partial): Add vacuous implementations of missing JDBC4
methods
Stubs for missing JDBC 4.0 methods in the embedded driver.
Patch contributed by Kristian Waagan <Kr...@Sun.COM>.
Modified:
db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection40.java
db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredStatement.java
db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedBlob.java
db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java
db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet40.java
Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection40.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection40.java?rev=395872&r1=395871&r2=395872&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection40.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredConnection40.java Fri Apr 21 06:01:32 2006
@@ -20,6 +20,8 @@
package org.apache.derby.iapi.jdbc;
+import java.sql.BaseQuery;
+import java.sql.Blob;
import java.sql.Clob;
import java.sql.ClientInfoException;
import java.sql.NClob;
@@ -37,6 +39,10 @@
super(control);
}
+ public Blob createBlob() throws SQLException {
+ throw Util.notImplemented();
+ }
+
public Clob createClob() throws SQLException{
throw Util.notImplemented();
}
@@ -79,7 +85,8 @@
throw Util.notImplemented();
}
- public <T> T createQueryObject(Class<T> ifc) throws SQLException{
+ public <T extends BaseQuery>T createQueryObject(Class<T> ifc)
+ throws SQLException {
throw Util.notImplemented();
}
Modified: db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredStatement.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredStatement.java?rev=395872&r1=395871&r2=395872&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredStatement.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/iapi/jdbc/BrokeredStatement.java Fri Apr 21 06:01:32 2006
@@ -539,4 +539,13 @@
getStatement().getConnection();
return control;
}
+
+ public boolean isClosed()
+ throws SQLException {
+ // NOTE 1: Depending on implementation, this method may have to be
+ // duplicated in the 3 *Statement40 classes.
+ // NOTE 2: This is the only method using the Util class. Remove
+ // import when method is implemented.
+ throw Util.notImplemented();
+ }
}
Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedBlob.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedBlob.java?rev=395872&r1=395871&r2=395872&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedBlob.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedBlob.java Fri Apr 21 06:01:32 2006
@@ -720,7 +720,33 @@
throw Util.notImplemented();
}
-}
-
-
+ /////////////////////////////////////////////////////////////////////////
+ //
+ // JDBC 4.0 - New public methods
+ //
+ /////////////////////////////////////////////////////////////////////////
+ public void free()
+ throws SQLException {
+ throw Util.notImplemented();
+ }
+
+ /**
+ * Returns an <code>InputStream</code> object that contains a partial
+ * <code>Blob</code> value, starting with the byte specified by pos,
+ * which is length bytes in length.
+ *
+ * @param pos the offset to the first byte of the partial value to be
+ * retrieved. The first byte in the <code>Blob</code> is at
+ * position 1
+ * @param length the length in bytes of the partial value to be retrieved
+ * @return through which the partial <code>Blob</code> value can be read.
+ * @throws SQLException if pos is less than 1 or if pos is greater than
+ * the number of bytes in the <code>Blob</code> or if pos + length is
+ * greater than the number of bytes in the <code>Blob</code>
+ */
+ public InputStream getBinaryStream(long pos, long length)
+ throws SQLException {
+ throw Util.notImplemented();
+ }
+}
Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java?rev=395872&r1=395871&r2=395872&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java Fri Apr 21 06:01:32 2006
@@ -779,6 +779,21 @@
throw Util.notImplemented();
}
+ /////////////////////////////////////////////////////////////////////////
+ //
+ // JDBC 4.0 - New public methods
+ //
+ /////////////////////////////////////////////////////////////////////////
+
+ public void free()
+ throws SQLException {
+ throw Util.notImplemented();
+ }
+
+ public java.io.Reader getCharacterStream(long pos, long length)
+ throws SQLException {
+ throw Util.notImplemented();
+ }
/*
**
Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet40.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet40.java?rev=395872&r1=395871&r2=395872&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet40.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedResultSet40.java Fri Apr 21 06:01:32 2006
@@ -20,11 +20,13 @@
package org.apache.derby.impl.jdbc;
+import org.apache.derby.iapi.sql.ResultSet;
+
+import java.io.Reader;
import java.sql.NClob;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;
-import org.apache.derby.iapi.sql.ResultSet;
import java.sql.Statement;
import org.apache.derby.iapi.reference.SQLState;
@@ -62,6 +64,16 @@
throw Util.notImplemented();
}
+ public void updateNCharacterStream(int columnIndex, Reader x, int length)
+ throws SQLException {
+ throw Util.notImplemented();
+ }
+
+ public void updateNCharacterStream(String columnName, Reader x, int length)
+ throws SQLException {
+ throw Util.notImplemented();
+ }
+
public void updateNString(int columnIndex, String nString) throws SQLException {
throw Util.notImplemented();
}
@@ -78,11 +90,27 @@
throw Util.notImplemented();
}
+ public Reader getNCharacterStream(int columnIndex) throws SQLException {
+ throw Util.notImplemented();
+ }
+
+ public Reader getNCharacterStream(String columnName) throws SQLException {
+ throw Util.notImplemented();
+ }
+
public NClob getNClob(int i) throws SQLException {
throw Util.notImplemented();
}
public NClob getNClob(String colName) throws SQLException {
+ throw Util.notImplemented();
+ }
+
+ public String getNString(int columnIndex) throws SQLException {
+ throw Util.notImplemented();
+ }
+
+ public String getNString(String columnName) throws SQLException {
throw Util.notImplemented();
}