public interface RowSetInternal
| javax.sql.RowSetInternal |
RowSet对象实现的接口,以将其自身呈现给RowSetReader或RowSetWriter对象。 RowSetInternal接口包含可让读取器或写入器访问和修改行集的内部状态的方法。
公共方法(Public methods) |
|
|---|---|
abstract Connection |
getConnection() 检索 |
abstract ResultSet |
getOriginal() 检索 |
abstract ResultSet |
getOriginalRow() 仅检索包含当前行的原始值的 |
abstract Object[] |
getParams() 检索为此 |
abstract void |
setMetaData(RowSetMetaData md) 将给定 |
Connection getConnection ()
检索 Connection传递给该对象 RowSet对象。
| 返回(Returns) | |
|---|---|
Connection |
the Connection object passed to the rowset or null if none was passed |
| 抛出异常(Throws) | |
|---|---|
SQLException |
if a database access error occurs |
ResultSet getOriginal ()
检索 ResultSet含有该原始值对象 RowSet对象。
游标位于结果集的第一行之前。 据说只有方法getOriginal返回的结果集中包含的行才具有原始值。
| 返回(Returns) | |
|---|---|
ResultSet |
the original value of the rowset |
| 抛出异常(Throws) | |
|---|---|
SQLException |
if a database access error occurs |
ResultSet getOriginalRow ()
仅检索包含当前行的原始值的ResultSet对象。 如果当前行没有原始值,则返回空结果集。 如果没有当前行,则抛出异常。
| 返回(Returns) | |
|---|---|
ResultSet |
the original value of the current row as a ResultSet object |
| 抛出异常(Throws) | |
|---|---|
SQLException |
if a database access error occurs or this method is called while the cursor is on the insert row, before the first row, or after the last row |
Object[] getParams ()
检索为此 RowSet对象的命令设置的参数。
| 返回(Returns) | |
|---|---|
Object[] |
an array of the current parameter values for this RowSet object's command |
| 抛出异常(Throws) | |
|---|---|
SQLException |
if a database access error occurs |
void setMetaData (RowSetMetaData md)
将给定RowSetMetaData对象为RowSetMetaData对象为这个RowSet对象。 与行集关联的RowSetReader对象将使用RowSetMetaData方法来设置提供有关行集列的信息的值。
| 参数(Parameters) | |
|---|---|
md |
RowSetMetaData: the RowSetMetaData object that will be set with information about the rowset's columns |
| 抛出异常(Throws) | |
|---|---|
SQLException |
if a database access error occurs |