[#2717] DefaultResultSet depends on Java 1.7 / JDBC 4.1

This commit is contained in:
Lukas Eder 2013-09-18 17:27:07 +02:00
parent 210c43f30e
commit 09c3dbfd09
4 changed files with 41 additions and 52 deletions

View File

@ -40,27 +40,27 @@
*/
package org.jooq.tools.jdbc;
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.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;
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.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;
/**
* A default JDBC ResultSet implementation delegating all JDBC 4.0 calls to an
@ -1028,15 +1028,4 @@ public class DefaultResultSet extends JDBC41ResultSet implements ResultSet {
public void updateNClob(String columnLabel, Reader reader) throws SQLException {
delegate.updateNClob(columnLabel, reader);
}
@Override
public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
return delegate.getObject(columnIndex, type);
}
@Override
public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
return delegate.getObject(columnLabel, type);
}
}

View File

@ -40,9 +40,9 @@
*/
package org.jooq.tools.jdbc;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.concurrent.Executor;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.concurrent.Executor;
/**
* Add JDBC 4.1 API compliance to a JDBC 4.0 {@link Connection}.
@ -56,31 +56,31 @@ public abstract class JDBC41Connection {
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public void setSchema(String s) throws SQLException {
public final void setSchema(String s) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public String getSchema() throws SQLException {
public final String getSchema() throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public void abort(Executor executor) throws SQLException {
public final void abort(Executor executor) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
public final void setNetworkTimeout(Executor executor, int milliseconds) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public int getNetworkTimeout() throws SQLException {
public final int getNetworkTimeout() throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
}

View File

@ -40,8 +40,8 @@
*/
package org.jooq.tools.jdbc;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
* Add JDBC 4.1 API compliance to a JDBC 4.0 {@link ResultSet}.
@ -55,13 +55,13 @@ public abstract class JDBC41ResultSet {
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
public final <T> T getObject(int columnIndex, Class<T> type) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
public final <T> T getObject(String columnLabel, Class<T> type) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
}

View File

@ -40,10 +40,10 @@
*/
package org.jooq.tools.jdbc;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
/**
* Add JDBC 4.1 API compliance to a JDBC 4.0 {@link Statement}.
@ -62,13 +62,13 @@ public abstract class JDBC41Statement {
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public void closeOnCompletion() throws SQLException {
public final void closeOnCompletion() throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public boolean isCloseOnCompletion() throws SQLException {
public final boolean isCloseOnCompletion() throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
@ -78,13 +78,13 @@ public abstract class JDBC41Statement {
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public <T> T getObject(int parameterIndex, Class<T> type) throws SQLException {
public final <T> T getObject(int parameterIndex, Class<T> type) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
// JDBC 4.1 compliance: @Override
@SuppressWarnings("unused")
public <T> T getObject(String parameterName, Class<T> type) throws SQLException {
public final <T> T getObject(String parameterName, Class<T> type) throws SQLException {
throw new UnsupportedOperationException("Not supported yet.");
}
}