public class InMemoryResultSet extends AbstractResultSet
Constructor and Description |
---|
InMemoryResultSet(java.sql.ResultSet rs)
create a new InMemoryResultSet populating it from
an existing ResultSet
|
Modifier and Type | Method and Description |
---|---|
void |
close()
close this result set
|
byte[] |
getBytes(int columnIdx)
return the column as a byte array
|
int |
getInt(int columnIdx)
return the column as a integer
|
java.sql.ResultSetMetaData |
getMetaData() |
java.lang.Object |
getObject(int columnIdx)
return the column as an object
|
int |
getRow()
return the current (java.sql 1-based) row number of this result set
|
short |
getShort(int columnIdx)
return the column as a short
|
java.lang.String |
getString(int columnIdx)
return the column as a string
|
boolean |
isClosed()
is this result set closed
|
boolean |
next()
indicate if there are any more objects in this result set
|
absolute, afterLast, beforeFirst, cancelRowUpdates, clearWarnings, deleteRow, findColumn, first, getArray, getArray, getAsciiStream, getAsciiStream, getBigDecimal, getBigDecimal, getBigDecimal, getBigDecimal, getBinaryStream, getBinaryStream, getBlob, getBlob, getBoolean, getBoolean, getByte, getByte, getBytes, getCharacterStream, getCharacterStream, getClob, getClob, getConcurrency, getCursorName, getDate, getDate, getDate, getDate, getDouble, getDouble, getFetchDirection, getFetchSize, getFloat, getFloat, getHoldability, getInt, getLong, getLong, getNCharacterStream, getNCharacterStream, getNClob, getNClob, getNString, getNString, getObject, getObject, getObject, getObject, getObject, getRef, getRef, getRowId, getRowId, getShort, getSQLXML, getSQLXML, getStatement, getString, getTime, getTime, getTime, getTime, getTimestamp, getTimestamp, getTimestamp, getTimestamp, getType, getUnicodeStream, getUnicodeStream, getURL, getURL, getWarnings, insertRow, isAfterLast, isBeforeFirst, isFirst, isLast, isWrapperFor, last, moveToCurrentRow, moveToInsertRow, previous, refreshRow, relative, rowDeleted, rowInserted, rowUpdated, setFetchDirection, setFetchSize, 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, wasNull
public InMemoryResultSet(java.sql.ResultSet rs) throws java.sql.SQLException
rs
- java.sql.SQLException
public boolean next() throws java.sql.SQLException
next
in interface java.sql.ResultSet
next
in class AbstractResultSet
java.sql.SQLException
public void close() throws java.sql.SQLException
close
in interface java.lang.AutoCloseable
close
in interface java.sql.ResultSet
close
in class AbstractResultSet
java.sql.SQLException
public boolean isClosed() throws java.sql.SQLException
isClosed
in interface java.sql.ResultSet
isClosed
in class AbstractResultSet
java.sql.SQLException
public int getRow() throws java.sql.SQLException
getRow
in interface java.sql.ResultSet
getRow
in class AbstractResultSet
java.sql.SQLException
public java.lang.Object getObject(int columnIdx) throws java.sql.SQLException
getObject
in interface java.sql.ResultSet
getObject
in class AbstractResultSet
java.sql.SQLException
public java.lang.String getString(int columnIdx) throws java.sql.SQLException
getString
in interface java.sql.ResultSet
getString
in class AbstractResultSet
java.sql.SQLException
public short getShort(int columnIdx) throws java.sql.SQLException
getShort
in interface java.sql.ResultSet
getShort
in class AbstractResultSet
java.sql.SQLException
public int getInt(int columnIdx) throws java.sql.SQLException
getInt
in interface java.sql.ResultSet
getInt
in class AbstractResultSet
java.sql.SQLException
public byte[] getBytes(int columnIdx) throws java.sql.SQLException
getBytes
in interface java.sql.ResultSet
getBytes
in class AbstractResultSet
java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData()
getMetaData
in interface java.sql.ResultSet
getMetaData
in class AbstractResultSet