javax.sql.RowSet , representing a disconnected variant of
java.sql.ResultSet data.
The main difference to the standard JDBC RowSet is that a java.
is never thrown here. This allows an SqlRowSet to be used without having to deal with
checked exceptions. An SqlRowSet will throw Spring's InvalidResultSetAccessException
instead (when appropriate).
Note
This interface extends the java.io.Serializable marker interface.
Implementations, which typically hold disconnected data, are encouraged to be actually
serializable (as far as possible).
javax.sql.RowSet , java.sql.ResultSet , org.springframework.jdbc.InvalidResultSetAccessException , org.springframework.jdbc.core.JdbcTemplate#queryForRowSet
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the cursor is on the row set, false otherwisethe number of the row where the cursor should move row)Move the cursor to the given row number in the row set, just after the last row. |
| public void | |
| public void | |
| public int | Returns: the column index for the given column labelthe name of the column columnLabel)Map the given column label to its column index. |
| public boolean | Returns: true if the cursor is on a valid row, false otherwiseMove the cursor to the first row of this row set. |
| public BigDecimal | Returns: an BigDecimal object representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a BigDecimal object. |
| public BigDecimal | Returns: an BigDecimal object representing the column valuethe column label columnLabel)Retrieve the value of the indicated column in the current row as a BigDecimal object. |
| public boolean | Returns: a boolean representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a boolean. |
| public boolean | Returns: a boolean representing the column valuethe column label columnLabel)Retrieve the value of the indicated column in the current row as a boolean. |
| public byte | Returns: a byte representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a byte. |
| public byte | |
| public Date | Returns: a Date object representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a Date object. |
| public Date | |
| public Date | |
| public Date | |
| public double | Returns: a Double object representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a Double object. |
| public double | |
| public float | Returns: a float representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a float. |
| public float | |
| public int | Returns: an int representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as an int. |
| public int | |
| public long | Returns: a long representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a long. |
| public long | |
| public SqlRowSetMetaData | Returns: a corresponding SqlRowSetMetaData instanceRetrieve the meta-data, i.e. number, types and properties for the columns of this row set. |
| public String | Returns: a String representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a String (for NCHAR, NVARCHAR, LONGNVARCHAR columns). |
| public String | Returns: a String representing the column valuethe column label columnLabel)Retrieve the value of the indicated column in the current row as a String (for NCHAR, NVARCHAR, LONGNVARCHAR columns). |
| public Object | Returns: an Object representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as an Object. |
| public Object | |
| public Object | |
| public Object | |
| public <T> T | |
| public <T> T | |
| public int | |
| public short | Returns: a short representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a short. |
| public short | |
| public String | Returns: a String representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a String. |
| public String | |
| public Time | Returns: a Time object representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a Time object. |
| public Time | |
| public Time | |
| public Time | |
| public Timestamp | Returns: a Timestamp object representing the column valuethe column index columnIndex)Retrieve the value of the indicated column in the current row as a Timestamp object. |
| public Timestamp | Returns: a Timestamp object representing the column valuethe column label columnLabel)Retrieve the value of the indicated column in the current row as a Timestamp object. |
| public Timestamp | Returns: a Timestamp object representing the column valuethe column index columnIndex, Calendar the Calendar to use in constructing the Date cal)Retrieve the value of the indicated column in the current row as a Timestamp object. |
| public Timestamp | Returns: a Timestamp object representing the column valuethe column label columnLabel, Calendar the Calendar to use in constructing the Date cal)Retrieve the value of the indicated column in the current row as a Timestamp object. |
| public boolean | Returns: true if the cursor is after the last row, false otherwiseRetrieve whether the cursor is after the last row of this row set. |
| public boolean | Returns: true if the cursor is before the first row, false otherwiseRetrieve whether the cursor is before the first row of this row set. |
| public boolean | Returns: true if the cursor is after the first row, false otherwiseRetrieve whether the cursor is on the first row of this row set. |
| public boolean | Returns: true if the cursor is after the last row, false otherwiseRetrieve whether the cursor is on the last row of this row set. |
| public boolean | Returns: true if the cursor is on a valid row, false otherwiseMove the cursor to the last row of this row set. |
| public boolean | Returns: true if the new row is valid, false if there are no more rowsMove the cursor to the next row. |
| public boolean | Returns: true if the new row is valid, false if it is off the row setMove the cursor to the previous row. |
| public boolean | Returns: true if the cursor is on a row, false otherwiseMove the cursor a relative number of rows, either positive or negative. |
| public boolean | Returns: true if the most recent column retrieved was
SQL NULL, false otherwiseReport whether the last column read had a value of SQL |
| absolute | back to summary |
|---|---|
| public boolean absolute(int row) throws InvalidResultSetAccessException Move the cursor to the given row number in the row set, just after the last row.
| |
| afterLast | back to summary |
|---|---|
| public void afterLast() throws InvalidResultSetAccessException Move the cursor to the end of this row set.
| |
| beforeFirst | back to summary |
|---|---|
| public void beforeFirst() throws InvalidResultSetAccessException Move the cursor to the front of this row set, just before the first row.
| |
| findColumn | back to summary |
|---|---|
| public int findColumn(String columnLabel) throws InvalidResultSetAccessException Map the given column label to its column index.
| |
| first | back to summary |
|---|---|
| public boolean first() throws InvalidResultSetAccessException Move the cursor to the first row of this row set.
| |
| getBigDecimal | back to summary |
|---|---|
| public BigDecimal getBigDecimal(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a BigDecimal object.
| |
| getBigDecimal | back to summary |
|---|---|
| public BigDecimal getBigDecimal(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a BigDecimal object.
| |
| getBoolean | back to summary |
|---|---|
| public boolean getBoolean(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a boolean.
| |
| getBoolean | back to summary |
|---|---|
| public boolean getBoolean(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a boolean.
| |
| getByte | back to summary |
|---|---|
| public byte getByte(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a byte.
| |
| getByte | back to summary |
|---|---|
| public byte getByte(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a byte.
| |
| getDate | back to summary |
|---|---|
| public Date getDate(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Date object.
| |
| getDate | back to summary |
|---|---|
| public Date getDate(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Date object.
| |
| getDate | back to summary |
|---|---|
| public Date getDate(int columnIndex, Calendar cal) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Date object.
| |
| getDate | back to summary |
|---|---|
| public Date getDate(String columnLabel, Calendar cal) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Date object.
| |
| getDouble | back to summary |
|---|---|
| public double getDouble(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Double object.
| |
| getDouble | back to summary |
|---|---|
| public double getDouble(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Double object.
| |
| getFloat | back to summary |
|---|---|
| public float getFloat(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a float.
| |
| getFloat | back to summary |
|---|---|
| public float getFloat(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a float.
| |
| getInt | back to summary |
|---|---|
| public int getInt(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as an int.
| |
| getInt | back to summary |
|---|---|
| public int getInt(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as an int.
| |
| getLong | back to summary |
|---|---|
| public long getLong(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a long.
| |
| getLong | back to summary |
|---|---|
| public long getLong(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a long.
| |
| getMetaData | back to summary |
|---|---|
| public SqlRowSetMetaData getMetaData() Retrieve the meta-data, i.e. number, types and properties for the columns of this row set.
| |
| getNString | back to summary |
|---|---|
| public String getNString(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a String (for NCHAR, NVARCHAR, LONGNVARCHAR columns).
| |
| getNString | back to summary |
|---|---|
| public String getNString(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a String (for NCHAR, NVARCHAR, LONGNVARCHAR columns).
| |
| getObject | back to summary |
|---|---|
| public Object getObject(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as an Object.
| |
| getObject | back to summary |
|---|---|
| public Object getObject(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as an Object.
| |
| getObject | back to summary |
|---|---|
| public Object getObject(int columnIndex, Map<String, Class<?>> map) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as an Object. | |
| getObject | back to summary |
|---|---|
| public Object getObject(String columnLabel, Map<String, Class<?>> map) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as an Object. | |
| getObject | back to summary |
|---|---|
| public <T> T getObject(int columnIndex, Class<T> type) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as an Object.
| |
| getObject | back to summary |
|---|---|
| public <T> T getObject(String columnLabel, Class<T> type) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as an Object.
| |
| getRow | back to summary |
|---|---|
| public int getRow() throws InvalidResultSetAccessException Retrieve the current row number.
| |
| getShort | back to summary |
|---|---|
| public short getShort(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a short.
| |
| getShort | back to summary |
|---|---|
| public short getShort(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a short.
| |
| getString | back to summary |
|---|---|
| public String getString(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a String.
| |
| getString | back to summary |
|---|---|
| public String getString(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a String.
| |
| getTime | back to summary |
|---|---|
| public Time getTime(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Time object.
| |
| getTime | back to summary |
|---|---|
| public Time getTime(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Time object.
| |
| getTime | back to summary |
|---|---|
| public Time getTime(int columnIndex, Calendar cal) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Time object.
| |
| getTime | back to summary |
|---|---|
| public Time getTime(String columnLabel, Calendar cal) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Time object.
| |
| getTimestamp | back to summary |
|---|---|
| public Timestamp getTimestamp(int columnIndex) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Timestamp object.
| |
| getTimestamp | back to summary |
|---|---|
| public Timestamp getTimestamp(String columnLabel) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Timestamp object.
| |
| getTimestamp | back to summary |
|---|---|
| public Timestamp getTimestamp(int columnIndex, Calendar cal) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Timestamp object.
| |
| getTimestamp | back to summary |
|---|---|
| public Timestamp getTimestamp(String columnLabel, Calendar cal) throws InvalidResultSetAccessException Retrieve the value of the indicated column in the current row as a Timestamp object.
| |
| isAfterLast | back to summary |
|---|---|
| public boolean isAfterLast() throws InvalidResultSetAccessException Retrieve whether the cursor is after the last row of this row set.
| |
| isBeforeFirst | back to summary |
|---|---|
| public boolean isBeforeFirst() throws InvalidResultSetAccessException Retrieve whether the cursor is before the first row of this row set.
| |
| isFirst | back to summary |
|---|---|
| public boolean isFirst() throws InvalidResultSetAccessException Retrieve whether the cursor is on the first row of this row set.
| |
| isLast | back to summary |
|---|---|
| public boolean isLast() throws InvalidResultSetAccessException Retrieve whether the cursor is on the last row of this row set.
| |
| last | back to summary |
|---|---|
| public boolean last() throws InvalidResultSetAccessException Move the cursor to the last row of this row set.
| |
| next | back to summary |
|---|---|
| public boolean next() throws InvalidResultSetAccessException Move the cursor to the next row.
| |
| previous | back to summary |
|---|---|
| public boolean previous() throws InvalidResultSetAccessException Move the cursor to the previous row.
| |
| relative | back to summary |
|---|---|
| public boolean relative(int rows) throws InvalidResultSetAccessException Move the cursor a relative number of rows, either positive or negative.
| |
| wasNull | back to summary |
|---|---|
| public boolean wasNull() throws InvalidResultSetAccessException Report whether the last column read had a value of SQL Note that you must first call one of the getter methods and then
call the
| |