提交 87dc0a20 authored 作者: Thomas Mueller's avatar Thomas Mueller

Prepare for updateable simple result set (for TriggerAdapter)

上级 3dfa0fae
......@@ -777,16 +777,6 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
return getTimestamp(findColumn(columnLabel));
}
/**
* Returns the value as a java.sql.Array.
*
* @param columnLabel the column label
* @return the value
*/
public Array getArray(String columnLabel) throws SQLException {
return getArray(findColumn(columnLabel));
}
/**
* Returns the value as a java.io.Reader.
* This is only supported if the
......@@ -1050,8 +1040,6 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
return null;
}
// ---- unsupported / result set ---------------------------------------------
/**
* INTERNAL
*/
......@@ -1059,199 +1047,230 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
// nothing to do
}
// ---- unsupported / result set ---------------------------------------------
/**
* INTERNAL
*/
public void afterLast() throws SQLException {
public void updateArray(int columnIndex, Array x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
* Returns the value as a java.sql.Array.
*
* @param columnLabel the column label
* @return the value
*/
public void cancelRowUpdates() throws SQLException {
throw getUnsupportedException();
public Array getArray(String columnLabel) throws SQLException {
return getArray(findColumn(columnLabel));
}
/**
* INTERNAL
*/
public void updateNull(String columnLabel) throws SQLException {
//## Java 1.6 ##
public void updateAsciiStream(int columnIndex, InputStream x)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void deleteRow() throws SQLException {
//## Java 1.6 ##
public void updateAsciiStream(String columnLabel, InputStream x)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void insertRow() throws SQLException {
public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void moveToCurrentRow() throws SQLException {
public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void moveToInsertRow() throws SQLException {
//## Java 1.6 ##
public void updateAsciiStream(int columnIndex, InputStream x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void refreshRow() throws SQLException {
//## Java 1.6 ##
public void updateAsciiStream(String columnLabel, InputStream x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateRow() throws SQLException {
public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public boolean first() throws SQLException {
public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public boolean isAfterLast() throws SQLException {
//## Java 1.6 ##
public void updateBinaryStream(int columnLabel, InputStream x)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public boolean isBeforeFirst() throws SQLException {
//## Java 1.6 ##
public void updateBinaryStream(String columnLabel, InputStream x)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public boolean isFirst() throws SQLException {
public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public boolean isLast() throws SQLException {
public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public boolean last() throws SQLException {
//## Java 1.6 ##
public void updateBinaryStream(int columnIndex, InputStream x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public boolean previous() throws SQLException {
//## Java 1.6 ##
public void updateBinaryStream(String columnLabel, InputStream x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public boolean rowDeleted() throws SQLException {
public void updateBlob(int columnIndex, Blob x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public boolean rowInserted() throws SQLException {
public void updateBlob(String columnLabel, Blob x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public boolean rowUpdated() throws SQLException {
public void updateBoolean(int columnIndex, boolean x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void setFetchDirection(int direction) throws SQLException {
public void updateBoolean(String columnLabel, boolean x) throws SQLException {
throw getUnsupportedException();
}
// intest
/**
* INTERNAL
*/
public void setFetchSize(int rows) throws SQLException {
public void updateNull(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateNull(int columnIndex) throws SQLException {
public void updateNull(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public boolean absolute(int row) throws SQLException {
public void updateByte(int columnIndex, byte x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public boolean relative(int offset) throws SQLException {
public void updateByte(String columnLabel, byte x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateByte(int columnIndex, byte x) throws SQLException {
public void updateShort(int columnIndex, short x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateDouble(int columnIndex, double x) throws SQLException {
public void updateShort(String columnLabel, short x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateFloat(int columnIndex, float x) throws SQLException {
public void updateInt(int columnIndex, int x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateInt(int columnIndex, int x) throws SQLException {
public void updateInt(String columnLabel, int x) throws SQLException {
throw getUnsupportedException();
}
......@@ -1265,799 +1284,791 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
/**
* INTERNAL
*/
public void updateShort(int columnIndex, short x) throws SQLException {
public void updateLong(String columnLabel, long x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateBoolean(int columnIndex, boolean x) throws SQLException {
public void updateFloat(int columnIndex, float x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateBytes(int columnIndex, byte[] x) throws SQLException {
public void updateFloat(String columnLabel, float x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public InputStream getAsciiStream(int columnIndex) {
return null;
public void updateDouble(int columnIndex, double x) throws SQLException {
throw getUnsupportedException();
}
/**
* @deprecated INTERNAL
* INTERNAL
*/
public InputStream getUnicodeStream(int columnIndex) {
return null;
public void updateDouble(String columnLabel, double x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateAsciiStream(int columnIndex, InputStream x, int length) throws SQLException {
public void updateString(int columnIndex, String x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateBinaryStream(int columnIndex, InputStream x, int length) throws SQLException {
public void updateString(String columnLabel, String x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
public void updateDate(int columnIndex, Date x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateObject(int columnIndex, Object x) throws SQLException {
public void updateDate(String columnLabel, Date x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateObject(int columnIndex, Object x, int scale) throws SQLException {
public void updateTime(int columnIndex, Time x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public String getCursorName() throws SQLException {
public void updateTime(String columnLabel, Time x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateString(int columnIndex, String x) throws SQLException {
public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateByte(String columnLabel, byte x) throws SQLException {
public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateDouble(String columnLabel, double x) throws SQLException {
public void updateObject(int columnIndex, Object x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateFloat(String columnLabel, float x) throws SQLException {
public void updateObject(String columnLabel, Object x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateInt(String columnLabel, int x) throws SQLException {
public void updateObject(int columnIndex, Object x, int scale) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateLong(String columnLabel, long x) throws SQLException {
public void updateObject(String columnLabel, Object x, int scale) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateShort(String columnLabel, short x) throws SQLException {
public void updateBytes(int columnIndex, byte[] x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateBoolean(String columnLabel, boolean x) throws SQLException {
public void updateBytes(String columnLabel, byte[] x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateBytes(String columnLabel, byte[] x) throws SQLException {
public void updateCharacterStream(int columnIndex, Reader x, int length) throws SQLException {
throw getUnsupportedException();
}
/**
* @deprecated INTERNAL
* INTERNAL
*/
public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
public URL getURL(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException {
public void updateClob(int columnIndex, Clob x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public URL getURL(int columnIndex) throws SQLException {
public void updateRef(int columnIndex, Ref x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateArray(int columnIndex, Array x) throws SQLException {
public void updateRef(String columnLabel, Ref x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateBlob(int columnIndex, Blob x) throws SQLException {
public void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateClob(int columnIndex, Clob x) throws SQLException {
public void updateArray(String columnLabel, Array x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public void updateDate(int columnIndex, Date x) throws SQLException {
public void updateClob(String columnLabel, Clob x) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public Ref getRef(int columnIndex) throws SQLException {
//## Java 1.6 ##
public void updateRowId(int columnIndex, RowId x) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateRef(int columnIndex, Ref x) throws SQLException {
//## Java 1.6 ##
public void updateRowId(String columnLabel, RowId x) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateTime(int columnIndex, Time x) throws SQLException {
//## Java 1.6 ##
public void updateNString(int columnIndex, String nString)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
//## Java 1.6 ##
public void updateNString(String columnLabel, String nString)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public InputStream getAsciiStream(String columnLabel) throws SQLException {
//## Java 1.6 ##
public void updateNClob(int columnIndex, NClob nClob)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* @deprecated INTERNAL
* INTERNAL
*/
public InputStream getUnicodeStream(String columnLabel) throws SQLException {
//## Java 1.6 ##
public void updateNClob(String columnLabel, NClob nClob)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateAsciiStream(String columnLabel, InputStream x, int length) throws SQLException {
//## Java 1.6 ##
public void updateSQLXML(int columnIndex, SQLXML xmlObject)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateBinaryStream(String columnLabel, InputStream x, int length) throws SQLException {
//## Java 1.6 ##
public void updateSQLXML(String columnLabel, SQLXML xmlObject)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException {
//## Java 1.6 ##
public void updateBlob(int columnIndex, InputStream x) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateObject(String columnLabel, Object x) throws SQLException {
//## Java 1.6 ##
public void updateBlob(String columnLabel, InputStream x) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateObject(String columnLabel, Object x, int scale) throws SQLException {
//## Java 1.6 ##
public void updateBlob(int columnIndex, InputStream x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException {
//## Java 1.6 ##
public void updateBlob(String columnLabel, InputStream x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateString(String columnLabel, String x) throws SQLException {
//## Java 1.6 ##
public void updateCharacterStream(int columnIndex, Reader x)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* @deprecated INTERNAL
* INTERNAL
*/
public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException {
//## Java 1.6 ##
public void updateCharacterStream(String columnLabel, Reader x)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateBigDecimal(String columnLabel, BigDecimal x) throws SQLException {
//## Java 1.6 ##
public void updateCharacterStream(int columnIndex, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public URL getURL(String columnLabel) throws SQLException {
//## Java 1.6 ##
public void updateCharacterStream(String columnLabel, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateArray(String columnLabel, Array x) throws SQLException {
//## Java 1.6 ##
public void updateClob(int columnIndex, Reader x) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateBlob(String columnLabel, Blob x) throws SQLException {
//## Java 1.6 ##
public void updateClob(String columnLabel, Reader x) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateClob(String columnLabel, Clob x) throws SQLException {
//## Java 1.6 ##
public void updateClob(int columnIndex, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateDate(String columnLabel, Date x) throws SQLException {
//## Java 1.6 ##
public void updateClob(String columnLabel, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public Date getDate(int columnIndex, Calendar cal) throws SQLException {
//## Java 1.6 ##
public void updateNCharacterStream(int columnIndex, Reader x)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public Ref getRef(String colName) throws SQLException {
//## Java 1.6 ##
public void updateNCharacterStream(String columnLabel, Reader x)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateRef(String columnLabel, Ref x) throws SQLException {
//## Java 1.6 ##
public void updateNCharacterStream(int columnIndex, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateTime(String columnLabel, Time x) throws SQLException {
//## Java 1.6 ##
public void updateNCharacterStream(String columnLabel, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public Time getTime(int columnIndex, Calendar cal) throws SQLException {
//## Java 1.6 ##
public void updateNClob(int columnIndex, Reader x) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public void updateTimestamp(String columnLabel, Timestamp x) throws SQLException {
//## Java 1.6 ##
public void updateNClob(String columnLabel, Reader x) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
//## Java 1.6 ##
public void updateNClob(int columnIndex, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public Object getObject(String colName, Map<String, Class<?>> map) throws SQLException {
//## Java 1.6 ##
public void updateNClob(String columnLabel, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
public Date getDate(String columnLabel, Calendar cal) throws SQLException {
public Time getTime(int columnIndex, Calendar cal) throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public Time getTime(String columnLabel, Calendar cal) throws SQLException {
public void afterLast() throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException {
public void cancelRowUpdates() throws SQLException {
throw getUnsupportedException();
}
// --- private -----------------------------
/**
* INTERNAL
*/
static SQLException getUnsupportedException() {
return DbException.get(ErrorCode.FEATURE_NOT_SUPPORTED_1).getSQLException();
}
private void checkColumnIndex(int columnIndex) throws SQLException {
if (columnIndex < 0 || columnIndex >= columns.size()) {
throw DbException.getInvalidValueException("columnIndex", columnIndex + 1).getSQLException();
}
}
private Object get(int columnIndex) throws SQLException {
if (currentRow == null) {
throw DbException.get(ErrorCode.NO_DATA_AVAILABLE).getSQLException();
}
columnIndex--;
checkColumnIndex(columnIndex);
Object o = columnIndex < currentRow.length ? currentRow[columnIndex] : null;
wasNull = o == null;
return o;
}
private Column getColumn(int i) throws SQLException {
checkColumnIndex(i);
return columns.get(i);
public void deleteRow() throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
//## Java 1.6 ##
public RowId getRowId(int columnIndex) throws SQLException {
public void insertRow() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public RowId getRowId(String columnLabel) throws SQLException {
public void moveToCurrentRow() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateRowId(int columnIndex, RowId x) throws SQLException {
public void moveToInsertRow() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateRowId(String columnLabel, RowId x) throws SQLException {
public void refreshRow() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* Returns the current result set holdability.
*
* @return the holdability
* INTERNAL
*/
public int getHoldability() {
return ResultSet.HOLD_CURSORS_OVER_COMMIT;
public void updateRow() throws SQLException {
throw getUnsupportedException();
}
/**
* Returns whether this result set has been closed.
*
* @return true if the result set was closed
* INTERNAL
*/
public boolean isClosed() {
return rows == null;
public boolean first() throws SQLException {
throw getUnsupportedException();
}
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNString(int columnIndex, String nString)
throws SQLException {
public boolean isAfterLast() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNString(String columnLabel, String nString)
throws SQLException {
public boolean isBeforeFirst() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(int columnIndex, NClob nClob)
throws SQLException {
public boolean isFirst() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(String columnLabel, NClob nClob)
throws SQLException {
public boolean isLast() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public NClob getNClob(int columnIndex) throws SQLException {
public boolean last() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public NClob getNClob(String columnLabel) throws SQLException {
public boolean previous() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public SQLXML getSQLXML(int columnIndex) throws SQLException {
public boolean rowDeleted() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public SQLXML getSQLXML(String columnLabel) throws SQLException {
public boolean rowInserted() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateSQLXML(int columnIndex, SQLXML xmlObject)
throws SQLException {
public boolean rowUpdated() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateSQLXML(String columnLabel, SQLXML xmlObject)
throws SQLException {
public void setFetchDirection(int direction) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public String getNString(int columnIndex) throws SQLException {
return getString(columnIndex);
public void setFetchSize(int rows) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public String getNString(String columnLabel) throws SQLException {
return getString(columnLabel);
public boolean absolute(int row) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public Reader getNCharacterStream(int columnIndex) throws SQLException {
public boolean relative(int offset) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public Reader getNCharacterStream(String columnLabel)
throws SQLException {
throw getUnsupportedException();
public InputStream getAsciiStream(int columnIndex) {
return null;
}
//*/
/**
* INTERNAL
* @deprecated INTERNAL
*/
//## Java 1.6 ##
public <T> T unwrap(Class<T> iface) throws SQLException {
throw getUnsupportedException();
public InputStream getUnicodeStream(int columnIndex) {
return null;
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public boolean isWrapperFor(Class<?> iface) throws SQLException {
public String getCursorName() throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
/**
* @deprecated INTERNAL
*/
//## Java 1.6 ##
public void updateAsciiStream(int columnIndex, InputStream x)
throws SQLException {
public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateAsciiStream(String columnLabel, InputStream x)
throws SQLException {
public Ref getRef(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateAsciiStream(int columnIndex, InputStream x, long length)
throws SQLException {
public InputStream getAsciiStream(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
* @deprecated INTERNAL
*/
//## Java 1.6 ##
public void updateAsciiStream(String columnLabel, InputStream x, long length)
throws SQLException {
public InputStream getUnicodeStream(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBinaryStream(int columnLabel, InputStream x)
throws SQLException {
public Object getObject(int columnIndex, Map<String, Class<?>> map) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
* @deprecated INTERNAL
*/
//## Java 1.6 ##
public void updateBinaryStream(String columnLabel, InputStream x)
throws SQLException {
public BigDecimal getBigDecimal(String columnLabel, int scale) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBinaryStream(int columnIndex, InputStream x, long length)
throws SQLException {
public URL getURL(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBinaryStream(String columnLabel, InputStream x, long length)
throws SQLException {
public Date getDate(int columnIndex, Calendar cal) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBlob(int columnIndex, InputStream x) throws SQLException {
public Ref getRef(String colName) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBlob(String columnLabel, InputStream x) throws SQLException {
public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBlob(int columnIndex, InputStream x, long length)
throws SQLException {
public Object getObject(String colName, Map<String, Class<?>> map) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateBlob(String columnLabel, InputStream x, long length)
throws SQLException {
public Date getDate(String columnLabel, Calendar cal) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateCharacterStream(int columnIndex, Reader x)
throws SQLException {
public Time getTime(String columnLabel, Calendar cal) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateCharacterStream(String columnLabel, Reader x)
throws SQLException {
public Timestamp getTimestamp(String columnLabel, Calendar cal) throws SQLException {
throw getUnsupportedException();
}
//*/
// --- private -----------------------------
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateCharacterStream(int columnIndex, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
static SQLException getUnsupportedException() {
return DbException.get(ErrorCode.FEATURE_NOT_SUPPORTED_1).getSQLException();
}
private void checkColumnIndex(int columnIndex) throws SQLException {
if (columnIndex < 0 || columnIndex >= columns.size()) {
throw DbException.getInvalidValueException("columnIndex", columnIndex + 1).getSQLException();
}
}
private Object get(int columnIndex) throws SQLException {
if (currentRow == null) {
throw DbException.get(ErrorCode.NO_DATA_AVAILABLE).getSQLException();
}
columnIndex--;
checkColumnIndex(columnIndex);
Object o = columnIndex < currentRow.length ? currentRow[columnIndex] : null;
wasNull = o == null;
return o;
}
private Column getColumn(int i) throws SQLException {
checkColumnIndex(i);
return columns.get(i);
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateCharacterStream(String columnLabel, Reader x, long length)
throws SQLException {
public RowId getRowId(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
//*/
......@@ -2066,26 +2077,34 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public void updateClob(int columnIndex, Reader x) throws SQLException {
public RowId getRowId(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
//*/
/**
* INTERNAL
* Returns the current result set holdability.
*
* @return the holdability
*/
//## Java 1.6 ##
public void updateClob(String columnLabel, Reader x) throws SQLException {
throw getUnsupportedException();
public int getHoldability() {
return ResultSet.HOLD_CURSORS_OVER_COMMIT;
}
/**
* Returns whether this result set has been closed.
*
* @return true if the result set was closed
*/
public boolean isClosed() {
return rows == null;
}
//*/
/**
* INTERNAL
*/
//## Java 1.6 ##
public void updateClob(int columnIndex, Reader x, long length)
throws SQLException {
public NClob getNClob(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
//*/
......@@ -2094,8 +2113,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public void updateClob(String columnLabel, Reader x, long length)
throws SQLException {
public NClob getNClob(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
//*/
......@@ -2104,8 +2122,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public void updateNCharacterStream(int columnIndex, Reader x)
throws SQLException {
public SQLXML getSQLXML(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
//*/
......@@ -2114,8 +2131,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public void updateNCharacterStream(String columnLabel, Reader x)
throws SQLException {
public SQLXML getSQLXML(String columnLabel) throws SQLException {
throw getUnsupportedException();
}
//*/
......@@ -2124,9 +2140,8 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public void updateNCharacterStream(int columnIndex, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
public String getNString(int columnIndex) throws SQLException {
return getString(columnIndex);
}
//*/
......@@ -2134,9 +2149,8 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public void updateNCharacterStream(String columnLabel, Reader x, long length)
throws SQLException {
throw getUnsupportedException();
public String getNString(String columnLabel) throws SQLException {
return getString(columnLabel);
}
//*/
......@@ -2144,7 +2158,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(int columnIndex, Reader x) throws SQLException {
public Reader getNCharacterStream(int columnIndex) throws SQLException {
throw getUnsupportedException();
}
//*/
......@@ -2153,7 +2167,8 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(String columnLabel, Reader x) throws SQLException {
public Reader getNCharacterStream(String columnLabel)
throws SQLException {
throw getUnsupportedException();
}
//*/
......@@ -2162,8 +2177,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(int columnIndex, Reader x, long length)
throws SQLException {
public <T> T unwrap(Class<T> iface) throws SQLException {
throw getUnsupportedException();
}
//*/
......@@ -2172,8 +2186,7 @@ public class SimpleResultSet implements ResultSet, ResultSetMetaData {
* INTERNAL
*/
//## Java 1.6 ##
public void updateNClob(String columnLabel, Reader x, long length)
throws SQLException {
public boolean isWrapperFor(Class<?> iface) throws SQLException {
throw getUnsupportedException();
}
//*/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论