Hi, I've created a patch against the hsqldb-dev branch of CVS which allows the code to compile under JDK 1.4, I'm not sure if it's any use, but I thought I'd post it just in case.
Most of the methods throw a SQLException stating "Method not implemented", I'll work on these slowly, but I initially wanted to get a patch in so the work could beintegrated piece by piece. Regards, Al. --- src/org/hsqldb/jdbcConnection.java 18 Nov 2002 03:33:34 -0000 1.11 +++ src/org/hsqldb/jdbcConnection.java 23 Nov 2002 08:11:24 -0000 @@ -3441,4 +3441,53 @@ return ssls; } + + public java.sql.Statement createStatement(int param, int param1, int param2 ) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public int getHoldability() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.CallableStatement prepareCall(String str, int param, int pa ram2, int param3) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.PreparedStatement prepareStatement(String str, String[] str 1) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.PreparedStatement prepareStatement(String str, int param) t hrows java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.PreparedStatement prepareStatement(String str, int[] values ) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.PreparedStatement prepareStatement(String str, int param, i nt param2, int param3) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void releaseSavepoint(java.sql.Savepoint savepoint) throws java.sql. SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void rollback(java.sql.Savepoint savepoint) throws java.sql.SQLExcep tion { + throw new SQLException( "Method not implemented" ); + } + + public void setHoldability(int param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Savepoint setSavepoint() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Savepoint setSavepoint(String str) throws java.sql.SQLExcep tion { + throw new SQLException( "Method not implemented" ); + } + } --- src/org/hsqldb/jdbcDatabaseMetaData.java 18 Nov 2002 03:33:34 -0000 1.5 +++ src/org/hsqldb/jdbcDatabaseMetaData.java 23 Nov 2002 08:11:54 -0000 @@ -175,6 +175,22 @@ */ public class jdbcDatabaseMetaData implements java.sql.DatabaseMetaData { + /** + * The database major and minor versions as reported by the JDBC 3 + * getDatabaseMajorVersion and getDatabaseMinorVersion methods + */ + + private static final int DATABASE_MAJOR_VERSION = 1, + DATABASE_MINOR_VERSION = 7; + + /** + * The JDBC major and minor versions as reported by the JDBC 3 + * getJDBCMajorVersion and getJDBCMinorVersion methods + */ + + private static final int JDBC_MAJOR_VERSION = 2, + JDBC_MINOR_VERSION = 0; + /** * The connection this object uses to retrieve instance-specific metadata. */ @@ -5742,4 +5758,69 @@ return where + " AND " + s; } + + + public boolean supportsStatementPooling() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public boolean supportsSavepoints() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public boolean supportsResultSetHoldability(int param) throws java.sql.SQLE xception { + throw new SQLException( "Method not implemented" ); + } + + public boolean supportsNamedParameters() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public boolean supportsMultipleOpenResults() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public boolean supportsGetGeneratedKeys() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public boolean locatorsUpdateCopy() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.ResultSet getSuperTypes(String str, String str1, String str 2) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.ResultSet getSuperTables(String str, String str1, String st r2) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public int getSQLStateType() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public int getResultSetHoldability() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public int getJDBCMinorVersion() throws java.sql.SQLException { + return JDBC_MINOR_VERSION; + } + + public int getJDBCMajorVersion() throws java.sql.SQLException { + return JDBC_MAJOR_VERSION; + } + + public int getDatabaseMinorVersion() throws java.sql.SQLException { + return DATABASE_MINOR_VERSION; + } + + public int getDatabaseMajorVersion() throws java.sql.SQLException { + return DATABASE_MAJOR_VERSION; + } + + public java.sql.ResultSet getAttributes(String str, String str1, String str 2, String str3) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } } --- src/org/hsqldb/jdbcPreparedStatement.java 18 Nov 2002 03:33:34 -0000 1.7 +++ src/org/hsqldb/jdbcPreparedStatement.java 23 Nov 2002 08:12:20 -0000 @@ -5002,4 +5002,221 @@ vParameter.setElementAt(s, --i); } + + public java.sql.Array getArray(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.math.BigDecimal getBigDecimal(String str) throws java.sql.SQLEx ception { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Blob getBlob(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public boolean getBoolean(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public byte getByte(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public byte[] getBytes(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Clob getClob(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Date getDate(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Date getDate(String str, java.util.Calendar calendar) throw s java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public double getDouble(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public float getFloat(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public int getInt(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public long getLong(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public Object getObject(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public Object getObject(String str, java.util.Map map) throws java.sql.SQLE xception { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.ParameterMetaData getParameterMetaData() throws java.sql.SQ LException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Ref getRef(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public short getShort(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public String getString(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Time getTime(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Time getTime(String str, java.util.Calendar calendar) throw s java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Timestamp getTimestamp(String str) throws java.sql.SQLExcep tion { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.Timestamp getTimestamp(String str, java.util.Calendar calen dar) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.net.URL getURL(int param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.net.URL getURL(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void registerOutParameter(String str, int param) throws java.sql.SQL Exception { + throw new SQLException( "Method not implemented" ); + } + + public void registerOutParameter(String str, int param, String str2) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void registerOutParameter(String str, int param, int param2) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setAsciiStream(String str, java.io.InputStream inputStream, int param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setBigDecimal(String str, java.math.BigDecimal bigDecimal) thro ws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setBinaryStream(String str, java.io.InputStream inputStream, in t param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setBoolean(String str, boolean param) throws java.sql.SQLExcept ion { + throw new SQLException( "Method not implemented" ); + } + + public void setByte(String str, byte param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setBytes(String str, byte[] values) throws java.sql.SQLExceptio n { + throw new SQLException( "Method not implemented" ); + } + + public void setCharacterStream(String str, java.io.Reader reader, int param ) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setDate(String str, java.sql.Date date) throws java.sql.SQLExce ption { + throw new SQLException( "Method not implemented" ); + } + + public void setDate(String str, java.sql.Date date, java.util.Calendar cale ndar) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setDouble(String str, double param) throws java.sql.SQLExceptio n { + throw new SQLException( "Method not implemented" ); + } + + public void setFloat(String str, float param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setInt(String str, int param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setLong(String str, long param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setNull(String str, int param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setNull(String str, int param, String str2) throws java.sql.SQL Exception { + throw new SQLException( "Method not implemented" ); + } + + public void setObject(String str, Object obj) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setObject(String str, Object obj, int param) throws java.sql.SQ LException { + throw new SQLException( "Method not implemented" ); + } + + public void setObject(String str, Object obj, int param, int param3) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setShort(String str, short param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setString(String str, String str1) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setTime(String str, java.sql.Time time) throws java.sql.SQLExce ption { + throw new SQLException( "Method not implemented" ); + } + + public void setTime(String str, java.sql.Time time, java.util.Calendar cale ndar) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setTimestamp(String str, java.sql.Timestamp timestamp) throws j ava.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setTimestamp(String str, java.sql.Timestamp timestamp, java.uti l.Calendar calendar) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void setURL(String str, java.net.URL uRL) throws java.sql.SQLExcepti on { + throw new SQLException( "Method not implemented" ); + } + + public void setURL(int param, java.net.URL uRL) throws java.sql.SQLExceptio n { + throw new SQLException( "Method not implemented" ); + } + } --- src/org/hsqldb/jdbcResultSet.java 18 Nov 2002 03:33:34 -0000 1.8 +++ src/org/hsqldb/jdbcResultSet.java 23 Nov 2002 08:12:53 -0000 @@ -6664,4 +6664,45 @@ return rResult == null ? false : true; } + + public java.net.URL getURL(int param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public java.net.URL getURL(String str) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public void updateArray(String str, java.sql.Array array) throws java.sql.S QLException { + throw new SQLException( "Method not implemented" ); + } + + public void updateArray(int param, java.sql.Array array) throws java.sql.SQ LException { + throw new SQLException( "Method not implemented" ); + } + + public void updateBlob(int param, java.sql.Blob blob) throws java.sql.SQLEx ception { + throw new SQLException( "Method not implemented" ); + } + + public void updateBlob(String str, java.sql.Blob blob) throws java.sql.SQLE xception { + throw new SQLException( "Method not implemented" ); + } + + public void updateClob(String str, java.sql.Clob clob) throws java.sql.SQLE xception { + throw new SQLException( "Method not implemented" ); + } + + public void updateClob(int param, java.sql.Clob clob) throws java.sql.SQLEx ception { + throw new SQLException( "Method not implemented" ); + } + + public void updateRef(int param, java.sql.Ref ref) throws java.sql.SQLExcep tion { + throw new SQLException( "Method not implemented" ); + } + + public void updateRef(String str, java.sql.Ref ref) throws java.sql.SQLExce ption { + throw new SQLException( "Method not implemented" ); + } + } --- src/org/hsqldb/jdbcStatement.java 18 Nov 2002 03:33:34 -0000 1.4 +++ src/org/hsqldb/jdbcStatement.java 23 Nov 2002 08:13:02 -0000 @@ -1802,4 +1802,41 @@ rSet.rsType = rsType; } } + + public boolean execute(String str, String[] str1) throws java.sql.SQLExcept ion { + throw new SQLException( "Method not implemented" ); + } + + public boolean execute(String str, int[] values) throws java.sql.SQLExcepti on { + throw new SQLException( "Method not implemented" ); + } + + public boolean execute(String str, int param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public int executeUpdate(String str, String[] str1) throws java.sql.SQLExce ption { + throw new SQLException( "Method not implemented" ); + } + + public int executeUpdate(String str, int param) throws java.sql.SQLExceptio n { + throw new SQLException( "Method not implemented" ); + } + + public int executeUpdate(String str, int[] values) throws java.sql.SQLExcep tion { + throw new SQLException( "Method not implemented" ); + } + + public java.sql.ResultSet getGeneratedKeys() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public boolean getMoreResults(int param) throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + + public int getResultSetHoldability() throws java.sql.SQLException { + throw new SQLException( "Method not implemented" ); + } + } ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hsqldb-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hsqldb-developers