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.