Java java.sql ResultSet fields, constructors, methods, implement or subclass

Example usage for Java java.sql ResultSet fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.sql ResultSet.

The text is from its open source code.

Implementation

java.sql.ResultSet has the following implementations.
Click this link to see all its implementation.

Field

intFETCH_FORWARD
The constant indicating that the rows in a result set will be processed in a forward direction; first-to-last.
intFETCH_REVERSE
The constant indicating that the rows in a result set will be processed in a reverse direction; last-to-first.
intFETCH_UNKNOWN
The constant indicating that the order in which rows in a result set will be processed is unknown.
intTYPE_FORWARD_ONLY
The constant indicating the type for a ResultSet object whose cursor may move only forward.
intTYPE_SCROLL_INSENSITIVE
The constant indicating the type for a ResultSet object that is scrollable but generally not sensitive to changes to the data that underlies the ResultSet.
intTYPE_SCROLL_SENSITIVE
The constant indicating the type for a ResultSet object that is scrollable and generally sensitive to changes to the data that underlies the ResultSet.
intCONCUR_READ_ONLY
The constant indicating the concurrency mode for a ResultSet object that may NOT be updated.
intCONCUR_UPDATABLE
The constant indicating the concurrency mode for a ResultSet object that may be updated.
intHOLD_CURSORS_OVER_COMMIT
The constant indicating that open ResultSet objects with this holdability will remain open when the current transaction is committed.
intCLOSE_CURSORS_AT_COMMIT
The constant indicating that open ResultSet objects with this holdability will be closed when the current transaction is committed.

Method

