提交 1bf77427 authored 作者: noelgrandin's avatar noelgrandin

remove the

   //## Java 1.6 ##
comments. We no longer need them, since we depend on Java6 or better now.
上级 b272a2df
......@@ -15,14 +15,12 @@ import java.sql.Blob;
import java.sql.CallableStatement;
import java.sql.Clob;
import java.sql.Date;
import java.sql.NClob;
import java.sql.Ref;
import java.sql.ResultSetMetaData;
//## Java 1.6 ##
import java.sql.NClob;
import java.sql.SQLXML;
import java.sql.RowId;
//*/
import java.sql.SQLException;
import java.sql.SQLXML;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
......@@ -724,22 +722,18 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
*
* @param parameterIndex the parameter index (1, 2, ...)
*/
//## Java 1.6 ##
public RowId getRowId(int parameterIndex) throws SQLException {
throw unsupported("rowId");
}
//*/
/**
* [Not supported] Returns the value of the specified column as a row id.
*
* @param parameterName the parameter name
*/
//## Java 1.6 ##
public RowId getRowId(String parameterName) throws SQLException {
throw unsupported("rowId");
}
//*/
/**
* Returns the value of the specified column as a Clob.
......@@ -748,12 +742,10 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @return the value
* @throws SQLException if the column is not found or if the result set is closed
*/
//## Java 1.6 ##
public NClob getNClob(int parameterIndex) throws SQLException {
checkRegistered(parameterIndex);
return getOpenResultSet().getNClob(parameterIndex);
}
//*/
/**
* Returns the value of the specified column as a Clob.
......@@ -762,29 +754,23 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @return the value
* @throws SQLException if the column is not found or if the result set is closed
*/
//## Java 1.6 ##
public NClob getNClob(String parameterName) throws SQLException {
return getNClob(getIndexForName(parameterName));
}
//*/
/**
* [Not supported] Returns the value of the specified column as a SQLXML object.
*/
//## Java 1.6 ##
public SQLXML getSQLXML(int parameterIndex) throws SQLException {
throw unsupported("SQLXML");
}
//*/
/**
* [Not supported] Returns the value of the specified column as a SQLXML object.
*/
//## Java 1.6 ##
public SQLXML getSQLXML(String parameterName) throws SQLException {
throw unsupported("SQLXML");
}
//*/
/**
* Returns the value of the specified column as a String.
......@@ -1166,12 +1152,10 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
/**
* [Not supported] Sets the value of a parameter as a row id.
*/
//## Java 1.6 ##
public void setRowId(String parameterName, RowId x)
throws SQLException {
throw unsupported("rowId");
}
//*/
/**
* Sets the value of a parameter.
......@@ -1207,12 +1191,10 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
* @param x the value
* @throws SQLException if this object is closed
*/
//## Java 1.6 ##
public void setNClob(String parameterName, NClob x)
throws SQLException {
setNClob(getIndexForName(parameterName), x);
}
//*/
/**
* Sets the value of a parameter as a Clob.
......@@ -1427,12 +1409,10 @@ public class JdbcCallableStatement extends JdbcPreparedStatement implements Call
/**
* [Not supported] Sets the value of a parameter as a SQLXML object.
*/
//## Java 1.6 ##
public void setSQLXML(String parameterName, SQLXML x)
throws SQLException {
throw unsupported("SQLXML");
}
//*/
/**
* [Not supported]
......
......@@ -16,25 +16,21 @@ import java.io.StringReader;
import java.io.StringWriter;
import java.io.Writer;
import java.sql.Clob;
//## Java 1.6 ##
import java.sql.NClob;
//*/
import java.sql.SQLException;
import org.h2.constant.ErrorCode;
import org.h2.engine.Constants;
import org.h2.message.DbException;
import org.h2.message.TraceObject;
import org.h2.util.Task;
import org.h2.util.IOUtils;
import org.h2.util.Task;
import org.h2.value.Value;
/**
* Represents a CLOB value.
*/
public class JdbcClob extends TraceObject implements Clob
//## Java 1.6 ##
, NClob
//*/
{
Value value;
......
......@@ -10,17 +10,22 @@ import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
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.ResultSet;
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;
import org.h2.command.CommandInterface;
......@@ -41,14 +46,6 @@ import org.h2.value.ValueInt;
import org.h2.value.ValueNull;
import org.h2.value.ValueString;
//## Java 1.6 ##
import java.sql.Array;
import java.sql.NClob;
import java.sql.Struct;
import java.sql.SQLXML;
import java.sql.SQLClientInfoException;
//*/
/*## Java 1.7 ##
import java.util.concurrent.Executor;
//*/
......@@ -1495,7 +1492,6 @@ public class JdbcConnection extends TraceObject implements Connection {
*
* @return the object
*/
//## Java 1.6 ##
public NClob createNClob() throws SQLException {
try {
int id = getNextId(TraceObject.CLOB);
......@@ -1513,36 +1509,29 @@ public class JdbcConnection extends TraceObject implements Connection {
throw logAndConvert(e);
}
}
//*/
/**
* [Not supported] Create a new empty SQLXML object.
*/
//## Java 1.6 ##
public SQLXML createSQLXML() throws SQLException {
throw unsupported("SQLXML");
}
//*/
/**
* [Not supported] Create a new empty Array object.
*/
//## Java 1.6 ##
public Array createArrayOf(String typeName, Object[] elements)
throws SQLException {
throw unsupported("createArray");
}
//*/
/**
* [Not supported] Create a new empty Struct object.
*/
//## Java 1.6 ##
public Struct createStruct(String typeName, Object[] attributes)
throws SQLException {
throw unsupported("Struct");
}
//*/
/**
* Returns true if this connection is still valid.
......@@ -1570,61 +1559,49 @@ public class JdbcConnection extends TraceObject implements Connection {
/**
* [Not supported] Set a client property.
*/
//## Java 1.6 ##
public void setClientInfo(String name, String value)
throws SQLClientInfoException {
throw new SQLClientInfoException();
}
//*/
/**
* [Not supported] Set the client properties.
*/
//## Java 1.6 ##
public void setClientInfo(Properties properties) throws SQLClientInfoException {
throw new SQLClientInfoException();
}
//*/
/**
* [Not supported] Get the client properties.
*/
//## Java 1.6 ##
public Properties getClientInfo() throws SQLClientInfoException {
throw new SQLClientInfoException();
}
//*/
/**
* [Not supported] Set a client property.
*/
//## Java 1.6 ##
public String getClientInfo(String name) throws SQLException {
throw unsupported("clientInfo");
}
//*/
/**
* [Not supported] Return an object of this class if possible.
*
* @param iface the class
*/
//## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap");
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*
* @param iface the class
*/
//## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor");
}
//*/
/**
* Create a Clob value from this reader.
......
......@@ -10,11 +10,8 @@ import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
//## Java 1.6 ##
import java.sql.RowIdLifetime;
//*/
import java.sql.SQLException;
import org.h2.constant.SysProperties;
import org.h2.engine.Constants;
import org.h2.message.Trace;
......@@ -2746,18 +2743,12 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
* Gets the major version of the supported JDBC API.
* This method returns 4 when the driver is compiled using Java 5 or 6.
* It returns 3 otherwise.
*
* @return the major version (4 or 3)
* @return the major version (4)
*/
public int getJDBCMajorVersion() {
debugCodeCall("getJDBCMajorVersion");
int majorVersion = 3;
//## Java 1.6 ##
majorVersion = 4;
//*/
return majorVersion;
return 4;
}
/**
......@@ -2824,12 +2815,10 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
*
* @return ROWID_UNSUPPORTED
*/
//## Java 1.6 ##
public RowIdLifetime getRowIdLifetime() {
debugCodeCall("getRowIdLifetime");
return RowIdLifetime.ROWID_UNSUPPORTED;
}
//*/
/**
* Gets the list of schemas in the database.
......@@ -2847,7 +2836,6 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
* @return the schema list
* @throws SQLException if the connection is closed
*/
//## Java 1.6 ##
public ResultSet getSchemas(String catalogPattern, String schemaPattern)
throws SQLException {
try {
......@@ -2871,7 +2859,6 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
throw logAndConvert(e);
}
}
//*/
/**
* Returns whether the database supports calling functions using the call syntax.
......@@ -2903,41 +2890,33 @@ public class JdbcDatabaseMetaData extends TraceObject implements DatabaseMetaDat
/**
* [Not supported] Return an object of this class if possible.
*/
//## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap");
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*/
//## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor");
}
//*/
/**
* [Not supported] Gets the list of function columns.
*/
//## Java 1.6 ##
public ResultSet getFunctionColumns(String catalog, String schemaPattern,
String functionNamePattern, String columnNamePattern)
throws SQLException {
throw unsupported("getFunctionColumns");
}
//*/
/**
* [Not supported] Gets the list of functions.
*/
//## Java 1.6 ##
public ResultSet getFunctions(String catalog, String schemaPattern,
String functionNamePattern) throws SQLException {
throw unsupported("getFunctions");
}
//*/
/**
* [Not supported]
......
......@@ -211,20 +211,16 @@ public class JdbcParameterMetaData extends TraceObject implements ParameterMetaD
/**
* [Not supported] Return an object of this class if possible.
*/
//## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap");
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*/
//## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor");
}
//*/
/**
* INTERNAL
......
......@@ -13,17 +13,19 @@ import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.NClob;
import java.sql.ParameterMetaData;
import java.sql.PreparedStatement;
import java.sql.Ref;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.RowId;
import java.sql.SQLException;
import java.sql.SQLXML;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import org.h2.command.CommandInterface;
import org.h2.constant.ErrorCode;
import org.h2.expression.ParameterInterface;
......@@ -50,12 +52,6 @@ import org.h2.value.ValueString;
import org.h2.value.ValueTime;
import org.h2.value.ValueTimestamp;
//## Java 1.6 ##
import java.sql.RowId;
import java.sql.NClob;
import java.sql.SQLXML;
//*/
/**
* Represents a prepared statement.
*/
......@@ -1291,11 +1287,9 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/**
* [Not supported] Sets the value of a parameter as a row id.
*/
//## Java 1.6 ##
public void setRowId(int parameterIndex, RowId x) throws SQLException {
throw unsupported("rowId");
}
//*/
/**
* Sets the value of a parameter.
......@@ -1366,7 +1360,6 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
* @param x the value
* @throws SQLException if this object is closed
*/
//## Java 1.6 ##
public void setNClob(int parameterIndex, NClob x) throws SQLException {
try {
if (isDebugEnabled()) {
......@@ -1384,7 +1377,6 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
throw logAndConvert(e);
}
}
//*/
/**
* Sets the value of a parameter as a Clob.
......@@ -1497,11 +1489,9 @@ public class JdbcPreparedStatement extends JdbcStatement implements PreparedStat
/**
* [Not supported] Sets the value of a parameter as a SQLXML object.
*/
//## Java 1.6 ##
public void setSQLXML(int parameterIndex, SQLXML x) throws SQLException {
throw unsupported("SQLXML");
}
//*/
/**
* INTERNAL
......
......@@ -14,24 +14,20 @@ 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.HashMap;
import java.util.Map;
//## Java 1.6 ##
import java.sql.NClob;
import java.sql.RowId;
import java.sql.SQLXML;
//*/
import org.h2.constant.ErrorCode;
import org.h2.constant.SysProperties;
import org.h2.message.DbException;
......@@ -3017,22 +3013,18 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
*
* @param columnIndex (1,2,...)
*/
//## Java 1.6 ##
public RowId getRowId(int columnIndex) throws SQLException {
throw unsupported("rowId");
}
//*/
/**
* [Not supported] Returns the value of the specified column as a row id.
*
* @param columnLabel the column label
*/
//## Java 1.6 ##
public RowId getRowId(String columnLabel) throws SQLException {
throw unsupported("rowId");
}
//*/
/**
* [Not supported] Updates a column in the current or insert row.
......@@ -3040,11 +3032,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param columnIndex (1,2,...)
* @param x the value
*/
//## Java 1.6 ##
public void updateRowId(int columnIndex, RowId x) throws SQLException {
throw unsupported("rowId");
}
//*/
/**
* [Not supported] Updates a column in the current or insert row.
......@@ -3052,11 +3042,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @param columnLabel the column label
* @param x the value
*/
//## Java 1.6 ##
public void updateRowId(String columnLabel, RowId x) throws SQLException {
throw unsupported("rowId");
}
//*/
/**
* Returns the current result set holdability.
......@@ -3129,11 +3117,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
* [Not supported]
*/
//## Java 1.6 ##
public void updateNClob(int columnIndex, NClob x) throws SQLException {
throw unsupported("NClob");
}
//*/
/**
* Updates a column in the current or insert row.
......@@ -3186,11 +3172,9 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
* [Not supported]
*/
//## Java 1.6 ##
public void updateNClob(String columnLabel, NClob x) throws SQLException {
throw unsupported("NClob");
}
//*/
/**
* Returns the value of the specified column as a Clob.
......@@ -3199,7 +3183,6 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @return the value
* @throws SQLException if the column is not found or if the result set is closed
*/
//## Java 1.6 ##
public NClob getNClob(int columnIndex) throws SQLException {
try {
int id = getNextId(TraceObject.CLOB);
......@@ -3210,7 +3193,6 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e);
}
}
//*/
/**
* Returns the value of the specified column as a Clob.
......@@ -3219,7 +3201,6 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
* @return the value
* @throws SQLException if the column is not found or if the result set is closed
*/
//## Java 1.6 ##
public NClob getNClob(String columnLabel) throws SQLException {
try {
int id = getNextId(TraceObject.CLOB);
......@@ -3230,45 +3211,36 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
throw logAndConvert(e);
}
}
//*/
/**
* [Not supported] Returns the value of the specified column as a SQLXML object.
*/
//## Java 1.6 ##
public SQLXML getSQLXML(int columnIndex) throws SQLException {
throw unsupported("SQLXML");
}
//*/
/**
* [Not supported] Returns the value of the specified column as a SQLXML object.
*/
//## Java 1.6 ##
public SQLXML getSQLXML(String columnLabel) throws SQLException {
throw unsupported("SQLXML");
}
//*/
/**
* [Not supported] Updates a column in the current or insert row.
*/
//## Java 1.6 ##
public void updateSQLXML(int columnIndex, SQLXML xmlObject)
throws SQLException {
throw unsupported("SQLXML");
}
//*/
/**
* [Not supported] Updates a column in the current or insert row.
*/
//## Java 1.6 ##
public void updateSQLXML(String columnLabel, SQLXML xmlObject)
throws SQLException {
throw unsupported("SQLXML");
}
//*/
/**
* Returns the value of the specified column as a String.
......@@ -3409,20 +3381,16 @@ public class JdbcResultSet extends TraceObject implements ResultSet {
/**
* [Not supported] Return an object of this class if possible.
*/
//## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap");
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*/
//## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor");
}
//*/
/**
* [Not supported]
......
......@@ -434,20 +434,16 @@ public class JdbcResultSetMetaData extends TraceObject implements ResultSetMetaD
/**
* [Not supported] Return an object of this class if possible.
*/
//## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap");
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*/
//## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor");
}
//*/
/**
* INTERNAL
......
......@@ -1004,20 +1004,16 @@ public class JdbcStatement extends TraceObject implements Statement {
/**
* [Not supported] Return an object of this class if possible.
*/
//## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap");
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*/
//## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor");
}
//*/
/**
* Returns whether this object is poolable.
......
......@@ -30,10 +30,7 @@ import javax.sql.ConnectionPoolDataSource;
import javax.sql.DataSource;
import javax.sql.PooledConnection;
import org.h2.util.New;
//## Java 1.6 ##
import org.h2.message.DbException;
//*/
/*## Java 1.7 ##
import java.util.logging.Logger;
......@@ -310,22 +307,18 @@ public class JdbcConnectionPool implements DataSource, ConnectionEventListener {
*
* @param iface the class
*/
//## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException {
throw DbException.getUnsupportedException("unwrap");
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*
* @param iface the class
*/
//## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw DbException.getUnsupportedException("isWrapperFor");
}
//*/
/**
* [Not supported]
......
......@@ -361,22 +361,18 @@ public class JdbcDataSource extends TraceObject
*
* @param iface the class
*/
//## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException {
throw unsupported("unwrap");
}
//*/
/**
* [Not supported] Checks if unwrap can return an object of this class.
*
* @param iface the class
*/
//## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw unsupported("isWrapperFor");
}
//*/
/**
* [Not supported]
......
......@@ -13,6 +13,7 @@ import java.sql.Statement;
import java.util.ArrayList;
import javax.sql.ConnectionEvent;
import javax.sql.ConnectionEventListener;
import javax.sql.StatementEventListener;
import javax.sql.XAConnection;
import javax.transaction.xa.XAException;
import javax.transaction.xa.XAResource;
......@@ -25,9 +26,6 @@ import org.h2.util.New;
import org.h2.message.DbException;
import org.h2.message.TraceObject;
//## Java 1.6 ##
import javax.sql.StatementEventListener;
//*/
/**
* This class provides support for distributed transactions.
......@@ -369,22 +367,18 @@ public class JdbcXAConnection extends TraceObject implements XAConnection, XARes
*
* @param listener the new statement event listener
*/
//## Java 1.6 ##
public void addStatementEventListener(StatementEventListener listener) {
throw new UnsupportedOperationException();
}
//*/
/**
* [Not supported] Remove a statement event listener.
*
* @param listener the statement event listener
*/
//## Java 1.6 ##
public void removeStatementEventListener(StatementEventListener listener) {
throw new UnsupportedOperationException();
}
//*/
/**
* INTERNAL
......
......@@ -14,11 +14,14 @@ 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;
......@@ -32,12 +35,6 @@ import org.h2.util.MathUtils;
import org.h2.util.New;
import org.h2.value.DataType;
//## Java 1.6 ##
import java.sql.NClob;
import java.sql.RowId;
import java.sql.SQLXML;
//*/
/**
* This class is a simple result set and meta data implementation.
* It can be used in Java functions that return a result set.
......@@ -788,56 +785,44 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public Reader getNCharacterStream(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public Reader getNCharacterStream(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public NClob getNClob(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public NClob getNClob(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public String getNString(int columnIndex) throws SQLException {
return getString(columnIndex);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public String getNString(String columnLabel) throws SQLException {
return getString(columnLabel);
}
//*/
/**
* Returns the value as an Object.
......@@ -914,20 +899,16 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public RowId getRowId(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public RowId getRowId(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* Returns the value as a short.
......@@ -956,20 +937,16 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public SQLXML getSQLXML(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public SQLXML getSQLXML(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* Returns the value as a String.
......@@ -1115,22 +1092,18 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateAsciiStream(int columnIndex, InputStream x)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateAsciiStream(String columnLabel, InputStream x)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -1149,22 +1122,18 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateAsciiStream(int columnIndex, InputStream x, long length)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateAsciiStream(String columnLabel, InputStream x, long length)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -1183,22 +1152,18 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBinaryStream(int columnIndex, InputStream x)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBinaryStream(String columnLabel, InputStream x)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -1217,22 +1182,18 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBinaryStream(int columnIndex, InputStream x, long length)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBinaryStream(String columnLabel, InputStream x, long length)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -1251,40 +1212,32 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBlob(int columnIndex, InputStream x) throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBlob(String columnLabel, InputStream x) throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBlob(int columnIndex, InputStream x, long length)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBlob(String columnLabel, InputStream x, long length)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -1331,22 +1284,18 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateCharacterStream(int columnIndex, Reader x)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateCharacterStream(String columnLabel, Reader x)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -1365,22 +1314,18 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateCharacterStream(int columnIndex, Reader x, long length)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateCharacterStream(String columnLabel, Reader x, long length)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -1399,40 +1344,32 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateClob(int columnIndex, Reader x) throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateClob(String columnLabel, Reader x) throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateClob(int columnIndex, Reader x, long length)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateClob(String columnLabel, Reader x, long length)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -1507,116 +1444,92 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNCharacterStream(int columnIndex, Reader x)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNCharacterStream(String columnLabel, Reader x)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNCharacterStream(int columnIndex, Reader x, long length)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNCharacterStream(String columnLabel, Reader x, long length)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(int columnIndex, NClob x) throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(String columnLabel, NClob x) throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(int columnIndex, Reader x) throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(String columnLabel, Reader x) throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(int columnIndex, Reader x, long length)
throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(String columnLabel, Reader x, long length)
throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNString(int columnIndex, String x) throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNString(String columnLabel, String x) throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -1677,20 +1590,16 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateRowId(int columnIndex, RowId x) throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateRowId(String columnLabel, RowId x) throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -1709,20 +1618,16 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateSQLXML(int columnIndex, SQLXML x) throws SQLException {
update(columnIndex, x);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateSQLXML(String columnLabel, SQLXML x) throws SQLException {
update(columnLabel, x);
}
//*/
/**
* INTERNAL
......@@ -2205,20 +2110,16 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
//## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* Set the auto-close behavior. If enabled (the default), the result set is
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论