Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.sql

Interface ResultSet

java.lang.Object
|
+--java.sql.ResultSet


public interface ResultSet

This interface provides access to the data set returned by a SQL statement. An instance of this interface is returned by the various execution methods in the Statement This class models a cursor, which can be stepped through one row at a time. Methods are provided for accessing columns by column name or by index.

Note that a result set is invalidated if the statement that returned it is closed.

Author:

Field Summary

static intCLOSE_CURSORS_AT_COMMIT

static intCONCUR_READ_ONLY

The concurrency mode of for the result set may not be modified.
static intCONCUR_UPDATABLE

The concurrency mode of for the result set may be modified.
static intFETCH_FORWARD

The rows will be processed in order from first to last.
static intFETCH_REVERSE

The rows will be processed in order from last to first.
static intFETCH_UNKNOWN

The rows will be processed in an unknown order
static intHOLD_CURSORS_OVER_COMMIT

static intTYPE_FORWARD_ONLY

This type of result set may only step forward through the rows returned.
static intTYPE_SCROLL_INSENSITIVE

This type of result set is scrollable and is not sensitive to changes made by other statements.
static intTYPE_SCROLL_SENSITIVE

This type of result set is scrollable and is also sensitive to changes made by other statements.

Method Summary

booleanabsolute(int row)

This method positions the result set to the specified absolute row.
voidafterLast()

This method repositions the cursor to after the last row in the result set.
voidbeforeFirst()

This method repositions the cursor to before the first row in the result set.
voidcancelRowUpdates()

This method cancels any changes that have been made to a row.
voidclearWarnings()

This method clears all warnings associated with this result set.
voidclose()

This method closes the result set and frees any associated resources.
voiddeleteRow()

This method deletes the current row in the database.
intfindColumn(java.lang.String columnName)

This method returns the column index of the specified named column.
booleanfirst()

This method repositions the cursor on the first row in the result set.
java.sql.ArraygetArray(int i)

This method returns the specified column value as an Array.
java.sql.ArraygetArray(java.lang.String colName)

This method returns the specified column value as an Array.
java.io.InputStreamgetAsciiStream(int columnIndex)

This method returns the value of the specified column as an ASCII stream.
java.io.InputStreamgetAsciiStream(java.lang.String columnName)

This method returns the value of the specified column as an ASCII stream.
java.math.BigDecimalgetBigDecimal(int columnIndex, int scale)

This method returns the value of the specified column as a Java BigDecimal.
java.math.BigDecimalgetBigDecimal(java.lang.String columnName, int scale)

This method returns the value of the specified column as a Java BigDecimal.
java.math.BigDecimalgetBigDecimal(int columnIndex)

This method returns the value of the specified column as a Java BigDecimal.
java.math.BigDecimalgetBigDecimal(java.lang.String columnName)

This method returns the value of the specified column as a Java BigDecimal.
java.io.InputStreamgetBinaryStream(int columnIndex)

This method returns the value of the specified column as a raw byte stream.
java.io.InputStreamgetBinaryStream(java.lang.String columnName)

This method returns the value of the specified column as a raw byte stream.
java.sql.BlobgetBlob(int i)

This method returns the specified column value as a BLOB.
java.sql.BlobgetBlob(java.lang.String colName)

This method returns the specified column value as a BLOB.
booleangetBoolean(int columnIndex)

This method returns the value of the specified column as a Java boolean.
booleangetBoolean(java.lang.String columnName)

This method returns the value of the specified column as a Java boolean.
bytegetByte(int columnIndex)

This method returns the value of the specified column as a Java byte.
bytegetByte(java.lang.String columnName)

This method returns the value of the specified column as a Java byte.
byte[]getBytes(int columnIndex)

This method returns the value of the specified column as a Java byte array.
byte[]getBytes(java.lang.String columnName)

This method returns the value of the specified column as a Java byte array.
java.io.ReadergetCharacterStream(int columnIndex)

This method returns the value of the specified column as a character stream.
java.io.ReadergetCharacterStream(java.lang.String columnName)

This method returns the value of the specified column as a character stream.
java.sql.ClobgetClob(int i)

This method returns the specified column value as a CLOB.
java.sql.ClobgetClob(java.lang.String colName)

This method returns the specified column value as a CLOB.
intgetConcurrency()

This method returns the concurrency type of this result set.
java.lang.StringgetCursorName()

