站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档

RowSetReader (JBoss J2EE API) - JBoss 4.0.1 sp1 j2ee API Documentation 英文版文档


javax.sql
Interface RowSetReader


public interface RowSetReader

An object implementing the RowSetReader interface may be registered with a RowSet object that supports the reader/writer paradigm. A RowSetReader object is called by a rowset to produce a new set of rows which will become the rowset's contents.


Method Summary
 void readData(RowSetInternal rowSetInternal)
          Read the new contents of a rowset.
 

Method Detail

readData

public void readData(RowSetInternal rowSetInternal)
              throws SQLException

Read the new contents of a rowset. This method is invoked internally by the RowSet.execute() method for rowsets that support the reader/writer paradigm.

The readData() method uses the RowSet.insertRow() or RowSet.populate() methods to add rows to the caller. In general, any of the caller's methods may be called by the reader with one exception, calling execute() will throw an SQLException since execute may not be called recursively. Also, rowset events, such as RowSetChanged, etc. are not generated by RowSet methods invoked by a reader.

Parameters:
rowSetInternal - - the rowset that called the reader
Throws:
SQLException - - if a database-access error occurs


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.