public interface RowSetInternal
RowSet
对象呈现一个
RowSetReader
或
RowSetWriter
对象。的
RowSetInternal
接口包含的方法,让读者或作家的访问和修改的行集的内部状态。
Modifier and Type | Method and Description |
---|---|
Connection |
getConnection()
检索
Connection 对象被传递给这个
RowSet 对象。
|
ResultSet |
getOriginal()
检索
ResultSet 对象包含此
RowSet 对象的原始值。
|
ResultSet |
getOriginalRow()
检索
ResultSet 对象包含原始值的当前行。
|
Object[] |
getParams()
检索已为这个
RowSet 对象的命令参数。
|
void |
setMetaData(RowSetMetaData md)
设置给定的
RowSetMetaData 对象为本
RowSet 对象的
RowSetMetaData 对象。
|
Object[] getParams() throws SQLException
RowSet
对象的命令参数。
RowSet
对象的当前参数值的数组的命令
SQLException
-如果一个数据库访问错误发生
Connection getConnection() throws SQLException
Connection
对象被传递给这个
RowSet
对象。
Connection
对象传递到数据集或
null
如果没有通过
SQLException
-如果一个数据库访问错误发生
void setMetaData(RowSetMetaData md) throws SQLException
RowSetMetaData
对象为本
RowSet
对象的
RowSetMetaData
对象。与数据集有关的
RowSetReader
对象将使用
RowSetMetaData
方法设置对行集的列的信息价值。
md
-
RowSetMetaData
对象,将有关数据集的列的信息
SQLException
-如果一个数据库访问错误发生
ResultSet getOriginal() throws SQLException
RowSet
对象原有的价值
ResultSet
对象。
光标位于结果集的第一行之前的位置。在结果中只包含行的方法getOriginal
回来说有一个原始的价值。
SQLException
-如果一个数据库访问错误发生
ResultSet getOriginalRow() throws SQLException
ResultSet
对象包含原始值的当前行。如果当前行没有原始值,则返回一个空结果集。如果没有当前行,则抛出一个异常。
ResultSet
对象的原始值
SQLException
-如果一个数据库访问错误发生或这种方法是当光标在插入行,第一行之前,或之后的最后一行
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.