public interface RowSetReader
RowSet
对象调用与数据行填充自己。一个读者(一个对象实现的
RowSetReader
接口)可能与一个支持读/写范式
RowSet
对象注册。当
RowSet
execute
对象的方法被调用时,它将调用读者的
readData
方法。
Modifier and Type | Method and Description |
---|---|
void |
readData(RowSetInternal caller)
读取调用
RowSet 对象的新内容。
|
void readData(RowSetInternal caller) throws SQLException
RowSet
对象的新内容。为了调用这个方法,一个
RowSet
对象必须实现的接口,
RowSetInternal
注册这
RowSetReader
对象作为它的读者。的
readData
方法内的行集支持读/写范式的
RowSet.execute
方法调用。
的readData
方法添加行的来电。它可以在各种各样的方式实现,甚至可以填充从非关系数据源行的来电。一般来说,一个读者可以调用任何的行集的方法,但有一个例外。调用方法execute
将导致SQLException
被因为execute
不得递归调用。另外,当读者RowSet
方法调用,没有听众的通知;即是没有产生RowSetEvent
对象和调用的方法不RowSetListener
。这是因为听众已经被execute
通知的方法。
caller
-
RowSet
对象(1),实现了
RowSetInternal
接口,(2)与本读者注册,和(3)的
execute
方法称之为读者
SQLException
-如果一个数据库访问错误发生或此方法调用
RowSet.execute
方法
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.