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对象设置为
RowSetMetaData对象的
RowSet对象。
|
Object[] getParams() throws SQLException
RowSet对象的命令设置的参数。
RowSet对象的命令的当前参数值的数组
SQLException - 如果发生数据库访问错误
Connection getConnection() throws SQLException
Connection传递给该对象
RowSet对象。
Connection对象或如果没有通过,
null
SQLException - 如果发生数据库访问错误
void setMetaData(RowSetMetaData md) throws SQLException
RowSetMetaData对象设置为RowSetMetaData对象的RowSet对象。
与行集RowSetReader对象将使用RowSetMetaData方法来设置给出有关行集列的信息的值。
md - 将使用有关行集列的信息设置的
RowSetMetaData对象
SQLException - 如果发生数据库访问错误
ResultSet getOriginal() throws SQLException
ResultSet含有该原始值对象RowSet对象。
光标位于结果集中的第一行之前。 只有方法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.