Skip to content

适用虚谷数据库版本

v12.9



适用虚谷数据库版本

v12.9


java.sql.ResultSet

📄字数 12.7K
👁️阅读量 加载中...

java.sql.ResultSet 已实现的接口

返回类型 方法描述
booleanabsolute(int row)将光标移动到此 ResultSet对象中的给定行号。
voidafterLast()将光标移动到这个 ResultSet对象的末尾,就在最后一行之后。
voidbeforeFirst()将光标移动到这个 ResultSet对象的正面,就在第一行之前。
voidcancelRowUpdates()取消对此 ResultSet对象中当前行的更新。
voidclose() ResultSet释放此 ResultSet对象的数据库和JDBC资源,而不是等待其自动关闭时发生。
voiddeleteRow()从此 ResultSet对象和底层数据库中删除当前行。
intfindColumn(String columnLabel)将给定的 ResultSet列标签映射到其 ResultSet列索引。
booleanfirst()将光标移动到此 ResultSet对象中的第一行。
ArraygetArray(int columnIndex)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 Array对象检索。
ArraygetArray(String columnLabel)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 Array对象检索。
InputStreamgetAsciiStream(int columnIndex)将此 ResultSet对象的当前行中指定列的值作为ASCII字符流检索。
InputStreamgetAsciiStream(String columnLabel)将此 ResultSet对象的当前行中指定列的值作为ASCII字符流检索。
BigDecimalgetBigDecimal(int columnIndex)将此 ResultSet对象的当前行中指定列的值作为 java.math.BigDecimal以完全精确的方式获取。
BigDecimalgetBigDecimal(int columnIndex, int scale)已弃用 使用getBigDecimal(int columnIndex)或getBigDecimal(String columnLabel)
BigDecimalgetBigDecimal(String columnLabel)将此 ResultSet对象的当前行中的指定列的值作为 java.math.BigDecimal完全精确检索。
BigDecimalgetBigDecimal(String columnLabel, int scale)已弃用 使用getBigDecimal(int columnIndex)或getBigDecimal(String columnLabel)
InputStreamgetBinaryStream(int columnIndex)将此 ResultSet对象的当前行中的指定列的值作为未解释的字节流检索。
InputStreamgetBinaryStream(String columnLabel)将此 ResultSet对象的当前行中的指定列的值 ResultSet为未解释的流 bytes。
BlobgetBlob(int columnIndex)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 Blob对象检索。
BlobgetBlob(String columnLabel)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 Blob对象检索。
booleangetBoolean(int columnIndex)这个检索的当前行中指定列的值 ResultSet对象为 boolean的Java编程语言。
booleangetBoolean(String columnLabel)这个检索的当前行中指定列的值 ResultSet对象为 boolean的Java编程语言。
bytegetByte(int columnIndex)这个检索的当前行中指定列的值 ResultSet对象为 byte的Java编程语言。
bytegetByte(String columnLabel)这个检索的当前行中指定列的值 ResultSet对象为 byte的Java编程语言。
byte[]getBytes(int columnIndex)将该 ResultSet对象的当前行中的指定列的值作为Java编程语言中的 byte数组检索。
byte[]getBytes(String columnLabel)将该 ResultSet对象的当前行中的指定列的值作为Java编程语言中的 byte数组检索。
ReadergetCharacterStream(int columnIndex)将此 ResultSet对象的当前行中的指定列的值 ResultSet为 java.io.Reader对象。
ReadergetCharacterStream(String columnLabel)将此 ResultSet对象的当前行中的指定列的值 ResultSet为 java.io.Reader对象。
ClobgetClob(int columnIndex)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 Clob对象检索。
ClobgetClob(String columnLabel)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 Clob对象检索。
intgetConcurrency()检索此 ResultSet对象的并发模式。
DategetDate(int columnIndex)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.sql.Date对象检索。
DategetDate(int columnIndex, Calendar cal)将此 ResultSet对象的当前行中指定列的值 ResultSet为Java编程语言中的 java.sql.Date对象。
DategetDate(String columnLabel)将此 ResultSet对象的当前行中的指定列的值作为Java编程语言中的 java.sql.Date对象检索。
DategetDate(String columnLabel, Calendar cal)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.sql.Date对象检索。
doublegetDouble(int columnIndex)这个检索的当前行中指定列的值 ResultSet对象为 double的Java编程语言。
doublegetDouble(String columnLabel)这个检索的当前行中指定列的值 ResultSet对象为 double的Java编程语言。
intgetFetchDirection()检索此 ResultSet对象的抓取方向。
intgetFetchSize()检索此 ResultSet对象的提取大小。
floatgetFloat(int columnIndex)这个检索的当前行中指定列的值 ResultSet对象为 float的Java编程语言。
floatgetFloat(String columnLabel)这个检索的当前行中指定列的值 ResultSet对象为 float的Java编程语言。
intgetHoldability()检索此 ResultSet对象的 ResultSet
intgetInt(int columnIndex)这个检索的当前行中指定列的值 ResultSet作为对象 int在Java编程语言。
intgetInt(String columnLabel)以Java编程语言中的 int此 ResultSet对象的当前行中指定列的值。
longgetLong(int columnIndex)这个检索的当前行中指定列的值 ResultSet对象为 long的Java编程语言。
longgetLong(String columnLabel)这个检索的当前行中指定列的值 ResultSet对象为 long的Java编程语言。
ResultSetMetaDatagetMetaData()检索此 ResultSet对象的列的数量,类型和属性。
ReadergetNCharacterStream(int columnIndex)将此 ResultSet对象的当前行中的指定列的值 ResultSet为 java.io.Reader对象。
ReadergetNCharacterStream(String columnLabel)将此 ResultSet对象的当前行中的指定列的值 ResultSet为 java.io.Reader对象。
NClobgetNClob(int columnIndex)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 NClob对象检索。
NClobgetNClob(String columnLabel)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 NClob对象检索。
StringgetNString(int columnIndex)这个检索的当前行中指定列的值 ResultSet对象为 String的Java编程语言。
StringgetNString(String columnLabel)这个检索的当前行中指定列的值 ResultSet对象为 String的Java编程语言。
ObjectgetObject(int columnIndex)获取此的当前行中指定列的值 ResultSet作为对象 Object在Java编程语言。
<T> TgetObject(int columnIndex, Class<T> type)检索此 ResultSet对象的当前行中指定列的值,并将转换为SQL类型的列到所请求的Java数据类型,如果转换支持。
ObjectgetObject(int columnIndex, Map<String,Class<?>> map)这个检索的当前行中指定列的值 ResultSet作为对象 Object在Java编程语言。
ObjectgetObject(String columnLabel)获取此的当前行中指定列的值 ResultSet作为对象 Object在Java编程语言。
<T> TgetObject(String columnLabel, Class<T> type)检索此 ResultSet对象的当前行中指定列的值,并将转换为SQL类型的列到所请求的Java数据类型,如果转换支持。
ObjectgetObject(String columnLabel, Map<String,Class<?>> map)这个检索的当前行中指定列的值 ResultSet作为对象 Object在Java编程语言。
RefgetRef(String columnLabel)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 Ref对象检索。
intgetRow()检索当前行号。
RowIdgetRowId(int columnIndex)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.sql.RowId对象检索。
RowIdgetRowId(String columnLabel)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.sql.RowId对象检索。
shortgetShort(int columnIndex)这个检索的当前行中指定列的值 ResultSet对象为 short的Java编程语言。
shortgetShort(String columnLabel)这个检索的当前行中指定列的值 ResultSet对象为 short的Java编程语言。
SQLXMLgetSQLXML(int columnIndex)这个检索的当前行中指定列的值 ResultSet为 java.sql.SQLXML的Java编程语言对象。
SQLXMLgetSQLXML(String columnLabel)这个检索的当前行中指定列的值 ResultSet为 java.sql.SQLXML的Java编程语言对象。
StatementgetStatement()检索 Statement生成此对象 ResultSet对象。
StringgetString(int columnIndex)这个检索的当前行中指定列的值 ResultSet对象为 String的Java编程语言。
StringgetString(String columnLabel)这个检索的当前行中指定列的值 ResultSet对象为 String的Java编程语言。
TimegetTime(int columnIndex)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.sql.Time对象检索。
TimegetTime(int columnIndex, Calendar cal)将此 ResultSet对象的当前行中的指定列的值作为Java编程语言中的 java.sql.Time对象检索。
TimegetTime(String columnLabel)将此 ResultSet对象的当前行中的指定列的值作为Java编程语言中的 java.sql.Time对象检索。
TimegetTime(String columnLabel, Calendar cal)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.sql.Time对象检索。
TimestampgetTimestamp(int columnIndex)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.sql.Timestamp对象检索。
TimestampgetTimestamp(int columnIndex, Calendar cal)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.sql.Timestamp对象检索。
TimestampgetTimestamp(String columnLabel)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.sql.Timestamp对象检索。
TimestampgetTimestamp(String columnLabel, Calendar cal)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.sql.Timestamp对象检索。
intgetType()检索此 ResultSet对象的类型。
InputStreamgetUnicodeStream(int columnIndex)已弃用 使用getCharacterStream代替getUnicodeStream
InputStreamgetUnicodeStream(String columnLabel)已弃用 使用getCharacterStream代替
URLgetURL(int columnIndex)将该 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.net.URL对象检索。
URLgetURL(String columnLabel)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 java.net.URL对象检索。
SQLWarninggetWarnings()检索通过此 ResultSet对象的呼叫报告的第一个警告。
voidinsertRow()将插入行的内容插入到此 ResultSet对象中并进入数据库。
booleanisAfterLast()检索光标是否在此 ResultSet对象中的最后一行之后。
booleanisBeforeFirst()检索光标是否在此 ResultSet对象中的第一行之前。
booleanisClosed()检索此 ResultSet对象是否已关闭。
booleanisFirst()检索光标是否在此 ResultSet对象的第一行。
booleanisLast()检索光标是否位于此 ResultSet对象的最后一行。
booleanlast()将光标移动到此 ResultSet对象中的最后一行。
voidmoveToCurrentRow()将光标移动到记住的光标位置,通常是当前行。
voidmoveToInsertRow()将光标移动到插入行。
booleannext()将光标从当前位置向前移动一行。
booleanprevious()将光标移动到此 ResultSet对象中的上一行。
booleanrelative(int rows)将光标移动到正或负的相对行数。
booleanrowDeleted()检索行是否被删除。
booleanrowInserted()检索当前行是否有插入。
booleanrowUpdated()检索当前行是否已更新。
voidsetFetchDirection(int direction)给出这个 ResultSet对象中的行将被处理的方向的提示。
voidsetFetchSize(int rows)给JDBC驱动程序一个提示,当这个 ResultSet对象需要更多的行时,应该从数据库中获取的行数。
voidupdateArray(String columnLabel, Array x)使用 java.sql.Array值更新指定的列。
voidupdateAsciiStream(int columnIndex, InputStream x)使用ascii流值更新指定的列。
voidupdateAsciiStream(int columnIndex, InputStream x, int length)使用ascii流值更新指定的列,该值将具有指定的字节数。
voidupdateAsciiStream(int columnIndex, InputStream x, long length)使用ascii流值更新指定的列,该值将具有指定的字节数。
voidupdateAsciiStream(String columnLabel, InputStream x)使用ascii流值更新指定的列。
voidupdateAsciiStream(String columnLabel, InputStream x, int length)使用ascii流值更新指定的列,该值将具有指定的字节数。
voidupdateAsciiStream(String columnLabel, InputStream x, long length)使用ascii流值更新指定的列,该值将具有指定的字节数。
voidupdateBigDecimal(int columnIndex, BigDecimal x)使用 java.math.BigDecimal值更新指定的列。
voidupdateBigDecimal(String columnLabel, BigDecimal x)使用 java.sql.BigDecimal值更新指定的列。
voidupdateBinaryStream(int columnIndex, InputStream x)使用二进制流值更新指定的列。
voidupdateBinaryStream(int columnIndex, InputStream x, int length)使用二进制流值更新指定的列,该值将具有指定的字节数。
voidupdateBinaryStream(String columnLabel, InputStream x)使用二进制流值更新指定的列。
voidupdateBinaryStream(String columnLabel, InputStream x, int length)使用二进制流值更新指定的列,该值将具有指定的字节数。
voidupdateBinaryStream(String columnLabel, InputStream x, long length)使用二进制流值更新指定的列,该值将具有指定的字节数。
voidupdateBlob(int columnIndex, Blob x)使用 java.sql.Blob值更新指定的列。
voidupdateBlob(int columnIndex, InputStream inputStream)使用给定的输入流更新指定的列。
voidupdateBlob(String columnLabel, Blob x)使用 java.sql.Blob值更新指定的列。
voidupdateBlob(String columnLabel, InputStream inputStream)使用给定的输入流更新指定的列。
voidupdateBlob(String columnLabel, InputStream inputStream, long length)使用给定的输入流更新指定列,该输入流将具有指定的字节数。
voidupdateBoolean(int columnIndex, boolean x)使用 boolean值更新指定的列。
voidupdateBoolean(String columnLabel, boolean x)使用 boolean值更新指定的列。
voidupdateByte(int columnIndex, byte x)使用 byte值更新指定的列。
voidupdateByte(String columnLabel, byte x)使用 byte值更新指定的列。
voidupdateBytes(int columnIndex, byte[] x)使用 byte数组值更新指定的列。
voidupdateBytes(String columnLabel, byte[] x)使用字节数组值更新指定的列。
voidupdateCharacterStream(int columnIndex, Reader x)使用字符流值更新指定的列。
voidupdateCharacterStream(int columnIndex, Reader x, int length)使用字符流值更新指定的列,该值将具有指定的字节数。
voidupdateCharacterStream(String columnLabel, Reader reader)使用字符流值更新指定的列。
voidupdateCharacterStream(String columnLabel, Reader reader, int length)使用字符流值更新指定的列,该值将具有指定的字节数。
voidupdateCharacterStream(String columnLabel, Reader reader, long length)使用字符流值更新指定的列,该值将具有指定的字节数。
voidupdateClob(int columnIndex, Clob x)使用 java.sql.Clob值更新指定的列。
voidupdateClob(int columnIndex, Reader reader)使用给定的 Reader对象更新指定的列。
voidupdateClob(String columnLabel, Clob x)使用 java.sql.Clob值更新指定的列。
voidupdateClob(String columnLabel, Reader reader)使用给定的 Reader对象更新指定的列。
voidupdateClob(String columnLabel, Reader reader, long length)使用给定的 Reader对象更新指定的列,这是给定的长度的字符数。
voidupdateDate(int columnIndex, Date x)使用 java.sql.Date值更新指定的列。
voidupdateDate(String columnLabel, Date x)使用 java.sql.Date值更新指定的列。
voidupdateDouble(int columnIndex, double x)使用 double值更新指定的列。
voidupdateDouble(String columnLabel, double x)使用 double值更新指定的列。
voidupdateFloat(int columnIndex, float x)使用 float值更新指定的列。
voidupdateFloat(String columnLabel, float x)使用 float值更新指定的列。
voidupdateInt(int columnIndex, int x)使用 int值更新指定的列。
voidupdateInt(String columnLabel, int x)使用 int值更新指定的列。
voidupdateLong(int columnIndex, long x)使用 long值更新指定的列。
voidupdateLong(String columnLabel, long x)使用 long值更新指定的列。
voidupdateNCharacterStream(int columnIndex, Reader x)使用字符流值更新指定的列。
voidupdateNCharacterStream(int columnIndex, Reader x, long length)使用字符流值更新指定的列,该值将具有指定的字节数。
voidupdateNCharacterStream(String columnLabel, Reader reader)使用字符流值更新指定的列。
voidupdateNCharacterStream(String columnLabel, Reader reader, long length)使用字符流值更新指定的列,该值将具有指定的字节数。
voidupdateNClob(int columnIndex, NClob nClob)使用 java.sql.NClob值更新指定的列。
voidupdateNClob(int columnIndex, Reader reader)使用给定的 Reader更新指定的列数据将从流中读取数据,直到达到流出端。
voidupdateNClob(int columnIndex, Reader reader, long length)使用给定的 Reader对象更新指定的列,这是给定的字符数。
voidupdateNClob(String columnLabel, NClob nClob)使用 java.sql.NClob值更新指定的列。
voidupdateNClob(String columnLabel, Reader reader)使用给定的 Reader对象更新指定的列。
voidupdateNClob(String columnLabel, Reader reader, long length)使用给定的 Reader对象更新指定的列,这是给定的长度的字符数。
voidupdateNString(int columnIndex, String nString)使用 String值更新指定的列。
voidupdateNString(String columnLabel, String nString)使用 String值更新指定的列。
voidupdateNull(int columnIndex)使用 null值更新指定的列。
voidupdateNull(String columnLabel)使用 null值更新指定的列。
voidupdateObject(int columnIndex, Object x)使用 Object值更新指定的列。
voidupdateObject(int columnIndex, Object x, int scaleOrLength)使用 Object值更新指定的列。
voidupdateObject(int columnIndex, Object x, SQLType targetSqlType)使用 Object值更新指定的列。
voidupdateObject(int columnIndex, Object x, SQLType targetSqlType, int scaleOrLength)使用 Object值更新指定的列。
voidupdateObject(String columnLabel, Object x)使用 Object值更新指定的列。
voidupdateObject(String columnLabel, Object x, int scaleOrLength)使用 Object值更新指定的列。
voidupdateObject(String columnLabel, Object x, SQLType targetSqlType)使用 Object值更新指定的列。
voidupdateObject(String columnLabel, Object x, SQLType targetSqlType, int scaleOrLength)使用 Object值更新指定的列。
voidupdateRef(String columnLabel, Ref x)使用 java.sql.Ref值更新指定的列。
voidupdateRow()使用此 ResultSet对象的当前行的新内容更新底层数据库。
voidupdateRowId(int columnIndex, RowId x)使用 RowId值更新指定的列。
voidupdateRowId(String columnLabel, RowId x)使用 RowId值更新指定的列。
voidupdateShort(int columnIndex, short x)使用 short值更新指定的列。
voidupdateShort(String columnLabel, short x)使用 short值更新指定的列。
voidupdateSQLXML(int columnIndex, SQLXML xmlObject)使用 java.sql.SQLXML值更新指定的列。
voidupdateSQLXML(String columnLabel, SQLXML xmlObject)使用 java.sql.SQLXML值更新指定的列。
voidupdateString(int columnIndex, String x)使用 String值更新指定的列。
voidupdateString(String columnLabel, String x)使用 String值更新指定的列。
voidupdateTime(int columnIndex, Time x)使用 java.sql.Time值更新指定的列。
voidupdateTime(String columnLabel, Time x)使用 java.sql.Time值更新指定的列。
voidupdateTimestamp(int columnIndex, Timestamp x)使用 java.sql.Timestamp值更新指定的列。
voidupdateTimestamp(String columnLabel, Timestamp x)使用 java.sql.Timestamp值更新指定的列。
booleanwasNull()报告最后一列读取的值是否为SQL NULL 。

java.sql.ResultSet 未实现的接口

返回类型方法描述
voidclearWarnings()清除此 ResultSet对象上报告的所有警告。
StringgetCursorName()检索此 ResultSet对象使用的SQL游标的名称。
voidrefreshRow()用数据库中最新的值刷新当前行。
RefgetRef(int columnIndex)将此 ResultSet对象的当前行中指定列的值作为Java编程语言中的 Ref对象检索。
voidupdateRef(int columnIndex, Ref x)使用 java.sql.Ref值更新指定的列。
voidupdateArray(int columnIndex, Array x)使用 java.sql.Array值更新指定的列。
voidupdateBinaryStream(int columnIndex, InputStream x, long length)使用二进制流值更新指定的列,该值将具有指定的字节数。
voidupdateBlob(int columnIndex, InputStream inputStream, long length)使用给定的输入流更新指定列,该输入流将具有指定的字节数。
voidupdateCharacterStream(int columnIndex, Reader x, long length)使用字符流值更新指定的列,该值将具有指定的字节数。
voidupdateClob(int columnIndex, Reader reader, long length)使用给定的 Reader对象来更新指定的列,这是给定的长度的字符数。