Build 1.0_r1(from source)

javax.sql
Interface RowSetWriter


public interface RowSetWriter

An interface which provides functionality for a disconnected RowSet to put data updates back to the data source from which the RowSet was originally populated. An object implementing this interface is called a Writer.

The Writer must establish a connection to the RowSet's data source before writing the data. The RowSet calling this interface must implement the RowSetInternal interface.

The Writer may encounter a situation where the updated data being written back to the data source has already been updated in the data source. How a conflict of this kind is handled is determined by the implementation of the Writer.


Method Summary
 boolean writeData(RowSetInternal theRowSet)
          Writes changes in the RowSet associated with this RowSetWriter back to its data source.
 

Method Detail

writeData

boolean writeData(RowSetInternal theRowSet)
                  throws SQLException
Writes changes in the RowSet associated with this RowSetWriter back to its data source.

Parameters:
theRowSet - the RowSet object. This RowSet must a) Implement the RowSetInternal interface and b) have have this RowSetWriter registered with it and c) must call this method internally
Returns:
true if the modified data was written, false otherwise (which typically implies some form of conflict)
Throws:
SQLException - if a problem occurs accessing the database

Build 1.0_r1(from source)

Please submit a feedback, bug or feature