booleanabsolute(int row)
Moves the cursor to the given row number in this ResultSet object.
voidafterLast()
Moves the cursor to the end of this ResultSet object, just after the last row.
voidbeforeFirst()
Moves the cursor to the front of this ResultSet object, just before the first row.
voidcancelRowUpdates()
Cancels the updates made to the current row in this ResultSet object.
voidclearWarnings()
Clears all warnings reported on this ResultSet object.
voidclose()
Releases this ResultSet object's database and JDBC resources immediately instead of waiting for this to happen when it is automatically closed.
voiddeleteRow()
Deletes the current row from this ResultSet object and from the underlying database.
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
intfindColumn(String columnLabel)
Maps the given ResultSet column label to its ResultSet column index.
booleanfirst()
Moves the cursor to the first row in this ResultSet object.
ArraygetArray(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as an Array object in the Java programming language.
ArraygetArray(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as an Array object in the Java programming language.
java.io.InputStreamgetAsciiStream(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a stream of ASCII characters.
java.io.InputStreamgetAsciiStream(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a stream of ASCII characters.
BigDecimalgetBigDecimal(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
BigDecimalgetBigDecimal(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.math.BigDecimal with full precision.
java.io.InputStreamgetBinaryStream(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a stream of uninterpreted bytes.
java.io.InputStreamgetBinaryStream(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a stream of uninterpreted bytes.
BlobgetBlob(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language.
BlobgetBlob(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a Blob object in the Java programming language.
booleangetBoolean(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java programming language.
booleangetBoolean(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a boolean in the Java programming language.
bytegetByte(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java programming language.
bytegetByte(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte in the Java programming language.
byte[]getBytes(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language.
byte[]getBytes(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte array in the Java programming language.
java.io.ReadergetCharacterStream(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
java.io.ReadergetCharacterStream(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
ClassgetClass()
Returns the runtime class of this Object .
ClobgetClob(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the Java programming language.
ClobgetClob(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a Clob object in the Java programming language.
intgetConcurrency()
Retrieves the concurrency mode of this ResultSet object.
StringgetCursorName()
Retrieves the name of the SQL cursor used by this ResultSet object.
java.sql.DategetDate(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.
java.sql.DategetDate(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.
java.sql.DategetDate(int columnIndex, Calendar cal)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.
java.sql.DategetDate(String columnLabel, Calendar cal)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Date object in the Java programming language.
doublegetDouble(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a double in the Java programming language.
doublegetDouble(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a double in the Java programming language.
intgetFetchDirection()
Retrieves the fetch direction for this ResultSet object.
intgetFetchSize()
Retrieves the fetch size for this ResultSet object.
floatgetFloat(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java programming language.
floatgetFloat(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a float in the Java programming language.
intgetHoldability()
Retrieves the holdability of this ResultSet object
intgetInt(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as an int in the Java programming language.
intgetInt(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as an int in the Java programming language.
longgetLong(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language.
longgetLong(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language.
ResultSetMetaDatagetMetaData()
Retrieves the number, types and properties of this ResultSet object's columns.
java.io.ReadergetNCharacterStream(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
java.io.ReadergetNCharacterStream(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.io.Reader object.
NClobgetNClob(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a NClob object in the Java programming language.
NClobgetNClob(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a NClob object in the Java programming language.
StringgetNString(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
StringgetNString(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
ObjectgetObject(int columnIndex)

Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.

ObjectgetObject(String columnLabel)

Gets the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.

ObjectgetObject(int columnIndex, java.util.Map> map)
Retrieves the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.
ObjectgetObject(String columnLabel, java.util.Map> map)
Retrieves the value of the designated column in the current row of this ResultSet object as an Object in the Java programming language.
TgetObject(int columnIndex, Class type)

Retrieves the value of the designated column in the current row of this ResultSet object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.

TgetObject(String columnLabel, Class type)

Retrieves the value of the designated column in the current row of this ResultSet object and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.

RefgetRef(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language.
RefgetRef(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a Ref object in the Java programming language.
intgetRow()
Retrieves the current row number.
RowIdgetRowId(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.RowId object in the Java programming language.
RowIdgetRowId(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.RowId object in the Java programming language.
shortgetShort(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language.
shortgetShort(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a short in the Java programming language.
SQLXMLgetSQLXML(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet as a java.sql.SQLXML object in the Java programming language.
SQLXMLgetSQLXML(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet as a java.sql.SQLXML object in the Java programming language.
StatementgetStatement()
Retrieves the Statement object that produced this ResultSet object.
StringgetString(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
StringgetString(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language.
java.sql.TimegetTime(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
java.sql.TimegetTime(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
java.sql.TimegetTime(int columnIndex, Calendar cal)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
java.sql.TimegetTime(String columnLabel, Calendar cal)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Time object in the Java programming language.
java.sql.TimestampgetTimestamp(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.
java.sql.TimestampgetTimestamp(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.
java.sql.TimestampgetTimestamp(int columnIndex, Calendar cal)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.
java.sql.TimestampgetTimestamp(String columnLabel, Calendar cal)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.sql.Timestamp object in the Java programming language.
intgetType()
Retrieves the type of this ResultSet object.
java.io.InputStreamgetUnicodeStream(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as as a stream of two-byte 3 characters.
java.io.InputStreamgetUnicodeStream(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a stream of two-byte Unicode characters.
java.net.URLgetURL(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.
java.net.URLgetURL(String columnLabel)
Retrieves the value of the designated column in the current row of this ResultSet object as a java.net.URL object in the Java programming language.
SQLWarninggetWarnings()
Retrieves the first warning reported by calls on this ResultSet object.
inthashCode()
Returns a hash code value for the object.
voidinsertRow()
Inserts the contents of the insert row into this ResultSet object and into the database.
booleanisAfterLast()
Retrieves whether the cursor is after the last row in this ResultSet object.
booleanisBeforeFirst()
Retrieves whether the cursor is before the first row in this ResultSet object.
booleanisClosed()
Retrieves whether this ResultSet object has been closed.
booleanisFirst()
Retrieves whether the cursor is on the first row of this ResultSet object.
booleanisLast()
Retrieves whether the cursor is on the last row of this ResultSet object.
booleanisWrapperFor(java.lang.Class iface)
Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.
booleanlast()
Moves the cursor to the last row in this ResultSet object.
voidmoveToCurrentRow()
Moves the cursor to the remembered cursor position, usually the current row.
voidmoveToInsertRow()
Moves the cursor to the insert row.
booleannext()
Moves the cursor forward one row from its current position.
booleanprevious()
Moves the cursor to the previous row in this ResultSet object.
voidrefreshRow()
Refreshes the current row with its most recent value in the database.
booleanrelative(int rows)
Moves the cursor a relative number of rows, either positive or negative.
booleanrowDeleted()
Retrieves whether a row has been deleted.
booleanrowInserted()
Retrieves whether the current row has had an insertion.
booleanrowUpdated()
Retrieves whether the current row has been updated.
voidsetFetchDirection(int direction)
Gives a hint as to the direction in which the rows in this ResultSet object will be processed.
voidsetFetchSize(int rows)
Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for this ResultSet object.
StringtoString()
Returns a string representation of the object.
Tunwrap(java.lang.Class iface)
Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.
voidupdateArray(int columnIndex, java.sql.Array x)
Updates the designated column with a java.sql.Array value.
voidupdateArray(String columnLabel, java.sql.Array x)
Updates the designated column with a java.sql.Array value.
voidupdateAsciiStream(int columnIndex, java.io.InputStream x, int length)
Updates the designated column with an ascii stream value, which will have the specified number of bytes.
voidupdateAsciiStream(String columnLabel, java.io.InputStream x, int length)
Updates the designated column with an ascii stream value, which will have the specified number of bytes.
voidupdateAsciiStream(int columnIndex, java.io.InputStream x, long length)
Updates the designated column with an ascii stream value, which will have the specified number of bytes.
voidupdateAsciiStream(String columnLabel, java.io.InputStream x, long length)
Updates the designated column with an ascii stream value, which will have the specified number of bytes.
voidupdateBigDecimal(int columnIndex, BigDecimal x)
Updates the designated column with a java.math.BigDecimal value.
voidupdateBigDecimal(String columnLabel, BigDecimal x)
Updates the designated column with a java.sql.BigDecimal value.
voidupdateBinaryStream(int columnIndex, java.io.InputStream x, int length)
Updates the designated column with a binary stream value, which will have the specified number of bytes.
voidupdateBinaryStream(String columnLabel, java.io.InputStream x, int length)
Updates the designated column with a binary stream value, which will have the specified number of bytes.
voidupdateBinaryStream(int columnIndex, java.io.InputStream x, long length)
Updates the designated column with a binary stream value, which will have the specified number of bytes.
voidupdateBinaryStream(String columnLabel, java.io.InputStream x, long length)
Updates the designated column with a binary stream value, which will have the specified number of bytes.
voidupdateBlob(int columnIndex, java.sql.Blob x)
Updates the designated column with a java.sql.Blob value.
voidupdateBlob(String columnLabel, java.sql.Blob x)
Updates the designated column with a java.sql.Blob value.
voidupdateBlob(int columnIndex, InputStream inputStream)
Updates the designated column using the given input stream.
voidupdateBlob(String columnLabel, InputStream inputStream)
Updates the designated column using the given input stream.
voidupdateBoolean(int columnIndex, boolean x)
Updates the designated column with a boolean value.
voidupdateBoolean(String columnLabel, boolean x)
Updates the designated column with a boolean value.
voidupdateByte(int columnIndex, byte x)
Updates the designated column with a byte value.
voidupdateByte(String columnLabel, byte x)
Updates the designated column with a byte value.
voidupdateBytes(int columnIndex, byte x[])
Updates the designated column with a byte array value.
voidupdateBytes(String columnLabel, byte x[])
Updates the designated column with a byte array value.
voidupdateCharacterStream(int columnIndex, java.io.Reader x, int length)
Updates the designated column with a character stream value, which will have the specified number of bytes.
voidupdateCharacterStream(String columnLabel, java.io.Reader reader, int length)
Updates the designated column with a character stream value, which will have the specified number of bytes.
voidupdateCharacterStream(int columnIndex, java.io.Reader x, long length)
Updates the designated column with a character stream value, which will have the specified number of bytes.
voidupdateCharacterStream(String columnLabel, java.io.Reader reader, long length)
Updates the designated column with a character stream value, which will have the specified number of bytes.
voidupdateClob(int columnIndex, java.sql.Clob x)
Updates the designated column with a java.sql.Clob value.
voidupdateClob(String columnLabel, java.sql.Clob x)
Updates the designated column with a java.sql.Clob value.
voidupdateClob(int columnIndex, Reader reader)
Updates the designated column using the given Reader object.
voidupdateClob(String columnLabel, Reader reader)
Updates the designated column using the given Reader object.
voidupdateDate(int columnIndex, java.sql.Date x)
Updates the designated column with a java.sql.Date value.
voidupdateDate(String columnLabel, java.sql.Date x)
Updates the designated column with a java.sql.Date value.
voidupdateDouble(int columnIndex, double x)
Updates the designated column with a double value.
voidupdateDouble(String columnLabel, double x)
Updates the designated column with a double value.
voidupdateFloat(int columnIndex, float x)
Updates the designated column with a float value.
voidupdateFloat(String columnLabel, float x)
Updates the designated column with a float value.
voidupdateInt(int columnIndex, int x)
Updates the designated column with an int value.
voidupdateInt(String columnLabel, int x)
Updates the designated column with an int value.
voidupdateLong(int columnIndex, long x)
Updates the designated column with a long value.
voidupdateLong(String columnLabel, long x)
Updates the designated column with a long value.
voidupdateNCharacterStream(int columnIndex, java.io.Reader x, long length)
Updates the designated column with a character stream value, which will have the specified number of bytes.
voidupdateNCharacterStream(String columnLabel, java.io.Reader reader, long length)
Updates the designated column with a character stream value, which will have the specified number of bytes.
voidupdateNClob(int columnIndex, NClob nClob)
Updates the designated column with a java.sql.NClob value.
voidupdateNClob(String columnLabel, NClob nClob)
Updates the designated column with a java.sql.NClob value.
voidupdateNClob(int columnIndex, Reader reader)
Updates the designated column using the given Reader The data will be read from the stream as needed until end-of-stream is reached.
voidupdateNClob(String columnLabel, Reader reader)
Updates the designated column using the given Reader object.
voidupdateNString(int columnIndex, String nString)
Updates the designated column with a String value.
voidupdateNString(String columnLabel, String nString)
Updates the designated column with a String value.
voidupdateNull(int columnIndex)
Updates the designated column with a null value.
voidupdateNull(String columnLabel)
Updates the designated column with a null value.
voidupdateObject(int columnIndex, Object x)
Updates the designated column with an Object value.
voidupdateObject(String columnLabel, Object x)
Updates the designated column with an Object value.
voidupdateObject(int columnIndex, Object x, int scaleOrLength)
Updates the designated column with an Object value.
voidupdateObject(String columnLabel, Object x, int scaleOrLength)
Updates the designated column with an Object value.
voidupdateObject(int columnIndex, Object x, SQLType targetSqlType)
Updates the designated column with an Object value.
voidupdateObject(String columnLabel, Object x, SQLType targetSqlType)
Updates the designated column with an Object value.
voidupdateRef(int columnIndex, java.sql.Ref x)
Updates the designated column with a java.sql.Ref value.
voidupdateRef(String columnLabel, java.sql.Ref x)
Updates the designated column with a java.sql.Ref value.
voidupdateRow()
Updates the underlying database with the new contents of the current row of this ResultSet object.
voidupdateRowId(int columnIndex, RowId x)
Updates the designated column with a RowId value.
voidupdateRowId(String columnLabel, RowId x)
Updates the designated column with a RowId value.
voidupdateShort(int columnIndex, short x)
Updates the designated column with a short value.
voidupdateShort(String columnLabel, short x)
Updates the designated column with a short value.
voidupdateSQLXML(int columnIndex, SQLXML xmlObject)
Updates the designated column with a java.sql.SQLXML value.
voidupdateSQLXML(String columnLabel, SQLXML xmlObject)
Updates the designated column with a java.sql.SQLXML value.
voidupdateString(int columnIndex, String x)
Updates the designated column with a String value.
voidupdateString(String columnLabel, String x)
Updates the designated column with a String value.
voidupdateTime(int columnIndex, java.sql.Time x)
Updates the designated column with a java.sql.Time value.
voidupdateTime(String columnLabel, java.sql.Time x)
Updates the designated column with a java.sql.Time value.
voidupdateTimestamp(int columnIndex, java.sql.Timestamp x)
Updates the designated column with a java.sql.Timestamp value.
voidupdateTimestamp(String columnLabel, java.sql.Timestamp x)
Updates the designated column with a java.sql.Timestamp value.
booleanwasNull()
Reports whether the last column read had a value of SQL NULL.