Package io.deephaven.jdbc
Class ReadOnlyResultSet
java.lang.Object
io.deephaven.jdbc.ReadOnlyResultSet
- All Implemented Interfaces:
AutoCloseable
,ResultSet
,Wrapper
- Direct Known Subclasses:
DeephavenForwardOnlyResultSet
,ImmutableResultSet
public abstract class ReadOnlyResultSet extends Object implements ResultSet
An abstract base class for read-only ResultSet implementations. Includes tracing in each unsupported method for
debugging purposes.
-
Field Summary
Fields inherited from interface java.sql.ResultSet
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE
-
Method Summary
Modifier and Type Method Description void
cancelRowUpdates()
void
deleteRow()
void
insertRow()
boolean
isWrapperFor(Class<?> iface)
void
moveToCurrentRow()
void
moveToInsertRow()
void
refreshRow()
boolean
rowDeleted()
boolean
rowInserted()
boolean
rowUpdated()
<T> T
unwrap(Class<T> iface)
void
updateArray(int columnIndex, Array x)
void
updateArray(String columnLabel, Array x)
void
updateAsciiStream(int columnIndex, InputStream x)
void
updateAsciiStream(int columnIndex, InputStream x, int length)
void
updateAsciiStream(int columnIndex, InputStream x, long length)
void
updateAsciiStream(String columnLabel, InputStream x)
void
updateAsciiStream(String columnLabel, InputStream x, int length)
void
updateAsciiStream(String columnLabel, InputStream x, long length)
void
updateBigDecimal(int columnIndex, BigDecimal x)
void
updateBigDecimal(String columnLabel, BigDecimal x)
void
updateBinaryStream(int columnIndex, InputStream x)
void
updateBinaryStream(int columnIndex, InputStream x, int length)
void
updateBinaryStream(int columnIndex, InputStream x, long length)
void
updateBinaryStream(String columnLabel, InputStream x)
void
updateBinaryStream(String columnLabel, InputStream x, int length)
void
updateBinaryStream(String columnLabel, InputStream x, long length)
void
updateBlob(int columnIndex, InputStream inputStream)
void
updateBlob(int columnIndex, InputStream inputStream, long length)
void
updateBlob(int columnIndex, Blob x)
void
updateBlob(String columnLabel, InputStream inputStream)
void
updateBlob(String columnLabel, InputStream inputStream, long length)
void
updateBlob(String columnLabel, Blob x)
void
updateBoolean(int columnIndex, boolean x)
void
updateBoolean(String columnLabel, boolean x)
void
updateByte(int columnIndex, byte x)
void
updateByte(String columnLabel, byte x)
void
updateBytes(int columnIndex, byte[] x)
void
updateBytes(String columnLabel, byte[] x)
void
updateCharacterStream(int columnIndex, Reader x)
void
updateCharacterStream(int columnIndex, Reader x, int length)
void
updateCharacterStream(int columnIndex, Reader x, long length)
void
updateCharacterStream(String columnLabel, Reader reader)
void
updateCharacterStream(String columnLabel, Reader reader, int length)
void
updateCharacterStream(String columnLabel, Reader reader, long length)
void
updateClob(int columnIndex, Reader reader)
void
updateClob(int columnIndex, Reader reader, long length)
void
updateClob(int columnIndex, Clob x)
void
updateClob(String columnLabel, Reader reader)
void
updateClob(String columnLabel, Reader reader, long length)
void
updateClob(String columnLabel, Clob x)
void
updateDate(int columnIndex, Date x)
void
updateDate(String columnLabel, Date x)
void
updateDouble(int columnIndex, double x)
void
updateDouble(String columnLabel, double x)
void
updateFloat(int columnIndex, float x)
void
updateFloat(String columnLabel, float x)
void
updateInt(int columnIndex, int x)
void
updateInt(String columnLabel, int x)
void
updateLong(int columnIndex, long x)
void
updateLong(String columnLabel, long x)
void
updateNCharacterStream(int columnIndex, Reader x)
void
updateNCharacterStream(int columnIndex, Reader x, long length)
void
updateNCharacterStream(String columnLabel, Reader reader)
void
updateNCharacterStream(String columnLabel, Reader reader, long length)
void
updateNClob(int columnIndex, Reader reader)
void
updateNClob(int columnIndex, Reader reader, long length)
void
updateNClob(int columnIndex, NClob nClob)
void
updateNClob(String columnLabel, Reader reader)
void
updateNClob(String columnLabel, Reader reader, long length)
void
updateNClob(String columnLabel, NClob nClob)
void
updateNString(int columnIndex, String nString)
void
updateNString(String columnLabel, String nString)
void
updateNull(int columnIndex)
void
updateNull(String columnLabel)
void
updateObject(int columnIndex, Object x)
void
updateObject(int columnIndex, Object x, int scaleOrLength)
void
updateObject(String columnLabel, Object x)
void
updateObject(String columnLabel, Object x, int scaleOrLength)
void
updateRef(int columnIndex, Ref x)
void
updateRef(String columnLabel, Ref x)
void
updateRow()
void
updateRowId(int columnIndex, RowId x)
void
updateRowId(String columnLabel, RowId x)
void
updateShort(int columnIndex, short x)
void
updateShort(String columnLabel, short x)
void
updateSQLXML(int columnIndex, SQLXML xmlObject)
void
updateSQLXML(String columnLabel, SQLXML xmlObject)
void
updateString(int columnIndex, String x)
void
updateString(String columnLabel, String x)
void
updateTime(int columnIndex, Time x)
void
updateTime(String columnLabel, Time x)
void
updateTimestamp(int columnIndex, Timestamp x)
void
updateTimestamp(String columnLabel, Timestamp x)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.sql.ResultSet
absolute, afterLast, beforeFirst, clearWarnings, close, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getInt, getLong, getLong, getMetaData, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRow, getRowId, getRowId, getShort, getShort, getSQLXML, getSQLXML, getStatement, getString, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, last, next, previous, relative, setFetchDirection, setFetchSize, updateObject, updateObject, updateObject, updateObject, wasNull
-
Method Details
-
rowUpdated
- Specified by:
rowUpdated
in interfaceResultSet
- Throws:
SQLException
-
rowInserted
- Specified by:
rowInserted
in interfaceResultSet
- Throws:
SQLException
-
rowDeleted
- Specified by:
rowDeleted
in interfaceResultSet
- Throws:
SQLException
-
updateNull
- Specified by:
updateNull
in interfaceResultSet
- Throws:
SQLException
-
updateBoolean
- Specified by:
updateBoolean
in interfaceResultSet
- Throws:
SQLException
-
updateByte
- Specified by:
updateByte
in interfaceResultSet
- Throws:
SQLException
-
updateShort
- Specified by:
updateShort
in interfaceResultSet
- Throws:
SQLException
-
updateInt
- Specified by:
updateInt
in interfaceResultSet
- Throws:
SQLException
-
updateLong
- Specified by:
updateLong
in interfaceResultSet
- Throws:
SQLException
-
updateFloat
- Specified by:
updateFloat
in interfaceResultSet
- Throws:
SQLException
-
updateDouble
- Specified by:
updateDouble
in interfaceResultSet
- Throws:
SQLException
-
updateBigDecimal
- Specified by:
updateBigDecimal
in interfaceResultSet
- Throws:
SQLException
-
updateString
- Specified by:
updateString
in interfaceResultSet
- Throws:
SQLException
-
updateBytes
- Specified by:
updateBytes
in interfaceResultSet
- Throws:
SQLException
-
updateDate
- Specified by:
updateDate
in interfaceResultSet
- Throws:
SQLException
-
updateTime
- Specified by:
updateTime
in interfaceResultSet
- Throws:
SQLException
-
updateTimestamp
- Specified by:
updateTimestamp
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateObject
- Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateObject
- Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateNull
- Specified by:
updateNull
in interfaceResultSet
- Throws:
SQLException
-
updateBoolean
- Specified by:
updateBoolean
in interfaceResultSet
- Throws:
SQLException
-
updateByte
- Specified by:
updateByte
in interfaceResultSet
- Throws:
SQLException
-
updateShort
- Specified by:
updateShort
in interfaceResultSet
- Throws:
SQLException
-
updateInt
- Specified by:
updateInt
in interfaceResultSet
- Throws:
SQLException
-
updateLong
- Specified by:
updateLong
in interfaceResultSet
- Throws:
SQLException
-
updateFloat
- Specified by:
updateFloat
in interfaceResultSet
- Throws:
SQLException
-
updateDouble
- Specified by:
updateDouble
in interfaceResultSet
- Throws:
SQLException
-
updateBigDecimal
- Specified by:
updateBigDecimal
in interfaceResultSet
- Throws:
SQLException
-
updateString
- Specified by:
updateString
in interfaceResultSet
- Throws:
SQLException
-
updateBytes
- Specified by:
updateBytes
in interfaceResultSet
- Throws:
SQLException
-
updateDate
- Specified by:
updateDate
in interfaceResultSet
- Throws:
SQLException
-
updateTime
- Specified by:
updateTime
in interfaceResultSet
- Throws:
SQLException
-
updateTimestamp
- Specified by:
updateTimestamp
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader, int length) throws SQLException- Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateObject
- Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
updateObject
- Specified by:
updateObject
in interfaceResultSet
- Throws:
SQLException
-
insertRow
- Specified by:
insertRow
in interfaceResultSet
- Throws:
SQLException
-
updateRow
- Specified by:
updateRow
in interfaceResultSet
- Throws:
SQLException
-
deleteRow
- Specified by:
deleteRow
in interfaceResultSet
- Throws:
SQLException
-
refreshRow
- Specified by:
refreshRow
in interfaceResultSet
- Throws:
SQLException
-
cancelRowUpdates
- Specified by:
cancelRowUpdates
in interfaceResultSet
- Throws:
SQLException
-
moveToInsertRow
- Specified by:
moveToInsertRow
in interfaceResultSet
- Throws:
SQLException
-
moveToCurrentRow
- Specified by:
moveToCurrentRow
in interfaceResultSet
- Throws:
SQLException
-
updateRef
- Specified by:
updateRef
in interfaceResultSet
- Throws:
SQLException
-
updateRef
- Specified by:
updateRef
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateArray
- Specified by:
updateArray
in interfaceResultSet
- Throws:
SQLException
-
updateArray
- Specified by:
updateArray
in interfaceResultSet
- Throws:
SQLException
-
updateRowId
- Specified by:
updateRowId
in interfaceResultSet
- Throws:
SQLException
-
updateRowId
- Specified by:
updateRowId
in interfaceResultSet
- Throws:
SQLException
-
updateNString
- Specified by:
updateNString
in interfaceResultSet
- Throws:
SQLException
-
updateNString
- Specified by:
updateNString
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
updateSQLXML
- Specified by:
updateSQLXML
in interfaceResultSet
- Throws:
SQLException
-
updateSQLXML
- Specified by:
updateSQLXML
in interfaceResultSet
- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateNCharacterStream
public void updateNCharacterStream(String columnLabel, Reader reader, long length) throws SQLException- Specified by:
updateNCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
public void updateCharacterStream(String columnLabel, Reader reader, long length) throws SQLException- Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
public void updateBlob(String columnLabel, InputStream inputStream, long length) throws SQLException- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateNCharacterStream
- Specified by:
updateNCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateAsciiStream
- Specified by:
updateAsciiStream
in interfaceResultSet
- Throws:
SQLException
-
updateBinaryStream
- Specified by:
updateBinaryStream
in interfaceResultSet
- Throws:
SQLException
-
updateCharacterStream
- Specified by:
updateCharacterStream
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateBlob
- Specified by:
updateBlob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateClob
- Specified by:
updateClob
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
updateNClob
- Specified by:
updateNClob
in interfaceResultSet
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in interfaceWrapper
-