At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel
------------------------------------------------------------
revno: 363
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: devel
timestamp: Wed 2007-12-12 11:09:04 -0200
message:
Split out JDBC4 ResultSet methods.
added:
java/com/mysql/cluster/ndbj/ThrowingResultSetJDBC4.java
throwingresultsetjdb-20071212130812-wei7y13tengq7up8-1
modified:
java/com/mysql/cluster/ndbj/ThrowingResultSet.java
throwingresultset.ja-20071127095043-2ypprut7dyfhjkfy-1
=== added file 'java/com/mysql/cluster/ndbj/ThrowingResultSetJDBC4.java'
--- a/java/com/mysql/cluster/ndbj/ThrowingResultSetJDBC4.java 1970-01-01 00:00:00 +0000
+++ b/java/com/mysql/cluster/ndbj/ThrowingResultSetJDBC4.java 2007-12-12 13:09:04 +0000
@@ -0,0 +1,128 @@
+package com.mysql.cluster.ndbj;
+
+import java.io.Reader;
+import java.sql.SQLException;
+import java.sql.RowId;
+import java.sql.SQLXML;
+import java.sql.NClob;
+
+
+public class ThrowingResultSetJDBC4 {
+
+ public ThrowingResultSetJDBC4() {
+ super();
+ }
+
+ public RowId getRowId(int arg0) throws SQLException {
+ // TODO Auto-generated method stub
+ // return null;
+ throw new NotImplementedException("getRowId");
+
+ }
+
+ public RowId getRowId(String arg0) throws SQLException {
+ // TODO Auto-generated method stub
+ // return null;
+ throw new NotImplementedException("getRowId");
+
+ }
+
+ public SQLXML getSQLXML(int arg0) throws SQLException {
+ // TODO Auto-generated method stub
+ // return null;
+ throw new NotImplementedException("getSQLXML");
+
+ }
+
+ public SQLXML getSQLXML(String arg0) throws SQLException {
+ // TODO Auto-generated method stub
+ // return null;
+ throw new NotImplementedException("getSQLXML");
+
+ }
+
+ public void updateNCharacterStream(int arg0, Reader arg1) throws SQLException {
+ // TODO Auto-generated method stub
+ //
+ throw new NotImplementedException("updateNCharacterStream");
+
+ }
+
+ public void updateNCharacterStream(String arg0, Reader arg1) throws SQLException {
+ // TODO Auto-generated method stub
+ //
+ throw new NotImplementedException("updateNCharacterStream");
+
+ }
+
+ public void updateNClob(int arg0, NClob arg1) throws SQLException {
+ // TODO Auto-generated method stub
+ //
+ throw new NotImplementedException("updateNClob");
+
+ }
+
+ public void updateNClob(int arg0, Reader arg1) throws SQLException {
+ // TODO Auto-generated method stub
+ //
+ throw new NotImplementedException("updateNClob");
+
+ }
+
+ public void updateNClob(String arg0, NClob arg1) throws SQLException {
+ // TODO Auto-generated method stub
+ //
+ throw new NotImplementedException("updateNClob");
+
+ }
+
+ public void updateNClob(String arg0, Reader arg1) throws SQLException {
+ // TODO Auto-generated method stub
+ //
+ throw new NotImplementedException("updateNClob");
+
+ }
+
+ public void updateRowId(int arg0, RowId arg1) throws SQLException {
+ // TODO Auto-generated method stub
+ //
+ throw new NotImplementedException("updateRowId");
+
+ }
+
+ public void updateRowId(String arg0, RowId arg1) throws SQLException {
+ // TODO Auto-generated method stub
+ //
+ throw new NotImplementedException("updateRowId");
+
+ }
+
+ public void updateSQLXML(int arg0, SQLXML arg1) throws SQLException {
+ // TODO Auto-generated method stub
+ //
+ throw new NotImplementedException("updateSQLXML");
+
+ }
+
+ public void updateSQLXML(String arg0, SQLXML arg1) throws SQLException {
+ // TODO Auto-generated method stub
+ //
+ throw new NotImplementedException("updateSQLXML");
+
+ }
+
+ public NClob getNClob(int arg0) throws SQLException {
+ // TODO Auto-generated method stub
+ // return null;
+ throw new NotImplementedException("getNClob");
+
+ }
+
+ public NClob getNClob(String arg0) throws SQLException {
+ // TODO Auto-generated method stub
+ // return null;
+ throw new NotImplementedException("getNClob");
+
+ }
+
+}
\ No newline at end of file
=== modified file 'java/com/mysql/cluster/ndbj/ThrowingResultSet.java'
--- a/java/com/mysql/cluster/ndbj/ThrowingResultSet.java 2007-12-09 22:26:12 +0000
+++ b/java/com/mysql/cluster/ndbj/ThrowingResultSet.java 2007-12-12 13:09:04 +0000
@@ -8,83 +8,20 @@
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
-import java.sql.NClob;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
-import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLWarning;
-import java.sql.SQLXML;
import java.sql.Statement;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;
-public class ThrowingResultSet implements ResultSet {
-
-
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#getNClob(int)
- */
- public NClob getNClob(int arg0) throws SQLException {
- // TODO Auto-generated method stub
- // return null;
- throw new NotImplementedException("getNClob");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#getNClob(java.lang.String)
- */
- public NClob getNClob(String arg0) throws SQLException {
- // TODO Auto-generated method stub
- // return null;
- throw new NotImplementedException("getNClob");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#getRowId(int)
- */
- public RowId getRowId(int arg0) throws SQLException {
- // TODO Auto-generated method stub
- // return null;
- throw new NotImplementedException("getRowId");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#getRowId(java.lang.String)
- */
- public RowId getRowId(String arg0) throws SQLException {
- // TODO Auto-generated method stub
- // return null;
- throw new NotImplementedException("getRowId");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#getSQLXML(int)
- */
- public SQLXML getSQLXML(int arg0) throws SQLException {
- // TODO Auto-generated method stub
- // return null;
- throw new NotImplementedException("getSQLXML");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#getSQLXML(java.lang.String)
- */
- public SQLXML getSQLXML(String arg0) throws SQLException {
- // TODO Auto-generated method stub
- // return null;
- throw new NotImplementedException("getSQLXML");
-
- }
+public class ThrowingResultSet extends ThrowingResultSetJDBC4 implements ResultSet {
+
+
/* (non-Javadoc)
* @see java.sql.ResultSet#updateAsciiStream(int, java.io.InputStream)
@@ -187,106 +124,6 @@
}
/* (non-Javadoc)
- * @see java.sql.ResultSet#updateNCharacterStream(int, java.io.Reader)
- */
- public void updateNCharacterStream(int arg0, Reader arg1) throws SQLException {
- // TODO Auto-generated method stub
- //
- throw new NotImplementedException("updateNCharacterStream");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#updateNCharacterStream(java.lang.String, java.io.Reader)
- */
- public void updateNCharacterStream(String arg0, Reader arg1) throws SQLException {
- // TODO Auto-generated method stub
- //
- throw new NotImplementedException("updateNCharacterStream");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#updateNClob(int, java.sql.NClob)
- */
- public void updateNClob(int arg0, NClob arg1) throws SQLException {
- // TODO Auto-generated method stub
- //
- throw new NotImplementedException("updateNClob");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#updateNClob(int, java.io.Reader)
- */
- public void updateNClob(int arg0, Reader arg1) throws SQLException {
- // TODO Auto-generated method stub
- //
- throw new NotImplementedException("updateNClob");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#updateNClob(java.lang.String, java.sql.NClob)
- */
- public void updateNClob(String arg0, NClob arg1) throws SQLException {
- // TODO Auto-generated method stub
- //
- throw new NotImplementedException("updateNClob");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#updateNClob(java.lang.String, java.io.Reader)
- */
- public void updateNClob(String arg0, Reader arg1) throws SQLException {
- // TODO Auto-generated method stub
- //
- throw new NotImplementedException("updateNClob");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#updateRowId(int, java.sql.RowId)
- */
- public void updateRowId(int arg0, RowId arg1) throws SQLException {
- // TODO Auto-generated method stub
- //
- throw new NotImplementedException("updateRowId");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#updateRowId(java.lang.String, java.sql.RowId)
- */
- public void updateRowId(String arg0, RowId arg1) throws SQLException {
- // TODO Auto-generated method stub
- //
- throw new NotImplementedException("updateRowId");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#updateSQLXML(int, java.sql.SQLXML)
- */
- public void updateSQLXML(int arg0, SQLXML arg1) throws SQLException {
- // TODO Auto-generated method stub
- //
- throw new NotImplementedException("updateSQLXML");
-
- }
-
- /* (non-Javadoc)
- * @see java.sql.ResultSet#updateSQLXML(java.lang.String, java.sql.SQLXML)
- */
- public void updateSQLXML(String arg0, SQLXML arg1) throws SQLException {
- // TODO Auto-generated method stub
- //
- throw new NotImplementedException("updateSQLXML");
-
- }
-
- /* (non-Javadoc)
* @see java.sql.Wrapper#isWrapperFor(java.lang.Class)
*/
public boolean isWrapperFor(Class<?> arg0) throws SQLException {
@@ -1054,58 +891,6 @@
throw new NotImplementedException(columnLabel, string).asSQL();
}
- // public NClob getNClob(int columnIndex) throws SQLException {
- // throw new NotImplementedException(new Integer(columnIndex)).asSQL();
- // }
- //
- // public NClob getNClob(String columnLabel) throws SQLException {
- // throw new NotImplementedException(columnLabel).asSQL();
- // }
- //
- // public RowId getRowId(int columnIndex) throws SQLException {
- // throw new NotImplementedException(new Integer(columnIndex)).asSQL();
- // }
- //
- // public RowId getRowId(String columnLabel) throws SQLException {
- // throw new NotImplementedException(columnLabel).asSQL();
- // }
- //
- // public SQLXML getSQLXML(int columnIndex) throws SQLException {
- // throw new NotImplementedException(new Integer(columnIndex)).asSQL();
- // }
- //
- // public SQLXML getSQLXML(String columnLabel) throws SQLException {
- // throw new NotImplementedException(columnLabel).asSQL();
- // }
- //
- // public void updateNClob(int columnIndex, NClob clob) throws SQLException
- // {
- // throw new NotImplementedException(new Integer(columnIndex),
- // clob).asSQL();
- // }
- //
- // public void updateNClob(String columnLabel, NClob clob) throws
- // SQLException {
- // throw new NotImplementedException(columnLabel, clob).asSQL();
- // }
- //
- // public void updateRowId(int columnIndex, RowId x) throws SQLException {
- // throw new NotImplementedException(new Integer(columnIndex), x).asSQL();
- // }
- //
- // public void updateRowId(String columnLabel, RowId x) throws SQLException
- // {
- // throw new NotImplementedException(columnLabel, x).asSQL();
- // }
- //
- // public void updateSQLXML(int columnIndex, SQLXML xmlObject)
- // throws SQLException {
- // throw new NotImplementedException(new Integer(columnIndex),
- // xmlObject).asSQL();
- // }
- //
- // public void updateSQLXML(String columnLabel, SQLXML xmlObject)
- // throws SQLException {
- // throw new NotImplementedException(columnLabel, xmlObject).asSQL();
- // }
+
+
}
| Thread |
|---|
| • Rev 363: Split out JDBC4 ResultSet methods. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel | Monty Taylor | 12 Dec |