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