This method returns the name of the database cursor used by this result set.
java.sql.DategetDate(int columnIndex)

This method returns the value of the specified column as a Java java.sql.Date.
java.sql.DategetDate(java.lang.String columnName)

This method returns the value of the specified column as a Java java.sql.Date.
java.sql.DategetDate(int columnIndex, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Date.
java.sql.DategetDate(java.lang.String columnName, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Date.
doublegetDouble(int columnIndex)

This method returns the value of the specified column as a Java double.
doublegetDouble(java.lang.String columnName)

This method returns the value of the specified column as a Java double.
intgetFetchDirection()

This method returns the current fetch direction for this result set.
intgetFetchSize()

This method returns the current number of rows that will be fetched from the database at a time.
floatgetFloat(int columnIndex)

This method returns the value of the specified column as a Java float.
floatgetFloat(java.lang.String columnName)

This method returns the value of the specified column as a Java float.
intgetInt(int columnIndex)

This method returns the value of the specified column as a Java int.
intgetInt(java.lang.String columnName)

This method returns the value of the specified column as a Java int.
longgetLong(int columnIndex)

This method returns the value of the specified column as a Java long.
longgetLong(java.lang.String columnName)

This method returns the value of the specified column as a Java long.
java.sql.ResultSetMetaDatagetMetaData()

This method returns data about the columns returned as part of the result set as a ResultSetMetaData instance.
java.lang.ObjectgetObject(int columnIndex)

This method returns the value of the specified column as a Java Object.
java.lang.ObjectgetObject(java.lang.String columnName)

This method returns the value of the specified column as a Java Object.
java.lang.ObjectgetObject(int i, java.util.Map map)

This method returns the value of the specified column as a Java Object using the specified SQL type to Java type map.
java.lang.ObjectgetObject(java.lang.String colName, java.util.Map map)

This method returns the value of the specified column as a Java Object using the specified SQL type to Java type map.
java.sql.RefgetRef(int i)

This method returns a Ref for the specified column which represents the structured type for the column.
java.sql.RefgetRef(java.lang.String colName)

This method returns a Ref for the specified column which represents the structured type for the column.
intgetRow()

This method returns the current row number in the cursor.
shortgetShort(int columnIndex)

This method returns the value of the specified column as a Java short.
shortgetShort(java.lang.String columnName)

This method returns the value of the specified column as a Java short.
java.sql.StatementgetStatement()

This method returns a the Statement that was used to produce this result set.
java.lang.StringgetString(int columnIndex)

This method returns the value of the specified column as a Java String.
java.lang.StringgetString(java.lang.String columnName)

This method returns the value of the specified column as a Java String.
java.sql.TimegetTime(int columnIndex)

This method returns the value of the specified column as a Java java.sql.Time.
java.sql.TimegetTime(java.lang.String columnName)

This method returns the value of the specified column as a Java java.sql.Time.
java.sql.TimegetTime(int columnIndex, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Time.
java.sql.TimegetTime(java.lang.String columnName, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Time.
java.sql.TimestampgetTimestamp(int columnIndex)

This method returns the value of the specified column as a Java java.sql.Timestamp.
java.sql.TimestampgetTimestamp(java.lang.String columnName)

This method returns the value of the specified column as a Java java.sql.Timestamp.
java.sql.TimestampgetTimestamp(int columnIndex, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Timestamp.
java.sql.TimestampgetTimestamp(java.lang.String columnName, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Timestamp.
intgetType()

This method returns the result set type of this result set.
java.net.URLgetURL(int columnIndex)

java.net.URLgetURL(java.lang.String columnName)

java.io.InputStreamgetUnicodeStream(int columnIndex)

This method returns the value of the specified column as a Unicode UTF-8 stream.
java.io.InputStreamgetUnicodeStream(java.lang.String columnName)

This method returns the value of the specified column as a Unicode UTF-8 stream.
java.sql.SQLWarninggetWarnings()

This method returns the first SQL warning associated with this result set.
voidinsertRow()

This method inserts the current row into the database.
booleanisAfterLast()

This method tests whether or not the cursor is after the last row in the result set.
booleanisBeforeFirst()

This method tests whether or not the cursor is before the first row in the result set.
booleanisFirst()

This method tests whether or not the cursor is positioned on the first row in the result set.
booleanisLast()

This method tests whether or not the cursor is on the last row in the result set.
booleanlast()

This method repositions the cursor on the last row in the result set.
voidmoveToCurrentRow()

This method moves the result set position from the insert row back to the current row that was selected prior to moving to the insert row.
voidmoveToInsertRow()

This method positions the result set to the "insert row", which allows a new row to be inserted into the database from the result set.
booleannext()

This method advances to the next row in the result set.
booleanprevious()

This method moves the current position to the previous row in the result set.
voidrefreshRow()

This method refreshes the contents of the current row from the database.
booleanrelative(int rows)

This method moves the result set position relative to the current row.
booleanrowDeleted()

This method tests whether or not the current row in the result set has been deleted.
booleanrowInserted()

This method tests whether or not the current row in the result set has been inserted.
booleanrowUpdated()

This method tests whether or not the current row in the result set has been updated.
voidsetFetchDirection(int direction)

This method provides a hint to the driver about which direction the result set will be processed in.
voidsetFetchSize(int rows)

This method provides a hint to the driver about how many rows at a time it should fetch from the database.
voidupdateArray(int columnIndex, java.sql.Array x)

voidupdateArray(java.lang.String columnName, java.sql.Array x)

voidupdateAsciiStream(int columnIndex, java.io.InputStream x, int length)

This method updates the specified column from an ASCII text stream.
voidupdateAsciiStream(java.lang.String columnName, java.io.InputStream x, int length)

This method updates the specified column from an ASCII text stream.
voidupdateBigDecimal(int columnIndex, java.math.BigDecimal x)

This method updates the specified column to have a BigDecimal value.
voidupdateBigDecimal(java.lang.String columnName, java.math.BigDecimal x)

This method updates the specified column to have a BigDecimal value.
voidupdateBinaryStream(int columnIndex, java.io.InputStream x, int length)

This method updates the specified column from a binary stream.
voidupdateBinaryStream(java.lang.String columnName, java.io.InputStream x, int length)

This method updates the specified column from a binary stream.
voidupdateBlob(int columnIndex, java.sql.Blob x)

voidupdateBlob(java.lang.String columnName, java.sql.Blob x)

voidupdateBoolean(int columnIndex, boolean x)

This method updates the specified column to have a boolean value.
voidupdateBoolean(java.lang.String columnName, boolean x)

This method updates the specified column to have a boolean value.
voidupdateByte(int columnIndex, byte x)

This method updates the specified column to have a byte value.
voidupdateByte(java.lang.String columnName, byte x)

This method updates the specified column to have a byte value.
voidupdateBytes(int columnIndex, byte[] x)

This method updates the specified column to have a byte array value.
voidupdateBytes(java.lang.String columnName, byte[] x)

This method updates the specified column to have a byte array value.
voidupdateCharacterStream(int columnIndex, java.io.Reader x, int length)

This method updates the specified column from a character stream.
voidupdateCharacterStream(java.lang.String columnName, java.io.Reader reader, int length)

This method updates the specified column from a character stream.
voidupdateClob(int columnIndex, java.sql.Clob x)

voidupdateClob(java.lang.String columnName, java.sql.Clob x)

voidupdateDate(int columnIndex, java.sql.Date x)

This method updates the specified column to have a java.sql.Date value.
voidupdateDate(java.lang.String columnName, java.sql.Date x)

This method updates the specified column to have a java.sql.Date value.
voidupdateDouble(int columnIndex, double x)

This method updates the specified column to have a double value.
voidupdateDouble(java.lang.String columnName, double x)

This method updates the specified column to have a double value.
voidupdateFloat(int columnIndex, float x)

This method updates the specified column to have a float value.
voidupdateFloat(java.lang.String columnName, float x)

This method updates the specified column to have a float value.
voidupdateInt(int columnIndex, int x)

This method updates the specified column to have an int value.
voidupdateInt(java.lang.String columnName, int x)

This method updates the specified column to have an int value.
voidupdateLong(int columnIndex, long x)

This method updates the specified column to have a long value.
voidupdateLong(java.lang.String columnName, long x)

This method updates the specified column to have a long value.
voidupdateNull(int columnIndex)

This method updates the specified column to have a NULL value.
voidupdateNull(java.lang.String columnName)

This method updates the specified column to have a NULL value.
voidupdateObject(int columnIndex, java.lang.Object x, int scale)

This method updates the specified column to have an Object value.
voidupdateObject(int columnIndex, java.lang.Object x)

This method updates the specified column to have an Object value.
voidupdateObject(java.lang.String columnName, java.lang.Object x, int scale)

This method updates the specified column to have an Object value.
voidupdateObject(java.lang.String columnName, java.lang.Object x)

This method updates the specified column to have an Object value.
voidupdateRef(int columnIndex, java.sql.Ref x)

voidupdateRef(java.lang.String columnName, java.sql.Ref x)

voidupdateRow()

This method updates the current row in the database.
voidupdateShort(int columnIndex, short x)

This method updates the specified column to have a short value.
voidupdateShort(java.lang.String columnName, short x)

This method updates the specified column to have a short value.
voidupdateString(int columnIndex, java.lang.String x)

This method updates the specified column to have a String value.
voidupdateString(java.lang.String columnName, java.lang.String x)

This method updates the specified column to have a String value.
voidupdateTime(int columnIndex, java.sql.Time x)

This method updates the specified column to have a java.sql.Time value.
voidupdateTime(java.lang.String columnName, java.sql.Time x)

This method updates the specified column to have a java.sql.Time value.
voidupdateTimestamp(int columnIndex, java.sql.Timestamp x)

This method updates the specified column to have a java.sql.Timestamp value.
voidupdateTimestamp(java.lang.String columnName, java.sql.Timestamp x)

This method updates the specified column to have a java.sql.Timestamp value.
booleanwasNull()

This method tests whether the value of the last column that was fetched was actually a SQL NULL value.

Field Details

CLOSE_CURSORS_AT_COMMIT

public static final int CLOSE_CURSORS_AT_COMMIT


CONCUR_READ_ONLY

public static final int CONCUR_READ_ONLY

The concurrency mode of for the result set may not be modified.


CONCUR_UPDATABLE

public static final int CONCUR_UPDATABLE

The concurrency mode of for the result set may be modified.


FETCH_FORWARD

public static final int FETCH_FORWARD

The rows will be processed in order from first to last.


FETCH_REVERSE

public static final int FETCH_REVERSE

The rows will be processed in order from last to first.


FETCH_UNKNOWN

public static final int FETCH_UNKNOWN

The rows will be processed in an unknown order


HOLD_CURSORS_OVER_COMMIT

public static final int HOLD_CURSORS_OVER_COMMIT


TYPE_FORWARD_ONLY

public static final int TYPE_FORWARD_ONLY

This type of result set may only step forward through the rows returned.


TYPE_SCROLL_INSENSITIVE

public static final int TYPE_SCROLL_INSENSITIVE

This type of result set is scrollable and is not sensitive to changes made by other statements.


TYPE_SCROLL_SENSITIVE

public static final int TYPE_SCROLL_SENSITIVE

This type of result set is scrollable and is also sensitive to changes made by other statements.


Method Details

absolute

public boolean absolute(int row)

This method positions the result set to the specified absolute row. Positive numbers are row offsets from the beginning of the result set (numbering starts from row 1) and negative numbers are row offsets from the end of the result set (numbering starts from -1).

Parameters:

Returns:

Throws:


afterLast

public void afterLast()

This method repositions the cursor to after the last row in the result set.

Throws:


beforeFirst

public void beforeFirst()

This method repositions the cursor to before the first row in the result set.

Throws:


cancelRowUpdates

public void cancelRowUpdates()

This method cancels any changes that have been made to a row. If the rowUpdate method has been called, then the changes cannot be undone.

Throws:


clearWarnings

public void clearWarnings()

This method clears all warnings associated with this result set.

Throws:


close

public void close()

This method closes the result set and frees any associated resources.

Throws:


deleteRow

public void deleteRow()

This method deletes the current row in the database.

Throws:


findColumn

public int findColumn(java.lang.String columnName)

This method returns the column index of the specified named column.

Parameters:

Returns:

Throws:


first

public boolean first()

This method repositions the cursor on the first row in the result set.

Returns:

Throws:


getArray

public Array getArray(int i)

This method returns the specified column value as an Array.

Parameters:

Returns:

Throws:


getArray

public Array getArray(java.lang.String colName)

This method returns the specified column value as an Array.

Parameters:

Returns:

Throws:


getAsciiStream

public InputStream getAsciiStream(int columnIndex)

This method returns the value of the specified column as an ASCII stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Parameters:

Returns:

Throws:


getAsciiStream

public InputStream getAsciiStream(java.lang.String columnName)

This method returns the value of the specified column as an ASCII stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Parameters:

Returns:

Throws:


getBigDecimal

public BigDecimal getBigDecimal(int columnIndex)

This method returns the value of the specified column as a Java BigDecimal.

Parameters:

Returns:

Throws:


getBigDecimal

public BigDecimal getBigDecimal(int columnIndex, int scale)

This method returns the value of the specified column as a Java BigDecimal.

Parameters:

Returns:

Throws:


getBigDecimal

public BigDecimal getBigDecimal(java.lang.String columnName)

This method returns the value of the specified column as a Java BigDecimal.

Parameters:

Returns:

Throws:


getBigDecimal

public BigDecimal getBigDecimal(java.lang.String columnName, int scale)

This method returns the value of the specified column as a Java BigDecimal.

Parameters:

Returns:

Throws:


getBinaryStream

public InputStream getBinaryStream(int columnIndex)

This method returns the value of the specified column as a raw byte stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Parameters:

Returns:

Throws:


getBinaryStream

public InputStream getBinaryStream(java.lang.String columnName)

This method returns the value of the specified column as a raw byte stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Parameters:

Returns:

Throws:


getBlob

public Blob getBlob(int i)

This method returns the specified column value as a BLOB.

Parameters:

Returns:

Throws:


getBlob

public Blob getBlob(java.lang.String colName)

This method returns the specified column value as a BLOB.

Parameters:

Returns:

Throws:


getBoolean

public boolean getBoolean(int columnIndex)

This method returns the value of the specified column as a Java boolean.

Parameters:

Returns:

Throws:


getBoolean

public boolean getBoolean(java.lang.String columnName)

This method returns the value of the specified column as a Java boolean.

Parameters:

Returns:

Throws:


getByte

public byte getByte(int columnIndex)

This method returns the value of the specified column as a Java byte.

Parameters:

Returns:

Throws:


getByte

public byte getByte(java.lang.String columnName)

This method returns the value of the specified column as a Java byte.

Parameters:

Returns:

Throws:


getBytes

public byte[] getBytes(int columnIndex)

This method returns the value of the specified column as a Java byte array.

Parameters:

Returns:

Throws:


getBytes

public byte[] getBytes(java.lang.String columnName)

This method returns the value of the specified column as a Java byte array.

Parameters:

Returns:

Throws:


getCharacterStream

public Reader getCharacterStream(int columnIndex)

This method returns the value of the specified column as a character stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Parameters:

Returns:

Throws:


getCharacterStream

public Reader getCharacterStream(java.lang.String columnName)

This method returns the value of the specified column as a character stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Parameters:

Returns:

Throws:


getClob

public Clob getClob(int i)

This method returns the specified column value as a CLOB.

Parameters:

Returns:

Throws:


getClob

public Clob getClob(java.lang.String colName)

This method returns the specified column value as a CLOB.

Parameters:

Returns:

Throws:


getConcurrency

public int getConcurrency()

This method returns the concurrency type of this result set. This will be one of the CONCUR_* constants defined in this interface.

Returns:

Throws:


getCursorName

public String getCursorName()

This method returns the name of the database cursor used by this result set.

Returns:

Throws:


getDate

public Date getDate(int columnIndex)

This method returns the value of the specified column as a Java java.sql.Date.

Parameters:

Returns:

Throws:


getDate

public Date getDate(int columnIndex, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Date. The specified Calendar is used to generate a value for the date if the database does not support timezones.

Parameters:

Returns:

Throws:


getDate

public Date getDate(java.lang.String columnName)

This method returns the value of the specified column as a Java java.sql.Date.

Parameters:

Returns:

Throws:


getDate

public Date getDate(java.lang.String columnName, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Date. The specified Calendar is used to generate a value for the date if the database does not support timezones.

Parameters:

Returns:

Throws:


getDouble

public double getDouble(int columnIndex)

This method returns the value of the specified column as a Java double.

Parameters:

Returns:

Throws:


getDouble

public double getDouble(java.lang.String columnName)

This method returns the value of the specified column as a Java double.

Parameters:

Returns:

Throws:


getFetchDirection

public int getFetchDirection()

This method returns the current fetch direction for this result set.

Returns:

Throws:


getFetchSize

public int getFetchSize()

This method returns the current number of rows that will be fetched from the database at a time.

Returns:

Throws:


getFloat

public float getFloat(int columnIndex)

This method returns the value of the specified column as a Java float.

Parameters:

Returns:

Throws:


getFloat

public float getFloat(java.lang.String columnName)

This method returns the value of the specified column as a Java float.

Parameters:

Returns:

Throws:


getInt

public int getInt(int columnIndex)

This method returns the value of the specified column as a Java int.

Parameters:

Returns:

Throws:


getInt

public int getInt(java.lang.String columnName)

This method returns the value of the specified column as a Java int.

Parameters:

Returns:

Throws:


getLong

public long getLong(int columnIndex)

This method returns the value of the specified column as a Java long.

Parameters:

Returns:

Throws:


getLong

public long getLong(java.lang.String columnName)

This method returns the value of the specified column as a Java long.

Parameters:

Returns:

Throws:


getMetaData

public ResultSetMetaData getMetaData()

This method returns data about the columns returned as part of the result set as a ResultSetMetaData instance.

Returns:

Throws:


getObject

public Object getObject(int columnIndex)

This method returns the value of the specified column as a Java Object.

Parameters:

Returns:

Throws:


getObject

public Object getObject(int i, java.util.Map map)

This method returns the value of the specified column as a Java Object using the specified SQL type to Java type map.

Parameters:

Returns:

Throws:


getObject

public Object getObject(java.lang.String columnName)

This method returns the value of the specified column as a Java Object.

Parameters:

Returns:

Throws:


getObject

public Object getObject(java.lang.String colName, java.util.Map map)

This method returns the value of the specified column as a Java Object using the specified SQL type to Java type map.

Parameters:

Returns:

Throws:


getRef

public Ref getRef(int i)

This method returns a Ref for the specified column which represents the structured type for the column.

Parameters:

Returns:

Throws:


getRef

public Ref getRef(java.lang.String colName)

This method returns a Ref for the specified column which represents the structured type for the column.

Parameters:

Returns:

Throws:


getRow

public int getRow()

This method returns the current row number in the cursor. Numbering begins at index 1.

Returns:

Throws:


getShort

public short getShort(int columnIndex)

This method returns the value of the specified column as a Java short.

Parameters:

Returns:

Throws:


getShort

public short getShort(java.lang.String columnName)

This method returns the value of the specified column as a Java short.

Parameters:

Returns:

Throws:


getStatement

public Statement getStatement()

This method returns a the Statement that was used to produce this result set.

Returns:

Throws:


getString

public String getString(int columnIndex)

This method returns the value of the specified column as a Java String.

Parameters:

Returns:

Throws:


getString

public String getString(java.lang.String columnName)

This method returns the value of the specified column as a Java String.

Parameters:

Returns:

Throws:


getTime

public Time getTime(int columnIndex)

This method returns the value of the specified column as a Java java.sql.Time.

Parameters:

Returns:

Throws:


getTime

public Time getTime(int columnIndex, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Time. The specified Calendar is used to generate a value for the time if the database does not support timezones.

Parameters:

Returns:

Throws:


getTime

public Time getTime(java.lang.String columnName)

This method returns the value of the specified column as a Java java.sql.Time.

Parameters:

Returns:

Throws:


getTime

public Time getTime(java.lang.String columnName, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Time. The specified Calendar is used to generate a value for the time if the database does not support timezones.

Parameters:

Returns:

Throws:


getTimestamp

public Timestamp getTimestamp(int columnIndex)

This method returns the value of the specified column as a Java java.sql.Timestamp.

Parameters:

Returns:

Throws:


getTimestamp

public Timestamp getTimestamp(int columnIndex, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Timestamp. The specified Calendar is used to generate a value for the timestamp if the database does not support timezones.

Parameters:

Returns:

Throws:


getTimestamp

public Timestamp getTimestamp(java.lang.String columnName)

This method returns the value of the specified column as a Java java.sql.Timestamp.

Parameters:

Returns:

Throws:


getTimestamp

public Timestamp getTimestamp(java.lang.String columnName, java.util.Calendar cal)

This method returns the specified column value as a java.sql.Timestamp. The specified Calendar is used to generate a value for the timestamp if the database does not support timezones.

Parameters:

Returns:

Throws:


getType

public int getType()

This method returns the result set type of this result set. This will be one of the TYPE_* constants defined in this interface.

Returns:

Throws:


getURL

public URL getURL(int columnIndex)

Since:Parameters:


getURL

public URL getURL(java.lang.String columnName)

Since:Parameters:


getUnicodeStream

public InputStream getUnicodeStream(int columnIndex)

This method returns the value of the specified column as a Unicode UTF-8 stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Parameters:

Returns:

Throws:


getUnicodeStream

public InputStream getUnicodeStream(java.lang.String columnName)

This method returns the value of the specified column as a Unicode UTF-8 stream. Note that all the data from this stream must be read before fetching the value of any other column. Please also be aware that calling next() or close() on this result set will close this stream as well.

Parameters:

Returns:

Throws:


getWarnings

public SQLWarning getWarnings()

This method returns the first SQL warning associated with this result set. Any additional warnings will be chained to this one.

Returns:

Throws:


insertRow

public void insertRow()

This method inserts the current row into the database. The result set must be positioned on the insert row in order to call this method successfully.

Throws:


isAfterLast

public boolean isAfterLast()

This method tests whether or not the cursor is after the last row in the result set.

Returns:

Throws:


isBeforeFirst

public boolean isBeforeFirst()

This method tests whether or not the cursor is before the first row in the result set.

Returns:

Throws:


isFirst

public boolean isFirst()

This method tests whether or not the cursor is positioned on the first row in the result set.

Returns:

Throws:


isLast

public boolean isLast()

This method tests whether or not the cursor is on the last row in the result set.

Returns:

Throws:


last

public boolean last()

This method repositions the cursor on the last row in the result set.

Returns:

Throws:


moveToCurrentRow

public void moveToCurrentRow()

This method moves the result set position from the insert row back to the current row that was selected prior to moving to the insert row.

Throws:


moveToInsertRow

public void moveToInsertRow()

This method positions the result set to the "insert row", which allows a new row to be inserted into the database from the result set.

Throws:


next

public boolean next()

This method advances to the next row in the result set. Any streams open on the current row are closed automatically.

Returns:

Throws:


previous

public boolean previous()

This method moves the current position to the previous row in the result set.

Returns:

Throws:


refreshRow

public void refreshRow()

This method refreshes the contents of the current row from the database.

Throws:


relative

public boolean relative(int rows)

This method moves the result set position relative to the current row. The offset can be positive or negative.

Parameters:

Returns:

Throws:


rowDeleted

public boolean rowDeleted()

This method tests whether or not the current row in the result set has been deleted. Deletes must be visible in order of this method to detect the deletion.

Returns:

Throws:


rowInserted

public boolean rowInserted()

This method tests whether or not the current row in the result set has been inserted. Inserts must be visible in order of this method to detect the insert.

Returns:

Throws:


rowUpdated

public boolean rowUpdated()

This method tests whether or not the current row in the result set has been updated. Updates must be visible in order of this method to detect the update.

Returns:

Throws:


setFetchDirection

public void setFetchDirection(int direction)

This method provides a hint to the driver about which direction the result set will be processed in.

Parameters:

Throws:


setFetchSize

public void setFetchSize(int rows)

This method provides a hint to the driver about how many rows at a time it should fetch from the database.

Parameters:

Throws:


updateArray

public void updateArray(int columnIndex, java.sql.Array x)

Since:Parameters:


updateArray

public void updateArray(java.lang.String columnName, java.sql.Array x)

Since:Parameters:


updateAsciiStream

public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length)

This method updates the specified column from an ASCII text stream. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateAsciiStream

public void updateAsciiStream(java.lang.String columnName, java.io.InputStream x, int length)

This method updates the specified column from an ASCII text stream. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateBigDecimal

public void updateBigDecimal(int columnIndex, java.math.BigDecimal x)

This method updates the specified column to have a BigDecimal value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateBigDecimal

public void updateBigDecimal(java.lang.String columnName, java.math.BigDecimal x)

This method updates the specified column to have a BigDecimal value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateBinaryStream

public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length)

This method updates the specified column from a binary stream. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateBinaryStream

public void updateBinaryStream(java.lang.String columnName, java.io.InputStream x, int length)

This method updates the specified column from a binary stream. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateBlob

public void updateBlob(int columnIndex, java.sql.Blob x)

Since:Parameters:


updateBlob

public void updateBlob(java.lang.String columnName, java.sql.Blob x)

Since:Parameters:


updateBoolean

public void updateBoolean(int columnIndex, boolean x)

This method updates the specified column to have a boolean value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateBoolean

public void updateBoolean(java.lang.String columnName, boolean x)

This method updates the specified column to have a boolean value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateByte

public void updateByte(int columnIndex, byte x)

This method updates the specified column to have a byte value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateByte

public void updateByte(java.lang.String columnName, byte x)

This method updates the specified column to have a byte value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateBytes

public void updateBytes(int columnIndex, byte[] x)

This method updates the specified column to have a byte array value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateBytes

public void updateBytes(java.lang.String columnName, byte[] x)

This method updates the specified column to have a byte array value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateCharacterStream

public void updateCharacterStream(int columnIndex, java.io.Reader x, int length)

This method updates the specified column from a character stream. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateCharacterStream

public void updateCharacterStream(java.lang.String columnName, java.io.Reader reader, int length)

This method updates the specified column from a character stream. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateClob

public void updateClob(int columnIndex, java.sql.Clob x)

Since:Parameters:


updateClob

public void updateClob(java.lang.String columnName, java.sql.Clob x)

Since:Parameters:


updateDate

public void updateDate(int columnIndex, java.sql.Date x)

This method updates the specified column to have a java.sql.Date value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateDate

public void updateDate(java.lang.String columnName, java.sql.Date x)

This method updates the specified column to have a java.sql.Date value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateDouble

public void updateDouble(int columnIndex, double x)

This method updates the specified column to have a double value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateDouble

public void updateDouble(java.lang.String columnName, double x)

This method updates the specified column to have a double value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateFloat

public void updateFloat(int columnIndex, float x)

This method updates the specified column to have a float value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateFloat

public void updateFloat(java.lang.String columnName, float x)

This method updates the specified column to have a float value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateInt

public void updateInt(int columnIndex, int x)

This method updates the specified column to have an int value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateInt

public void updateInt(java.lang.String columnName, int x)

This method updates the specified column to have an int value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateLong

public void updateLong(int columnIndex, long x)

This method updates the specified column to have a long value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateLong

public void updateLong(java.lang.String columnName, long x)

This method updates the specified column to have a long value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateNull

public void updateNull(int columnIndex)

This method updates the specified column to have a NULL value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Returns:

Throws:


updateNull

public void updateNull(java.lang.String columnName)

This method updates the specified column to have a NULL value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Returns:

Throws:


updateObject

public void updateObject(int columnIndex, java.lang.Object x)

This method updates the specified column to have an Object value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateObject

public void updateObject(int columnIndex, java.lang.Object x, int scale)

This method updates the specified column to have an Object value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateObject

public void updateObject(java.lang.String columnName, java.lang.Object x)

This method updates the specified column to have an Object value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateObject

public void updateObject(java.lang.String columnName, java.lang.Object x, int scale)

This method updates the specified column to have an Object value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateRef

public void updateRef(int columnIndex, java.sql.Ref x)

Since:Parameters:


updateRef

public void updateRef(java.lang.String columnName, java.sql.Ref x)

Since:Parameters:


updateRow

public void updateRow()

This method updates the current row in the database.

Throws:


updateShort

public void updateShort(int columnIndex, short x)

This method updates the specified column to have a short value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateShort

public void updateShort(java.lang.String columnName, short x)

This method updates the specified column to have a short value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateString

public void updateString(int columnIndex, java.lang.String x)

This method updates the specified column to have a String value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateString

public void updateString(java.lang.String columnName, java.lang.String x)

This method updates the specified column to have a String value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateTime

public void updateTime(int columnIndex, java.sql.Time x)

This method updates the specified column to have a java.sql.Time value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateTime

public void updateTime(java.lang.String columnName, java.sql.Time x)

This method updates the specified column to have a java.sql.Time value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateTimestamp

public void updateTimestamp(int columnIndex, java.sql.Timestamp x)

This method updates the specified column to have a java.sql.Timestamp value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


updateTimestamp

public void updateTimestamp(java.lang.String columnName, java.sql.Timestamp x)

This method updates the specified column to have a java.sql.Timestamp value. This does not update the actual database. updateRow must be called in order to do that.

Parameters:

Throws:


wasNull

public boolean wasNull()

This method tests whether the value of the last column that was fetched was actually a SQL NULL value.

Returns:

Throws: