Method Summary |
|
public boolean | absolute(int row) Moves the Cursor to a specified row number in the ResultSet. |
public void | afterLast() Moves the Cursor to the end of the ResultSet, after the last row. |
public void | beforeFirst() Moves the Cursor to the start of the ResultSet, before the first row. |
public void | cancelRowUpdates() Cancels any updates made to the current row in the ResultSet. |
public void | clearWarnings() Clears all the warnings related to this ResultSet. |
public void | close() Releases this ResultSet's database and JDBC resources. |
public void | deleteRow() Deletes the current row from the ResultSet and from the underlying
database. |
public int | findColumn(String columnName) Gets the index number for a column in the ResultSet from the provided
Column Name. |
public boolean | first() Shifts the cursor position to the first row in the ResultSet. |
public Array | getArray(int columnIndex) Gets the content of a column specified as a column index in the current
row of this ResultSet as a java.sql.Array. |
public Array | getArray(String colName) Gets the value of a column specified as a column name as a
java.sql.Array. |
public InputStream | getAsciiStream(int columnIndex) Gets the value of a column specified as a column index as an ASCII
character stream. |
public InputStream | getAsciiStream(String columnName) Gets the value of a column specified as a column name as an ASCII
character stream. |
public BigDecimal | getBigDecimal(int columnIndex) Gets the value of a column specified as a column index as a
java.math.BigDecimal. |
public BigDecimal | getBigDecimal(int columnIndex, int scale) |
public BigDecimal | getBigDecimal(String columnName) Gets the value of a column specified as a column name, as a
java.math.BigDecimal. |
public BigDecimal | getBigDecimal(String columnName, int scale) |
public InputStream | getBinaryStream(int columnIndex) Gets the value of a column specified as a column index as a binary
stream.
This method can be used to read LONGVARBINARY values. |
public InputStream | getBinaryStream(String columnName) Gets the value of a column specified as a column name as a binary stream.
This method can be used to read LONGVARBINARY values. |
public Blob | getBlob(int columnIndex) Gets the value of a column specified as a column index as a java.sql.Blob
object. |
public Blob | getBlob(String columnName) Gets the value of a column specified as a column name, as a java.sql.Blob
object. |
public boolean | getBoolean(int columnIndex) Gets the value of a column specified as a column index as a boolean.
Parameters: columnIndex - the index of the column to read a boolean value from the column. |
public boolean | getBoolean(String columnName) Gets the value of a column specified as a column name, as a boolean.
Parameters: columnName - the name of the column to read a boolean value from the column. |
public byte | getByte(int columnIndex) Gets the value of a column specified as a column index as a byte.
Parameters: columnIndex - the index of the column to read a byte containing the value of the column. |
public byte | getByte(String columnName) Gets the value of a column specified as a column name as a byte.
Parameters: columnName - the name of the column to read a byte containing the value of the column. |
public byte[] | getBytes(int columnIndex) Gets the value of a column specified as a column index as a byte array.
Parameters: columnIndex - the index of the column to read a byte array containing the value of the column. |
public byte[] | getBytes(String columnName) Gets the value of a column specified as a column name as a byte array.
Parameters: columnName - the name of the column to read a byte array containing the value of the column. |
public Reader | getCharacterStream(int columnIndex) Gets the value of a column specified as a column index as a
java.io.Reader object.
Parameters: columnIndex - the index of the column to read a Reader holding the value of the column. |
public Reader | getCharacterStream(String columnName) Gets the value of a column specified as a column name as a java.io.Reader
object.
Parameters: columnName - the name of the column to read a Reader holding the value of the column. |
public Clob | getClob(int columnIndex) Gets the value of a column specified as a column index as a
java.sql.Clob.
Parameters: columnIndex - the index of the column to read a Clob object representing the value in the column. |
public Clob | getClob(String colName) Gets the value of a column specified as a column name as a java.sql.Clob.
Parameters: colName - the name of the column to read a Clob object representing the value in the column. |
public int | getConcurrency() Gets the concurrency mode of this ResultSet. |
public String | getCursorName() Gets the name of the SQL cursor of this ResultSet. |
public Date | getDate(int columnIndex) Gets the value of a column specified as a column index as a
java.sql.Date.
Parameters: columnIndex - the index of the column to read a java.sql.Date matching the column value. |
public Date | getDate(int columnIndex, Calendar cal) Gets the value of a column specified as a column index as a
java.sql.Date. |
public Date | getDate(String columnName) Gets the value of a column specified as a column name as a java.sql.Date.
Parameters: columnName - the name of the column to read a java.sql.Date matching the column value. |
public Date | getDate(String columnName, Calendar cal) Gets the value of a column specified as a column name, as a java.sql.Date
object.
Parameters: columnName - the name of the column to read Parameters: cal - java.util.Calendar to use in constructing the Date. |
public double | getDouble(int columnIndex) Gets the value of a column specified as a column index as a double value.
Parameters: columnIndex - the index of the column to read a double containing the column value. |
public double | getDouble(String columnName) Gets the value of a column specified as a column name as a double value.
Parameters: columnName - the name of the column to read a double containing the column value. |
public int | getFetchDirection() Gets the direction in which rows are fetched for this ResultSet object.
the fetch direction. |
public int | getFetchSize() |
public float | getFloat(int columnIndex) Gets the value of a column specified as a column index as a float value.
Parameters: columnIndex - the index of the column to read a float containing the column value. |
public float | getFloat(String columnName) Gets the value of a column specified as a column name as a float value.
Parameters: columnName - the name of the column to read a float containing the column value. |
public int | getInt(int columnIndex) Gets the value of a column specified as a column index as an int value.
Parameters: columnIndex - the index of the column to read an int containing the column value. |
public int | getInt(String columnName) Gets the value of a column specified as a column name, as an int value.
Parameters: columnName - the name of the column to read an int containing the column value. |
public long | getLong(int columnIndex) Gets the value of a column specified as a column index as a long value.
Parameters: columnIndex - the index of the column to read a long containing the column value. |
public long | getLong(String columnName) Gets the value of a column specified as a column name, as a long value.
Parameters: columnName - the name of the column to read a long containing the column value. |
public ResultSetMetaData | getMetaData() Gets the Metadata for this ResultSet. |
public Object | getObject(int columnIndex) Gets the value of a specified column as a Java Object. |
public Object | getObject(int columnIndex, Map<String, Class<?>> map) Gets the value of a column specified as a column index as a Java Object.
The type of the Java object will be determined by the supplied Map to
perform the mapping of SQL Struct or Distinct types into Java objects.
Parameters: columnIndex - the index of the column to read Parameters: map - a java.util.Map containing a mapping from SQL Type names toJava classes. |
public Object | getObject(String columnName) Gets the value of a specified column as a Java Object. |
public Object | getObject(String columnName, Map<String, Class<?>> map) Gets the value of a column specified as a column name as a Java Object.
The type of the Java object will be determined by the supplied Map to
perform the mapping of SQL Struct or Distinct types into Java objects.
Parameters: columnName - the name of the column to read Parameters: map - a java.util.Map containing a mapping from SQL Type names toJava classes. |
public Ref | getRef(int columnIndex) Gets the value of a column specified as a column index as a Java
java.sql.Ref. |
public Ref | getRef(String colName) Gets the value of a column specified as a column name as a Java
java.sql.Ref. |
public int | getRow() Gets the number of the current row in the ResultSet. |
public short | getShort(int columnIndex) Gets the value of a column specified as a column index as a short value.
Parameters: columnIndex - the index of the column to read a short value containing the value of the column. |
public short | getShort(String columnName) Gets the value of a column specified as a column name, as a short value.
Parameters: columnName - the name of the column to read a short value containing the value of the column. |
public Statement | getStatement() Gets the Statement that produced this ResultSet. |
public String | getString(int columnIndex) Gets the value of a column specified as a column index as a String. |
public String | getString(String columnName) Gets the value of a column specified as a column name, as a String. |
public Time | getTime(int columnIndex) Gets the value of a column specified as a column index as a java.sql.Time
value. |
public Time | getTime(int columnIndex, Calendar cal) Gets the value of a column specified as a column index as a java.sql.Time
value. |
public Time | getTime(String columnName) Gets the value of a column specified as a column name, as a java.sql.Time
value. |
public Time | getTime(String columnName, Calendar cal) Gets the value of a column specified as a column index, as a
java.sql.Time value. |
public Timestamp | getTimestamp(int columnIndex) Gets the value of a column specified as a column index as a
java.sql.Timestamp value. |
public Timestamp | getTimestamp(int columnIndex, Calendar cal) Gets the value of a column specified as a column index, as a
java.sql.Timestamp value. |
public Timestamp | getTimestamp(String columnName) Gets the value of a column specified as a column name, as a
java.sql.Timestamp value. |
public Timestamp | getTimestamp(String columnName, Calendar cal) Gets the value of a column specified as a column name, as a
java.sql.Timestamp value. |
public int | getType() Gets the type of the ResultSet. |
public URL | getURL(int columnIndex) Gets the value of a column specified as a column index as a java.net.URL.
Parameters: columnIndex - the index of the column to read a URL. |
public URL | getURL(String columnName) Gets the value of a column specified as a column name as a java.net.URL
object.
Parameters: columnName - the name of the column to read a URL. |
public InputStream | getUnicodeStream(int columnIndex) Parameters: columnIndex - the index of the column to read an InputStream holding the value of the column. |
public InputStream | getUnicodeStream(String columnName) Parameters: columnName - the name of the column to read an InputStream holding the value of the column. |
public SQLWarning | getWarnings() Gets the first warning generated by calls on this ResultSet. |
public void | insertRow() Insert the insert row into the ResultSet and into the underlying
database. |
public boolean | isAfterLast() Gets if the cursor is after the last row of the ResultSet. |
public boolean | isBeforeFirst() Gets if the cursor is before the first row of the ResultSet. |
public boolean | isFirst() Gets if the cursor is on the first row of the ResultSet. |
public boolean | isLast() |
public boolean | last() Shifts the cursor position to the last row of the ResultSet. |
public void | moveToCurrentRow() Moves the cursor to the remembered position, usually the current row. |
public void | moveToInsertRow() Moves the cursor position to the Insert row. |
public boolean | next() Shifts the cursor position down one row in this ResultSet object. |
public boolean | previous() Relocates the cursor position to the preceding row in this ResultSet. |
public void | refreshRow() Refreshes the current row with its most up to date value in the database. |
public boolean | relative(int rows) Moves the cursor position up or down by a specified number of rows. |
public boolean | rowDeleted() Indicates whether a row has been deleted. |
public boolean | rowInserted() Indicates whether the current row has had an insertion operation. |
public boolean | rowUpdated() Indicates whether the current row has been updated. |
public void | setFetchDirection(int direction) Indicates which direction (forward/reverse) will be used to process the
rows of this ResultSet object. |
public void | setFetchSize(int rows) Indicates the amount of rows to fetch from the database when extra rows
are required for this ResultSet. |
public void | updateArray(int columnIndex, Array x) Updates a column specified by a column index with a java.sql.Array value. |
public void | updateArray(String columnName, Array x) Updates a column specified by a column name with a java.sql.Array value. |
public void | updateAsciiStream(int columnIndex, InputStream x, int length) Updates a column specified by a column index with an ASCII stream value. |
public void | updateAsciiStream(String columnName, InputStream x, int length) Updates a column specified by a column name with an Ascii stream value. |
public void | updateBigDecimal(int columnIndex, BigDecimal x) Updates a column specified by a column index with a java.sql.BigDecimal
value. |
public void | updateBigDecimal(String columnName, BigDecimal x) Updates a column specified by a column name with a java.sql.BigDecimal
value. |
public void | updateBinaryStream(int columnIndex, InputStream x, int length) Updates a column specified by a column index with a binary stream value. |
public void | updateBinaryStream(String columnName, InputStream x, int length) Updates a column specified by a column name with a binary stream value. |
public void | updateBlob(int columnIndex, Blob x) Updates a column specified by a column index with a java.sql.Blob value. |
public void | updateBlob(String columnName, Blob x) Updates a column specified by a column name with a java.sql.Blob value. |
public void | updateBoolean(int columnIndex, boolean x) Updates a column specified by a column index with a boolean value. |
public void | updateBoolean(String columnName, boolean x) Updates a column specified by a column name with a boolean value. |
public void | updateByte(int columnIndex, byte x) Updates a column specified by a column index with a byte value. |
public void | updateByte(String columnName, byte x) Updates a column specified by a column name with a byte value. |
public void | updateBytes(int columnIndex, byte[] x) Updates a column specified by a column index with a byte array value. |
public void | updateBytes(String columnName, byte[] x) Updates a column specified by a column name with a byte array value. |
public void | updateCharacterStream(int columnIndex, Reader x, int length) Updates a column specified by a column index with a character stream
value. |
public void | updateCharacterStream(String columnName, Reader reader, int length) Updates a column specified by a column name with a character stream
value. |
public void | updateClob(int columnIndex, Clob x) Updates a column specified by a column index with a java.sql.Clob value. |
public void | updateClob(String columnName, Clob x) Updates a column specified by a column name with a java.sql.Clob value. |
public void | updateDate(int columnIndex, Date x) Updates a column specified by a column index with a java.sql.Date value. |
public void | updateDate(String columnName, Date x) Updates a column specified by a column name with a java.sql.Date value. |
public void | updateDouble(int columnIndex, double x) Updates a column specified by a column index with a double value. |
public void | updateDouble(String columnName, double x) Updates a column specified by a column name with a double value. |
public void | updateFloat(int columnIndex, float x) Updates a column specified by a column index with a float value. |
public void | updateFloat(String columnName, float x) Updates a column specified by a column name with a float value. |
public void | updateInt(int columnIndex, int x) Updates a column specified by a column index with an int value. |
public void | updateInt(String columnName, int x) Updates a column specified by a column name with an int value. |
public void | updateLong(int columnIndex, long x) Updates a column specified by a column index with a long value. |
public void | updateLong(String columnName, long x) Updates a column specified by a column name with a long value. |
public void | updateNull(int columnIndex) Updates a column specified by a column index with a null value. |
public void | updateNull(String columnName) Updates a column specified by a column name with a null value. |
public void | updateObject(int columnIndex, Object x) Updates a column specified by a column index with an Object value. |
public void | updateObject(int columnIndex, Object x, int scale) Updates a column specified by a column index with an Object value. |
public void | updateObject(String columnName, Object x) Updates a column specified by a column name with an Object value. |
public void | updateObject(String columnName, Object x, int scale) Updates a column specified by a column name with an Object value. |
public void | updateRef(int columnIndex, Ref x) Updates a column specified by a column index with a java.sql.Ref value. |
public void | updateRef(String columnName, Ref x) Updates a column specified by a column name with a java.sql.Ref value. |
public void | updateRow() Updates the database with the new contents of the current row of this
ResultSet object. |
public void | updateShort(int columnIndex, short x) Updates a column specified by a column index with a short value. |
public void | updateShort(String columnName, short x) Updates a column specified by a column name with a short value. |
public void | updateString(int columnIndex, String x) Updates a column specified by a column index with a String value. |
public void | updateString(String columnName, String x) Updates a column specified by a column name with a String value. |
public void | updateTime(int columnIndex, Time x) Updates a column specified by a column index with a Time value. |
public void | updateTime(String columnName, Time x) Updates a column specified by a column name with a Time value. |
public void | updateTimestamp(int columnIndex, Timestamp x) Updates a column specified by a column index with a Timestamp value. |
public void | updateTimestamp(String columnName, Timestamp x) Updates a column specified by column name with a Timestamp value. |
public boolean | wasNull() Determines if the last column read from this ResultSet contained SQL
NULL. |