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 - if a database access error occurs or this method invokes the
RowSet.execute method
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.