Package io.deephaven.jdbc
Class ImmutableResultSet
java.lang.Object
io.deephaven.jdbc.ReadOnlyResultSet
io.deephaven.jdbc.ImmutableResultSet
- All Implemented Interfaces:
AutoCloseable
,ResultSet
,Wrapper
public class ImmutableResultSet extends ReadOnlyResultSet
A read-only in-memory ResultSet implementation that is constructed from raw data and type information.
-
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 boolean
absolute(int row)
void
afterLast()
void
beforeFirst()
void
cancelRowUpdates()
void
clearWarnings()
void
close()
int
findColumn(String columnName)
boolean
first()
Array
getArray(int columnIndex)
Array
getArray(String columnName)
InputStream
getAsciiStream(int columnIndex)
InputStream
getAsciiStream(String columnName)
BigDecimal
getBigDecimal(int columnIndex)
BigDecimal
getBigDecimal(int columnIndex, int scale)
BigDecimal
getBigDecimal(String columnName)
BigDecimal
getBigDecimal(String columnName, int scale)
InputStream
getBinaryStream(int columnIndex)
InputStream
getBinaryStream(String columnName)
Blob
getBlob(int columnIndex)
Blob
getBlob(String columnLabel)
boolean
getBoolean(int columnIndex)
boolean
getBoolean(String columnName)
byte
getByte(int columnIndex)
byte
getByte(String columnLabel)
byte[]
getBytes(int columnIndex)
byte[]
getBytes(String columnName)
Reader
getCharacterStream(int columnIndex)
Reader
getCharacterStream(String columnName)
Clob
getClob(int columnIndex)
Clob
getClob(String columnLabel)
int
getConcurrency()
String
getCursorName()
Date
getDate(int columnIndex)
Date
getDate(int columnIndex, Calendar cal)
Date
getDate(String columnName)
Date
getDate(String columnIndex, Calendar cal)
double
getDouble(int columnIndex)
double
getDouble(String columnName)
int
getFetchDirection()
int
getFetchSize()
float
getFloat(int columnIndex)
float
getFloat(String columnName)
int
getHoldability()
int
getInt(int columnIndex)
int
getInt(String columnName)
long
getLong(int columnIndex)
long
getLong(String columnName)
ResultSetMetaData
getMetaData()
Reader
getNCharacterStream(int columnIndex)
Reader
getNCharacterStream(String columnName)
NClob
getNClob(int columnIndex)
NClob
getNClob(String columnLabel)
String
getNString(int columnIndex)
String
getNString(String columnName)
Object
getObject(int columnIndex)
<T> T
getObject(int columnIndex, Class<T> type)
Object
getObject(int columnIndex, Map<String,Class<?>> map)
Object
getObject(String columnName)
<T> T
getObject(String columnLabel, Class<T> type)
Object
getObject(String columnLabel, Map<String,Class<?>> map)
Ref
getRef(int columnIndex)
Ref
getRef(String columnLabel)
int
getRow()
RowId
getRowId(int columnIndex)
RowId
getRowId(String columnLabel)
short
getShort(int columnIndex)
short
getShort(String columnLabel)
SQLXML
getSQLXML(int columnIndex)
SQLXML
getSQLXML(String columnLabel)
Statement
getStatement()
String
getString(int columnIndex)
String
getString(String columnName)
Time
getTime(int columnIndex)
Time
getTime(int columnIndex, Calendar cal)
Time
getTime(String columnName)
Time
getTime(String columnName, Calendar cal)
Timestamp
getTimestamp(int columnIndex)
Timestamp
getTimestamp(int columnIndex, Calendar cal)
Timestamp
getTimestamp(String columnName)
Timestamp
getTimestamp(String columnName, Calendar cal)
int
getType()
InputStream
getUnicodeStream(int columnIndex)
InputStream
getUnicodeStream(String columnName)
URL
getURL(int columnIndex)
URL
getURL(String columnName)
SQLWarning
getWarnings()
boolean
isAfterLast()
boolean
isBeforeFirst()
boolean
isClosed()
boolean
isFirst()
boolean
isLast()
boolean
last()
void
moveToCurrentRow()
boolean
next()
boolean
previous()
void
refreshRow()
boolean
relative(int rows)
boolean
rowDeleted()
boolean
rowInserted()
boolean
rowUpdated()
void
setFetchDirection(int fetchDirection)
void
setFetchSize(int fetchSize)
boolean
wasNull()
Methods inherited from class io.deephaven.jdbc.ReadOnlyResultSet
deleteRow, insertRow, isWrapperFor, moveToInsertRow, unwrap, updateArray, updateArray, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateAsciiStream, updateBigDecimal, updateBigDecimal, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBinaryStream, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBlob, updateBoolean, updateBoolean, updateByte, updateByte, updateBytes, updateBytes, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateCharacterStream, updateClob, updateClob, updateClob, updateClob, updateClob, updateClob, updateDate, updateDate, updateDouble, updateDouble, updateFloat, updateFloat, updateInt, updateInt, updateLong, updateLong, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNCharacterStream, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNClob, updateNString, updateNString, updateNull, updateNull, updateObject, updateObject, updateObject, updateObject, updateRef, updateRef, updateRow, updateRowId, updateRowId, updateShort, updateShort, updateSQLXML, updateSQLXML, updateString, updateString, updateTime, updateTime, updateTimestamp, updateTimestamp
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
updateObject, updateObject, updateObject, updateObject
-
Method Details
-
next
public boolean next() -
close
public void close() -
wasNull
public boolean wasNull() -
getString
- Throws:
SQLException
-
getBoolean
- Throws:
SQLException
-
getByte
- Throws:
SQLException
-
getShort
- Throws:
SQLException
-
getInt
- Throws:
SQLException
-
getLong
- Throws:
SQLException
-
getFloat
- Throws:
SQLException
-
getDouble
- Throws:
SQLException
-
getBigDecimal
- Throws:
SQLException
-
getBytes
- Throws:
SQLException
-
getDate
- Throws:
SQLException
-
getTime
- Throws:
SQLException
-
getTimestamp
- Throws:
SQLException
-
getAsciiStream
- Throws:
SQLException
-
getUnicodeStream
- Throws:
SQLException
-
getBinaryStream
- Throws:
SQLException
-
getString
- Throws:
SQLException
-
getBoolean
- Throws:
SQLException
-
getByte
- Throws:
SQLException
-
getShort
- Throws:
SQLException
-
getInt
- Throws:
SQLException
-
getLong
- Throws:
SQLException
-
getFloat
- Throws:
SQLException
-
getDouble
- Throws:
SQLException
-
getBigDecimal
- Throws:
SQLException
-
getBytes
- Throws:
SQLException
-
getDate
- Throws:
SQLException
-
getTime
- Throws:
SQLException
-
getTimestamp
- Throws:
SQLException
-
getAsciiStream
- Throws:
SQLException
-
getUnicodeStream
- Throws:
SQLException
-
getBinaryStream
- Throws:
SQLException
-
getWarnings
-
clearWarnings
public void clearWarnings() -
getCursorName
-
getMetaData
-
getObject
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
findColumn
- Throws:
SQLException
-
getCharacterStream
- Throws:
SQLException
-
getCharacterStream
- Throws:
SQLException
-
getBigDecimal
- Throws:
SQLException
-
getBigDecimal
- Throws:
SQLException
-
isBeforeFirst
public boolean isBeforeFirst() -
isAfterLast
public boolean isAfterLast() -
isFirst
public boolean isFirst() -
isLast
public boolean isLast() -
beforeFirst
- Throws:
SQLException
-
afterLast
- Throws:
SQLException
-
first
- Throws:
SQLException
-
last
- Throws:
SQLException
-
getRow
- Throws:
SQLException
-
absolute
- Throws:
SQLException
-
relative
- Throws:
SQLException
-
previous
- Throws:
SQLException
-
setFetchDirection
- Throws:
SQLException
-
getFetchDirection
- Throws:
SQLException
-
setFetchSize
- Throws:
SQLException
-
getFetchSize
- Throws:
SQLException
-
getType
- Throws:
SQLException
-
getConcurrency
- Throws:
SQLException
-
rowUpdated
- Specified by:
rowUpdated
in interfaceResultSet
- Overrides:
rowUpdated
in classReadOnlyResultSet
- Throws:
SQLException
-
rowInserted
- Specified by:
rowInserted
in interfaceResultSet
- Overrides:
rowInserted
in classReadOnlyResultSet
- Throws:
SQLException
-
rowDeleted
- Specified by:
rowDeleted
in interfaceResultSet
- Overrides:
rowDeleted
in classReadOnlyResultSet
- Throws:
SQLException
-
refreshRow
- Specified by:
refreshRow
in interfaceResultSet
- Overrides:
refreshRow
in classReadOnlyResultSet
- Throws:
SQLException
-
cancelRowUpdates
- Specified by:
cancelRowUpdates
in interfaceResultSet
- Overrides:
cancelRowUpdates
in classReadOnlyResultSet
- Throws:
SQLException
-
moveToCurrentRow
- Specified by:
moveToCurrentRow
in interfaceResultSet
- Overrides:
moveToCurrentRow
in classReadOnlyResultSet
- Throws:
SQLException
-
getStatement
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getRef
- Throws:
SQLException
-
getBlob
- Throws:
SQLException
-
getClob
- Throws:
SQLException
-
getArray
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getRef
- Throws:
SQLException
-
getBlob
- Throws:
SQLException
-
getClob
- Throws:
SQLException
-
getArray
- Throws:
SQLException
-
getDate
- Throws:
SQLException
-
getDate
- Throws:
SQLException
-
getTime
- Throws:
SQLException
-
getTime
- Throws:
SQLException
-
getTimestamp
- Throws:
SQLException
-
getTimestamp
- Throws:
SQLException
-
getURL
- Throws:
SQLException
-
getURL
- Throws:
SQLException
-
getRowId
- Throws:
SQLException
-
getRowId
- Throws:
SQLException
-
getHoldability
public int getHoldability() -
isClosed
public boolean isClosed() -
getNClob
- Throws:
SQLException
-
getNClob
- Throws:
SQLException
-
getSQLXML
- Throws:
SQLException
-
getSQLXML
- Throws:
SQLException
-
getNString
- Throws:
SQLException
-
getNString
- Throws:
SQLException
-
getNCharacterStream
- Throws:
SQLException
-
getNCharacterStream
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-